From 9a6eabeb97f31b1a9acbde4f15c44af880c3b7f0 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 --- 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 9f6d066976..2492a66ea7 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -215,6 +215,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 bcdb4b2b88..5fded2ad0c 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 @@ -661,6 +661,12 @@ Circulation: yes: Enable no: "Don't enable" - the item groups feature to allow collecting groups of items on a record together. + - + - pref: EnableItemGroupHolds + choices: + yes: Enable + no: "Don't enable" + - the ability to place holds on item groups. - - In the staff client, split the holds queue into separate tables by - pref: HoldsSplitQueue -- 2.30.2