Bug 14364: Allow automatically canceled expired waiting holds to fill the next hold
[koha.git] / installer / data / mysql / atomicupdate / bug_14364.perl
1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3     $dbh->do(q{
4         INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
5         ('ExpireReservesAutoFill','0',NULL,'Automatically fill the next hold with a automatically canceled expired waiting hold.','YesNo'),
6         ('ExpireReservesAutoFillEmail','', NULL,'If ExpireReservesAutoFill and an email is defined here, the email notification for the change in the hold will be sent to this address.','Free');
7     });
8
9     $dbh->do(q{
10         INSERT IGNORE INTO letter(module,code,branchcode,name,is_html,title,content,message_transport_type)
11         VALUES ( 'reserves', 'HOLD_CHANGED', '', 'Canceled Hold Available for Different Patron', '0', 'Canceled Hold Available for Different Patron', 'The patron picking up <<biblio.title>> (<<items.barcode>>) has changed to <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>).
12
13 Please update the hold information for this item.
14
15 Title: <<biblio.title>>
16 Author: <<biblio.author>>
17 Copy: <<items.copynumber>>
18 Pickup location: <<branches.branchname>>', 'email');
19     });
20
21     NewVersion( $DBversion, 14364, "Allow automatically canceled expired waiting holds to fill the next hold");
22 }