From 5c4e25d2ba7a9027086b493ef7b93b0ef3e96b31 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 5e7c72bc3d3..010f74c1572 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 259d7f05f1a..2494440d4e5 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -211,6 +211,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 a67236b55a0..cf5b9a983ad 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 @@ -680,6 +680,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