From: erickson Date: Thu, 12 Nov 2009 14:18:56 +0000 (+0000) Subject: Patch from Joe Atzberger to add org settings and perms for alert/deny if local copy... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=caac747176ccc2fd1b802986ade4d7522128f1ea;p=evergreen%2Fmasslnc.git Patch from Joe Atzberger to add org settings and perms for alert/deny if local copy is available for a hold git-svn-id: svn://svn.open-ils.org/ILS/trunk@14880 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 8cc430ddf4..4f1b79a6bb 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 ('0076'); -- senator +INSERT INTO config.upgrade_log (version) VALUES ('0077'); -- atz 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 fa3fb09837..c1e8e03495 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1230,7 +1230,10 @@ INSERT INTO permission.perm_list VALUES (347,'UPDATE_PAYMENT_NOTE', oils_i18n_gettext(347,'Allows staff to edit the note for a payment on a transaction', 'ppl', 'description')), (348, 'UPDATE_RECORD', oils_i18n_gettext(348, 'Allow a user to update and undelete records.', 'ppl', 'description')), (349, 'UPDATE_PATRON_CLAIM_NEVER_CHECKED_OUT_COUNT', oils_i18n_gettext(349,'Allows staff to manually change a patron''s claims never checkout out count', 'ppl', 'description')), - (350, 'ADMIN_COPY_LOCATION_ORDER', oils_i18n_gettext(350, 'Allow a user to create/view/update/delete a copy location order', 'ppl', 'description')); + (350, 'ADMIN_COPY_LOCATION_ORDER', oils_i18n_gettext(350, 'Allow a user to create/view/update/delete a copy location order', 'ppl', 'description')), + +-- additional permissions + (351, 'HOLD_LOCAL_AVAIL_OVERRIDE', oils_i18n_gettext(351, 'Allow a user to place a hold despite the availability of a local copy', 'ppl', 'description')); SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000); diff --git a/Open-ILS/src/sql/Pg/upgrade/0077.data.holds_local_avail_and_override.sql b/Open-ILS/src/sql/Pg/upgrade/0077.data.holds_local_avail_and_override.sql new file mode 100644 index 0000000000..1b66c7c837 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0077.data.holds_local_avail_and_override.sql @@ -0,0 +1,22 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0077'); -- atz + +INSERT INTO config.org_unit_setting_type (name, label, description, datatype) + VALUES + ('circ.holds.alert_if_local_avail', + 'Holds: Local available alert', + 'If local copy is available, alert the person making the hold', + 'bool'), + + ('circ.holds.deny_if_local_avail', + 'Holds: Local available block', + 'If local copy is available, deny the creation of the hold', + 'bool') + ; + +INSERT INTO permission.perm_list VALUES +(351, 'HOLD_LOCAL_AVAIL_OVERRIDE', oils_i18n_gettext(351, 'Allow a user to place a hold despite the availability of a local copy', 'ppl', 'description')); + +COMMIT; +