---
 installer/data/mysql/en/mandatory/sysprefs.sql     |    1 +
 installer/data/mysql/updatedatabase.pl             |    7 +++++++
 .../en/modules/admin/preferences/circulation.pref  |    6 ++++++
 3 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql 
b/installer/data/mysql/en/mandatory/sysprefs.sql
index 2a924e0..d0ba1b5 100644
--- a/installer/data/mysql/en/mandatory/sysprefs.sql
+++ b/installer/data/mysql/en/mandatory/sysprefs.sql
@@ -287,3 +287,4 @@ INSERT INTO `systempreferences` ( `variable` , `value` , 
`options` , `explanatio
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('ILS-DI','0','Enables ILS-DI services at OPAC.','','YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('ILS-DI:Authorized_IPs','','.','Restricts usage of ILS-DI to some 
IPs','Free');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES ('OverduesBlockCirc','noblock','When checking out an item should 
overdues block checkout, generate a confirmation dialogue, or allow 
checkout','noblock|confirmation|block','Choice');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES ('DisplayMultiPlaceHold','1','Display the ability to place multiple 
holds or not','','YesNo');
\ No newline at end of file
diff --git a/installer/data/mysql/updatedatabase.pl 
b/installer/data/mysql/updatedatabase.pl
index 3f5939e..42b6687 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -3596,6 +3596,13 @@ if (C4::Context->preference('Version') < 
TransformToNum($DBversion)){
     SetVersion ($DBversion);
 }
 
+$DBversion = '3.01.00.XXX';
+if (C4::Context->preference('Version') < TransformToNum($DBversion)){
+    $dbh->do("INSERT INTO systempreferences 
(variable,value,explanation,options,type) VALUES 
('DisplayMultiPlaceHold','1','Display the ability to place multiple holds or 
not','','YesNo')");
+    print "Upgrade to $DBversion done adding syspref DisplayMultiPlaceHold to 
control whether multiple holds can be placed from the search results page";
+    SetVersion ($DBversion);
+}
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table
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 f1af73a..1f359fa 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
@@ -268,6 +268,12 @@ Circulation:
                   yes: Enable
                   no:  "Don't enable"
             - "sending an email to the Koha administrator email address 
whenever a hold request is placed."
+        -
+            - pref: DisplayMultiPlaceHold
+              choices:
+                  yes: Enable
+                  no:  "Don't enable"
+            - "the ability to place holds on multiple biblio from the search 
results"      
     Fines Policy:
         -
             - Calculate fines based on days overdue
-- 
1.6.3.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to