From a9d5cd96f2e4cc6684002538733fcc960e2ec75c Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Wed, 5 Jun 2013 00:40:53 -0400 Subject: [PATCH] LP1079041 - making state not required (continued) The last commit did not add the default YAOUS to the seed data. Also, some wording tweaks to bring the content in line with the existing entries for consistency. Signed-off-by: Ben Shum --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 27 ++++++++++++++++++++++ .../upgrade/XXXX.state_field_required_toggle.sql | 14 +++++------ 2 files changed, 34 insertions(+), 7 deletions(-) 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 c679de4662..d181ff4f1c 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -4556,6 +4556,33 @@ INSERT into config.org_unit_setting_type 'coust', 'description'), 'bool', null) +,( 'ui.patron.edit.au.state.require', 'gui', + oils_i18n_gettext('ui.patron.edit.au.state.require', + 'Require State field on patron registration', + 'coust', 'label'), + oils_i18n_gettext('ui.patron.edit.au.state.require', + 'The State field will be required on the patron registration screen.', + 'coust', 'description'), + 'bool', null) + +,( 'ui.patron.edit.au.state.show', 'gui', + oils_i18n_gettext('ui.patron.edit.au.state.show', + 'Show State field on patron registration', + 'coust', 'label'), + oils_i18n_gettext('ui.patron.edit.au.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', null) + +,( 'ui.patron.edit.au.state.suggest', 'gui', + oils_i18n_gettext('ui.patron.edit.au.state.suggest', + 'Suggest State field on patron registration', + 'coust', 'label'), + oils_i18n_gettext('ui.patron.edit.au.state.suggest', + 'The State field will be suggested on the patron registration screen. Suggesting a field makes it appear when suggested fields are shown. If the field is shown or required this setting is ignored.', + 'coust', 'description'), + 'bool', null) + ,( 'ui.patron.edit.aua.post_code.example', 'gui', oils_i18n_gettext('ui.patron.edit.aua.post_code.example', 'Example for post_code field on patron registration', diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.state_field_required_toggle.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.state_field_required_toggle.sql index 82892314f5..9562259eea 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.state_field_required_toggle.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.state_field_required_toggle.sql @@ -2,7 +2,7 @@ BEGIN; SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); --- state can no longer be a "not null" +-- allow state to be null ALTER TABLE actor.usr_address ALTER COLUMN state DROP NOT NULL; -- create new YAOUS @@ -13,13 +13,13 @@ INSERT into config.org_unit_setting_type 'gui', oils_i18n_gettext( 'ui.patron.edit.au.state.require', - 'Require State on registration', + 'Require State field on patron registration', 'coust', 'label' ), oils_i18n_gettext( 'ui.patron.edit.au.state.require', - 'Require the State field to be filled when registering or editing a patron.', + 'The State field will be required on the patron registration screen.', 'coust', 'description' ), @@ -33,13 +33,13 @@ INSERT into config.org_unit_setting_type 'gui', oils_i18n_gettext( 'ui.patron.edit.au.state.show', - 'Show State on registration', + 'Show State field on patron registration', 'coust', 'label' ), oils_i18n_gettext( 'ui.patron.edit.au.state.show', - 'Show the state field when registering or editing a patron.', + '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' ), @@ -53,13 +53,13 @@ INSERT into config.org_unit_setting_type 'gui', oils_i18n_gettext( 'ui.patron.edit.au.state.suggest', - 'Suggest State on registration', + 'Suggest State field on patron registration', 'coust', 'label' ), oils_i18n_gettext( 'ui.patron.edit.au.state.suggest', - 'Suggest filling the state field when registering or editing a patron.', + 'The State field will be suggested on the patron registration screen. Suggesting a field makes it appear when suggested fields are shown. If the field is shown or required this setting is ignored.', 'coust', 'description' ), -- 2.11.0