backport state.show/require settings for patron reg user/berick/tpac-self-reg-2.4
authorBill Erickson <berick@esilibrary.com>
Mon, 26 Aug 2013 14:44:29 +0000 (10:44 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 26 Aug 2013 14:44:29 +0000 (10:44 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/0823.schema.patron-self-reg.sql

index 2db67e3..ce59b23 100644 (file)
@@ -12713,3 +12713,45 @@ VALUES (
         'description'
     )
 );
+
+INSERT into config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES (
+        'ui.patron.edit.aua.state.require',
+        'gui',
+        oils_i18n_gettext(
+            'ui.patron.edit.aua.state.require',
+            'Require State field on patron registration',
+            'coust',
+            'label'
+        ),
+        oils_i18n_gettext(
+            'ui.patron.edit.aua.state.require',
+            'The State field will be required on the patron registration screen.',
+            'coust',
+            'description'
+        ),
+        'bool'
+    );
+
+INSERT into config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES (
+        'ui.patron.edit.aua.state.show',
+        'gui',
+        oils_i18n_gettext(
+            'ui.patron.edit.aua.state.show',
+            'Show State field on patron registration',
+            'coust',
+            'label'
+        ),
+        oils_i18n_gettext(
+            'ui.patron.edit.aua.state.show',
+            'The State field will be shown on the patron registration screen. Showing a field makes it appear with required fields even when not required. If the field is required this setting is ignored.',
+            'coust',
+            'description'
+        ),
+        'bool'
+    );
+
+
index 9fe041c..6ed8635 100644 (file)
@@ -99,4 +99,44 @@ VALUES (
     )
 );
 
+INSERT into config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES (
+        'ui.patron.edit.aua.state.require',
+        'gui',
+        oils_i18n_gettext(
+            'ui.patron.edit.aua.state.require',
+            'Require State field on patron registration',
+            'coust',
+            'label'
+        ),
+        oils_i18n_gettext(
+            'ui.patron.edit.aua.state.require',
+            'The State field will be required on the patron registration screen.',
+            'coust',
+            'description'
+        ),
+        'bool'
+    );
+
+INSERT into config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES (
+        'ui.patron.edit.aua.state.show',
+        'gui',
+        oils_i18n_gettext(
+            'ui.patron.edit.aua.state.show',
+            'Show State field on patron registration',
+            'coust',
+            'label'
+        ),
+        oils_i18n_gettext(
+            'ui.patron.edit.aua.state.show',
+            'The State field will be shown on the patron registration screen. Showing a field makes it appear with required fields even when not required. If the field is required this setting is ignored.',
+            'coust',
+            'description'
+        ),
+        'bool'
+    );
+
 COMMIT;