From 1895c7f36c7cab64da4fcd08be60e56bae1e3e07 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 15 Jan 2016 10:49:02 +0100 Subject: [PATCH] Bug 15545: Database revision for HoldNoteReasons pref Content-Type: text/plain; charset=utf-8 Adds a new preference. Test plan: Run the db revision. Check the pref in the interface. --- .../data/mysql/atomicupdate/15545a-holdnotereasons-pref.sql | 1 + installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/circulation.pref | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/15545a-holdnotereasons-pref.sql diff --git a/installer/data/mysql/atomicupdate/15545a-holdnotereasons-pref.sql b/installer/data/mysql/atomicupdate/15545a-holdnotereasons-pref.sql new file mode 100644 index 0000000..569605a --- /dev/null +++ b/installer/data/mysql/atomicupdate/15545a-holdnotereasons-pref.sql @@ -0,0 +1 @@ +INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('HoldNoteReasons','','LEADER_SERIAL|LEADER_COLLECTION|MARC300A_PARTS','List the codes for all situations where you require a hold note, separated by a space or comma.','Free'); diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index e2e3ad2..1721d37 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -161,6 +161,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('HighlightOwnItemsOnOPAC','0','','If on, and a patron is logged into the OPAC, items from his or her home library will be emphasized and shown first in search results and item details.','YesNo'), ('HighlightOwnItemsOnOPACWhich','PatronBranch','PatronBranch|OpacURLBranch','Decides which branch\'s items to emphasize. If PatronBranch, emphasize the logged in user\'s library\'s items. If OpacURLBranch, highlight the items of the Apache var BRANCHCODE defined in Koha\'s Apache configuration file.','Choice'), ('HoldFeeMode','not_always','always|not_always','Set the hold fee mode','Choice'), +('HoldNoteReasons','','LEADER_SERIAL|LEADER_COLLECTION|MARC300A_PARTS','List the codes for all situations where you require a hold note, separated by a space or comma.','Free'), ('HoldsQueueSkipClosed', '0', NULL, 'If enabled, any libraries that are closed when the holds queue is built will be ignored for the purpose of filling holds.', 'YesNo'), ('HoldsToPullStartDate','2',NULL,'Set the default start date for the Holds to pull list to this many days ago','Integer'), ('HomeOrHoldingBranch','holdingbranch','holdingbranch|homebranch','Used by Circulation to determine which branch of an item to check with independent branches on, and by search to determine which branch to choose for availability ','Choice'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref index 8cdba08..a461d8e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -624,6 +624,12 @@ Circulation: choices: homebranch: "home library" holdingbranch: "holding library" + - + - "List the codes for all situations where you require a hold note, separated by a space or comma." + - pref: HoldNoteReasons + type: textarea + class: code + - "Supported are: LEADER_COLLECTION, LEADER_SERIAL and MARC300A_PARTS." Fines Policy: - - Calculate fines based on days overdue -- 1.7.10.4