From dca5a20875fb13d1c8b9ab1136d40a7a7465d2a3 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 --- installer/data/mysql/atomicupdate/volumes.perl | 5 +++++ installer/data/mysql/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 315755a50f..3abe156048 100644 --- a/installer/data/mysql/atomicupdate/volumes.perl +++ b/installer/data/mysql/atomicupdate/volumes.perl @@ -5,6 +5,11 @@ if ( CheckVersion( $DBversion ) ) { ('EnableVolumes','0','','Enable volumes feature','YesNo'); }); + $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/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 32b0b124a8..f1052defaf 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -676,6 +676,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'), ('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'), ('EnableVolumes','0','','Enable volumes feature','YesNo'), +('EnableVolumeHolds','0','','Enable volume level holds feature','YesNo'), ('viewISBD','1','','Allow display of ISBD view of bibiographic records','YesNo'), ('viewLabeledMARC','0','','Allow display of labeled MARC view of bibiographic records','YesNo'), ('viewMARC','1','','Allow display of MARC view of bibiographic records','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 131e1bb906..2a65ce750f 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 @@ -581,6 +581,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.21.1 (Apple Git-122.3)