From b655050f2e99d530a8d9cdd6c8ffe35504eb39b3 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Fri, 8 Mar 2019 11:03:38 -0500 Subject: [PATCH] LP1819181: Example DOB for Patron Reg/Edit Add the necessary coust entry for a patron dob example and teach the registration controller to use it. Signed-off-by: Jason Boyer Signed-off-by: Bill Erickson --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 9 +++++++++ .../src/sql/Pg/upgrade/XXXX.data.lp1819181-example-dob.sql | 12 ++++++++++++ Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 1 + 3 files changed, 22 insertions(+) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1819181-example-dob.sql 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 a6fae4dcc7..7e76891eff 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -4752,6 +4752,15 @@ INSERT into config.org_unit_setting_type 'coust', 'description'), 'bool', null) +,( 'ui.patron.edit.au.dob.example', 'gui', + oils_i18n_gettext('ui.patron.edit.au.dob.example', + 'Example dob field on patron registration', + 'coust', 'label'), + oils_i18n_gettext('ui.patron.edit.au.dob.example', + 'The Example for validation on the dob field in patron registration.', + 'coust', 'description'), + 'string', null) + ,( 'ui.patron.edit.au.dob.calendar', 'gui', oils_i18n_gettext('ui.patron.edit.au.dob.calendar', 'Show calendar widget for dob field on patron registration', diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1819181-example-dob.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1819181-example-dob.sql new file mode 100644 index 0000000000..b35f9c7a2d --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1819181-example-dob.sql @@ -0,0 +1,12 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +INSERT INTO config.org_unit_setting_type (name,label,grp,description,datatype) +VALUES ('ui.patron.edit.au.dob.example',oils_i18n_gettext('ui.patron.edit.au.dob.example', + 'Example dob field on patron registration', 'coust', 'label'),'gui', + oils_i18n_gettext('ui.patron.edit.au.dob.example', + 'The Example for validation on the dob field in patron registration.', 'coust', 'description'), + 'string'); + +COMMIT; diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index e33933acb3..4a720cf20a 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -349,6 +349,7 @@ angular.module('egCoreMod') 'ui.patron.edit.au.dob.show', 'ui.patron.edit.au.dob.suggest', 'ui.patron.edit.au.dob.calendar', + 'ui.patron.edit.au.dob.example', 'ui.patron.edit.au.juvenile.show', 'ui.patron.edit.au.juvenile.suggest', 'ui.patron.edit.au.ident_value.show', -- 2.11.0