From 5b7410fe2bcdfb7942e23ee31aba9cf28339e6ed Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 28 Feb 2020 10:51:47 -0500 Subject: [PATCH] Bug 24860: Add new syspref EnableItemGroupHolds Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Rebecca Coert Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/atomicupdate/bug_24860.perl | 5 +++++ installer/data/mysql/mandatory/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/circulation.pref | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/installer/data/mysql/atomicupdate/bug_24860.perl b/installer/data/mysql/atomicupdate/bug_24860.perl index 5e7c72bc3d..010f74c157 100644 --- a/installer/data/mysql/atomicupdate/bug_24860.perl +++ b/installer/data/mysql/atomicupdate/bug_24860.perl @@ -16,6 +16,11 @@ if ( CheckVersion( $DBversion ) ) { }); } + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('EnableItemGroupHolds','0','','Enable volume level holds feature','YesNo') + }); + SetVersion( $DBversion ); print "Upgrade to $DBversion done (Bug 24860 - Add ability to place item group level holds)\n"; } diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 47a49d331f..96800b1a47 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -218,6 +218,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('EnablePointOfSale','0',NULL,'Enable the point of sale feature to allow anonymous transactions with the accounting system. (Requires UseCashRegisters)','YesNo'), ('EnableSearchHistory','0','','Enable or disable search history','YesNo'), ('EnableItemGroups','0','','Enable the item groups feature','YesNo'), +('EnableItemGroupHolds','0','','Enable volume level holds feature','YesNo'), ('EnhancedMessagingPreferences','1','','If ON, allows patrons to select to receive additional messages about items due or nearly due.','YesNo'), ('EnhancedMessagingPreferencesOPAC', '1', NULL, 'If ON, show patrons messaging setting on the OPAC.', 'YesNo'), ('expandedSearchOption','0',NULL,'If ON, set advanced search to be expanded by default','YesNo'), 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 c2652a77da..e025fc6e9d 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 @@ -685,6 +685,12 @@ Circulation: itemtype: "hold item type" branch_itemtype: "pickup library and item type" - "." + - + - pref: EnableItemGroupHolds + choices: + yes: Enable + no: "Don't enable" + - the ability to place holds on item groups. - - If the holds queue is split, show librarians - pref: HoldsSplitQueueNumbering -- 2.39.2