(MT #3447) Reservations

Added notice for hold from staff and hold from borrower.
This commit is contained in:
Christophe Croullebois 2010-09-07 16:13:10 +02:00 committed by Henri-Damien LAURENT
parent 9ee90f312b
commit d5bf0d8f8e
2 changed files with 13 additions and 1 deletions

View File

@ -774,6 +774,18 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = '3.00.06.013';
if (C4::Context->preference('Version') < TransformToNum($DBversion)){
$dbh->do("
INSERT IGNORE INTO `letter` (module, code, name, title, content) VALUES('reserves', 'HOLDPLACED', 'Hold Placed on Item', 'Hold Placed on Item','An hold has been placed on the following item : <<title>> (<<biblionumber>>) by the user <<firstname>> <<surname>> (<<cardnumber>>).');
");
$dbh->do("
INSERT IGNORE INTO `letter` (module, code, name, title, content) VALUES('reserves', 'STAFFHOLDPLACED', 'Hold Placed on Item (from staff)', 'Hold Placed on Item (from staff)','A hold has been placed on the following item from the intranet : <<title>> (<<biblionumber>>) for the user <<firstname>> <<surname>> (<<cardnumber>>).');
");
print "Upgrade to $DBversion done (Added notice for hold from staff and hold from borrower)\n";
SetVersion ($DBversion);
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table

View File

@ -10,7 +10,7 @@
use strict;
sub kohaversion {
our $VERSION = '3.00.06.010';
our $VERSION = '3.00.06.013';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install