From: Bill Erickson Date: Mon, 26 Aug 2013 14:44:29 +0000 (-0400) Subject: backport state.show/require settings for patron reg X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fberick%2Ftpac-self-reg-2.4;p=working%2FEvergreen.git backport state.show/require settings for patron reg Signed-off-by: Bill Erickson --- 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;