Follow up to bug3093 patch
authorChris Cormack <chrisc@catalyst.net.nz>
Tue, 11 May 2010 05:13:59 +0000 (17:13 +1200)
committerGalen Charlton <gmcharlt@gmail.com>
Tue, 11 May 2010 11:44:19 +0000 (07:44 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
installer/data/mysql/en/mandatory/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref

index 2a924e0..d0ba1b5 100644 (file)
@@ -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
index 3f5939e..42b6687 100755 (executable)
@@ -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
index f1af73a..1f359fa 100644 (file)
@@ -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