From 1615afc73d3d5bf55eed34afdcc37dfccf2d0a8e Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 9 Dec 2009 18:34:28 +0000 Subject: [PATCH] added org setting to allow patrons to identify themselves via username (in addition to barcode) during offline checkout git-svn-id: svn://svn.open-ils.org/ILS/trunk@15123 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 9 +++++++++ .../Pg/upgrade/0113.data.org-setting-offline-usrname.sql | 13 +++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0113.data.org-setting-offline-usrname.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 8371144e89..ff444f33f6 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0112'); -- berick +INSERT INTO config.upgrade_log (version) VALUES ('0113'); -- berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, 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 0f6ac05bc1..43134d46c4 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2893,3 +2893,12 @@ $$ INSERT INTO action_trigger.environment ( event_def, path) VALUES ( 13, 'open_billable_transactions_summary.circulation' ); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.offline.username_allowed', + oils_i18n_gettext('circ.offline.username_allowed', 'Selfcheck: Patron Usernames Allowed', 'coust', 'label'), + oils_i18n_gettext('circ.offline.username_allowed', 'During offline circulations, allow patrons to identify themselves with usernames in addition to barcode. For this setting to work, a barcode format must also be defined', 'coust', 'description'), + 'bool' + ); + diff --git a/Open-ILS/src/sql/Pg/upgrade/0113.data.org-setting-offline-usrname.sql b/Open-ILS/src/sql/Pg/upgrade/0113.data.org-setting-offline-usrname.sql new file mode 100644 index 0000000000..5d0f91090f --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0113.data.org-setting-offline-usrname.sql @@ -0,0 +1,13 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0113'); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.offline.username_allowed', + oils_i18n_gettext('circ.offline.username_allowed', 'Selfcheck: Patron Usernames Allowed', 'coust', 'label'), + oils_i18n_gettext('circ.offline.username_allowed', 'During offline circulations, allow patrons to identify themselves with usernames in addition to barcode. For this setting to work, a barcode format must also be defined', 'coust', 'description'), + 'bool' + ); + +COMMIT; -- 2.11.0