From f5f5e15145bf51eaccfb14f9c18372a5afdeccd9 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 13 Nov 2009 16:55:43 +0000 Subject: [PATCH] initial org settings for defining behavior of the automated clear holds shelf process git-svn-id: svn://svn.open-ils.org/ILS/trunk@14902 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 | 17 ++++++++++++++++ .../0081.data.org-setting-clear-hold-shelf.sql | 23 ++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0081.data.org-setting-clear-hold-shelf.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index e20f1b72f6..87f0e24dee 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 ('0080'); -- berick +INSERT INTO config.upgrade_log (version) VALUES ('0081'); -- 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 243246a1b9..a43cdb3741 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2484,3 +2484,20 @@ INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) 'bool' ); +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype, fm_class ) + VALUES ( + 'circ.holds.clear_shelf.copy_status', + oils_i18n_gettext('circ.holds.clear_shelf.copy_status', 'Holds: Clear shelf copy status', 'coust', 'label'), + oils_i18n_gettext('circ.holds.clear_shelf.copy_status', 'Any copies that have not been put into reshelving, in-transit, or on-holds-shelf (for a new hold) during the clear shelf process will be put into this status. This is basically a purgatory status for copies waiting to be pulled from the shelf and processed by hand', 'coust', 'description'), + 'link', + 'ccs' + ); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.holds.clear_shelf.no_capture_holds', + oils_i18n_gettext('circ.holds.clear_shelf.no_capture_holds', 'Holds: Bypass hold capture during clear shelf process', 'coust', 'label'), + oils_i18n_gettext('circ.holds.clear_shelf.no_capture_holds', 'During the clear shelf process, avoid capturing new holds on cleared items.', 'coust', 'description'), + 'bool' + ); + diff --git a/Open-ILS/src/sql/Pg/upgrade/0081.data.org-setting-clear-hold-shelf.sql b/Open-ILS/src/sql/Pg/upgrade/0081.data.org-setting-clear-hold-shelf.sql new file mode 100644 index 0000000000..e0436029b6 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0081.data.org-setting-clear-hold-shelf.sql @@ -0,0 +1,23 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0081'); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype, fm_class ) + VALUES ( + 'circ.holds.clear_shelf.copy_status', + oils_i18n_gettext('circ.holds.clear_shelf.copy_status', 'Holds: Clear shelf copy status', 'coust', 'label'), + oils_i18n_gettext('circ.holds.clear_shelf.copy_status', 'Any copies that have not been put into reshelving, in-transit, or on-holds-shelf (for a new hold) during the clear shelf process will be put into this status. This is basically a purgatory status for copies waiting to be pulled from the shelf and processed by hand', 'coust', 'description'), + 'link', + 'ccs' + ); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.holds.clear_shelf.no_capture_holds', + oils_i18n_gettext('circ.holds.clear_shelf.no_capture_holds', 'Holds: Bypass hold capture during clear shelf process', 'coust', 'label'), + oils_i18n_gettext('circ.holds.clear_shelf.no_capture_holds', 'During the clear shelf process, avoid capturing new holds on cleared items.', 'coust', 'description'), + 'bool' + ); + + +COMMIT; -- 2.11.0