From d4297c3f17573665e0de5a3443ab41a34339ce21 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 26 Aug 2013 10:44:29 -0400 Subject: [PATCH] backport state.show/require settings for patron reg Signed-off-by: Bill Erickson --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 42 ++++++++++++++++++++++ .../sql/Pg/upgrade/0823.schema.patron-self-reg.sql | 40 +++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 2db67e3e7e..ce59b237cf 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -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' + ); + + diff --git a/Open-ILS/src/sql/Pg/upgrade/0823.schema.patron-self-reg.sql b/Open-ILS/src/sql/Pg/upgrade/0823.schema.patron-self-reg.sql index 9fe041ca01..6ed8635d51 100644 --- a/Open-ILS/src/sql/Pg/upgrade/0823.schema.patron-self-reg.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0823.schema.patron-self-reg.sql @@ -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; -- 2.11.0