added support for default inet access level setting
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Jun 2009 20:54:36 +0000 (20:54 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Jun 2009 20:54:36 +0000 (20:54 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13355 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/actor/user/register.js

index 1db1cb2..5be8b67 100644 (file)
@@ -55,16 +55,17 @@ function load() {
         }
     }
 
-    uEditLoadUser(userId);
-
     orgSettings = fieldmapper.aou.fetchOrgSettingBatch(staff.ws_ou(), [
         'global.juvenile_age_threshold',
         'patron.password.use_phone',
+        'ui.patron.default_inet_access_level'
     ]);
     for(k in orgSettings)
         if(orgSettings[k])
             orgSettings[k] = orgSettings[k].value;
 
+    uEditLoadUser(userId);
+
     var list = pcrud.search('fdoc', {fm_class:fmClasses});
     for(var i in list) {
         var doc = list[i];
@@ -359,11 +360,10 @@ function uEditNewPatron() {
     card.isnew(1);
     patron.card(card);
     patron.cards([card]);
-    //patron.net_access_level(defaultNetLevel); XXX
+    patron.net_access_level(orgSettings['ui.patron.default_inet_access_level'] || 1);
     patron.stat_cat_entries([]);
     patron.survey_responses([]);
     patron.addresses([]);
-    //patron.home_ou(USER.ws_ou()); XXX
     uEditMakeRandomPw(patron);
 }