LP1802682: Use Default Net Access Level OUS
authorJason Boyer <JBoyer@library.in.gov>
Sat, 10 Nov 2018 22:53:16 +0000 (17:53 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 12 Aug 2021 22:00:01 +0000 (18:00 -0400)
This branch does two things: makes use of the OUS
that determines the default Net Access Level, and
also changes the type of the coust entry to make
using it more user friendly.

Signed-off-by: Jason Boyer <JBoyer@library.in.gov>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.cnal_ous_type.sql [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index df6bda7..f3eba61 100644 (file)
@@ -4801,7 +4801,7 @@ INSERT into config.org_unit_setting_type
     oils_i18n_gettext('ui.patron.default_inet_access_level',
         'Default level of patrons'' internet access',
         'coust', 'description'),
-    'integer', null)
+    'link', 'cnal')
 
 ,( 'ui.patron.edit.au.active.show', 'gui',
     oils_i18n_gettext('ui.patron.edit.au.active.show',
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.cnal_ous_type.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.cnal_ous_type.sql
new file mode 100644 (file)
index 0000000..ba3a5a7
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+UPDATE config.org_unit_setting_type SET fm_class='cnal', datatype='link' WHERE name='ui.patron.default_inet_access_level';
+
+COMMIT;
+
index 704e583..c091300 100644 (file)
@@ -861,6 +861,7 @@ angular.module('egCoreMod')
             card : card,
             cards : [card],
             home_ou : egCore.org.get(egCore.auth.user().ws_ou()),
+            net_access_level : service.org_settings['ui.patron.default_inet_access_level'],
             stat_cat_entries : [],
             waiver_entries : [],
             groups : [],