From 9db5f9735adf25edfb753e59e6fd0e867a1b3c7d 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 EnableVolumeHolds Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Rebecca Coert --- installer/data/mysql/atomicupdate/volumes.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/volumes.perl b/installer/data/mysql/atomicupdate/volumes.perl index 84a0459007..3b003c126d 100644 --- a/installer/data/mysql/atomicupdate/volumes.perl +++ b/installer/data/mysql/atomicupdate/volumes.perl @@ -10,6 +10,11 @@ if ( CheckVersion( $DBversion ) ) { ( 9, 'manage_volumes', 'Create, update and delete volumes, add or remove items from a volume'); }); + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('EnableVolumeHolds','0','','Enable volume level holds feature','YesNo') + }); + unless ( TableExists('volumes') ) { $dbh->do(q{ CREATE TABLE `volumes` ( -- information related to bibliographic records in Koha diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index da6886c365..4b7a520e4c 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -186,6 +186,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('EnableOpacSearchHistory','1','YesNo','Enable or disable opac search history',''), ('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'), +('EnableVolumeHolds','0','','Enable volume level holds feature','YesNo'), ('EnableVolumes','0','','Enable volumes 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'), 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 cc005b4d5f..f0790146b6 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 @@ -663,6 +663,12 @@ Circulation: yes: Enable no: "Don't enable" - volumes feature to allow collecting groups of items on a record into volumes. + - + - pref: EnableVolumeHolds + choices: + yes: Enable + no: "Don't enable" + - the ability to place holds on volumes. - - In the staff client, split the holds queue into separate tables by - pref: HoldsSplitQueue -- 2.24.1 (Apple Git-126)