View | Details | Raw Unified | Return to bug 28263
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_28263_fix_auto_renewal_message.perl (+10 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        UPDATE letter SET
5
        content = REPLACE(content, "You have reached the maximum number of checkouts possible." , "You have reached the maximum number of renewals possible.")
6
        WHERE code = 'AUTO_RENEWALS';
7
    });
8
9
    NewVersion( $DBversion, 28263, "Update AUTO_RENEWAL too_many message");
10
}
(-)a/installer/data/mysql/updatedatabase.pl (-4 / +3 lines)
Lines 14441-14447 if( CheckVersion( $DBversion ) ) { Link Here
14441
[% IF checkout.auto_renew_error %]
14441
[% IF checkout.auto_renew_error %]
14442
The following item, [% biblio.title %], has not been renewed because:
14442
The following item, [% biblio.title %], has not been renewed because:
14443
[% IF checkout.auto_renew_error == 'too_many' %]
14443
[% IF checkout.auto_renew_error == 'too_many' %]
14444
You have reached the maximum number of checkouts possible.
14444
You have reached the maximum number of renewals possible.
14445
[% ELSIF checkout.auto_renew_error == 'on_reserve' %]
14445
[% ELSIF checkout.auto_renew_error == 'on_reserve' %]
14446
This item is on hold for another patron.
14446
This item is on hold for another patron.
14447
[% ELSIF checkout.auto_renew_error == 'restriction' %]
14447
[% ELSIF checkout.auto_renew_error == 'restriction' %]
Lines 22097-22103 if( CheckVersion( $DBversion ) ) { Link Here
22097
        UPDATE letter SET
22097
        UPDATE letter SET
22098
        name = REPLACE(name, "notification on auto renewing", "Notification of automatic renewal"),
22098
        name = REPLACE(name, "notification on auto renewing", "Notification of automatic renewal"),
22099
        title = REPLACE(title, "Auto renewals", "Automatic renewal notice"),
22099
        title = REPLACE(title, "Auto renewals", "Automatic renewal notice"),
22100
        content = REPLACE(content, "You have reach the maximum of checkouts possible.", "You have reached the maximum number of checkouts possible.")
22100
        content = REPLACE(content, "You have reach the maximum of checkouts possible.", "You have reached the maximum number of renewals possible.")
22101
        WHERE code = 'AUTO_RENEWALS';
22101
        WHERE code = 'AUTO_RENEWALS';
22102
    });
22102
    });
22103
    $dbh->do(q{
22103
    $dbh->do(q{
Lines 23687-23693 if( CheckVersion( $DBversion ) ) { Link Here
23687
            [% IF !checkout.auto_renew_error %]
23687
            [% IF !checkout.auto_renew_error %]
23688
                was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
23688
                was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
23689
            [% ELSIF checkout.auto_renew_error == 'too_many' %]
23689
            [% ELSIF checkout.auto_renew_error == 'too_many' %]
23690
                You have reached the maximum number of checkouts possible.
23690
                You have reached the maximum number of renewals possible.
23691
            [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
23691
            [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
23692
                This item is on hold for another patron.
23692
                This item is on hold for another patron.
23693
            [% ELSIF checkout.auto_renew_error == 'restriction' %]
23693
            [% ELSIF checkout.auto_renew_error == 'restriction' %]
23694
- 

Return to bug 28263