Follow up to bug3093 patch

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Chris Cormack 2010-05-11 17:13:59 +12:00 committed by Galen Charlton
parent dc0b98eb9e
commit 853bc200b3
3 changed files with 14 additions and 0 deletions

View 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','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('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 ('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');

View file

@ -3596,6 +3596,13 @@ if (C4::Context->preference('Version') < TransformToNum($DBversion)){
SetVersion ($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) =item DropAllForeignKeys($table)
Drop all foreign keys of the table $table Drop all foreign keys of the table $table

View file

@ -268,6 +268,12 @@ Circulation:
yes: Enable yes: Enable
no: "Don't enable" no: "Don't enable"
- "sending an email to the Koha administrator email address whenever a hold request is placed." - "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: Fines Policy:
- -
- Calculate fines based on days overdue - Calculate fines based on days overdue