LP#1823255: optionally require ident_value
authorMark Bucholtz <mbucholtz@sitka.bclibraries.ca>
Mon, 1 Apr 2019 14:45:20 +0000 (07:45 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 6 Sep 2019 22:02:06 +0000 (18:02 -0400)
Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Mark Bucholtz <mbucholtz@sitka.bclibraries.ca>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.ident_value_required.sql [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 4bf6099..364942a 100644 (file)
@@ -4911,6 +4911,15 @@ INSERT into config.org_unit_setting_type
         'coust', 'description'),
     'bool', null)
 
+,( 'ui.patron.edit.au.ident_value.require', 'gui',
+    oils_i18n_gettext('ui.patron.edit.au.ident_value.require',
+        'require ident_value field on patron registration',
+        'coust', 'label'),
+    oils_i18n_gettext('ui.patron.edit.au.ident_value.require',
+        'The ident_value field will be required on the patron registration screen.',
+        'coust', 'description'),
+    'bool', null)
+
 ,( 'ui.patron.edit.au.ident_value.show', 'gui',
     oils_i18n_gettext('ui.patron.edit.au.ident_value.show',
         'Show ident_value field on patron registration',
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ident_value_required.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ident_value_required.sql
new file mode 100644 (file)
index 0000000..89e3d12
--- /dev/null
@@ -0,0 +1,17 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+( 'ui.patron.edit.au.ident_value.require', 'gui',
+    oils_i18n_gettext('ui.patron.edit.au.ident_value.require',
+        'require ident_value field on patron registration',
+        'coust', 'label'),
+    oils_i18n_gettext('ui.patron.edit.au.ident_value.require',
+        'The ident_value field will be required on the patron registration screen.',
+        'coust', 'description'),
+    'bool', null);
+
+COMMIT;
+
index b987d0b..bcfbab8 100644 (file)
@@ -353,6 +353,7 @@ angular.module('egCoreMod')
             'ui.patron.edit.au.juvenile.show',
             'ui.patron.edit.au.juvenile.suggest',
             'ui.patron.edit.au.ident_value.show',
+            'ui.patron.edit.au.ident_value.require',
             'ui.patron.edit.au.ident_value.suggest',
             'ui.patron.edit.au.ident_value2.show',
             'ui.patron.edit.au.ident_value2.suggest',