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' OR code = 'AUTO_RENEWALS_DGST' );
7
    });
8
9
    NewVersion( $DBversion, 28263, "Update AUTO_RENEWAL too_many message");
10
}
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-2 / +2 lines)
Lines 1463-1469 tables: Link Here
1463
            - "[% IF checkout.auto_renew_error %]"
1463
            - "[% IF checkout.auto_renew_error %]"
1464
            - "The following item, [% biblio.title %], has not been renewed because:"
1464
            - "The following item, [% biblio.title %], has not been renewed because:"
1465
            - "[% IF checkout.auto_renew_error == 'too_many' %]"
1465
            - "[% IF checkout.auto_renew_error == 'too_many' %]"
1466
            - "You have reached the maximum number of checkouts possible."
1466
            - "You have reached the maximum number of renewals possible."
1467
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1467
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1468
            - "This item is on hold for another patron."
1468
            - "This item is on hold for another patron."
1469
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
1469
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
Lines 1526-1532 tables: Link Here
1526
            - "[% IF !checkout.auto_renew_error %]"
1526
            - "[% IF !checkout.auto_renew_error %]"
1527
            - "was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]"
1527
            - "was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]"
1528
            - "[% ELSIF checkout.auto_renew_error == 'too_many' %]"
1528
            - "[% ELSIF checkout.auto_renew_error == 'too_many' %]"
1529
            - "You have reached the maximum number of checkouts possible."
1529
            - "You have reached the maximum number of renewals possible."
1530
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1530
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1531
            - "This item is on hold for another patron."
1531
            - "This item is on hold for another patron."
1532
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
1532
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
(-)a/installer/data/mysql/updatedatabase.pl (-4 / +3 lines)
Lines 14439-14445 if( CheckVersion( $DBversion ) ) { Link Here
14439
[% IF checkout.auto_renew_error %]
14439
[% IF checkout.auto_renew_error %]
14440
The following item, [% biblio.title %], has not been renewed because:
14440
The following item, [% biblio.title %], has not been renewed because:
14441
[% IF checkout.auto_renew_error == 'too_many' %]
14441
[% IF checkout.auto_renew_error == 'too_many' %]
14442
You have reached the maximum number of checkouts possible.
14442
You have reached the maximum number of renewals possible.
14443
[% ELSIF checkout.auto_renew_error == 'on_reserve' %]
14443
[% ELSIF checkout.auto_renew_error == 'on_reserve' %]
14444
This item is on hold for another patron.
14444
This item is on hold for another patron.
14445
[% ELSIF checkout.auto_renew_error == 'restriction' %]
14445
[% ELSIF checkout.auto_renew_error == 'restriction' %]
Lines 22107-22113 if( CheckVersion( $DBversion ) ) { Link Here
22107
        UPDATE letter SET
22107
        UPDATE letter SET
22108
        name = REPLACE(name, "notification on auto renewing", "Notification of automatic renewal"),
22108
        name = REPLACE(name, "notification on auto renewing", "Notification of automatic renewal"),
22109
        title = REPLACE(title, "Auto renewals", "Automatic renewal notice"),
22109
        title = REPLACE(title, "Auto renewals", "Automatic renewal notice"),
22110
        content = REPLACE(content, "You have reach the maximum of checkouts possible.", "You have reached the maximum number of checkouts possible.")
22110
        content = REPLACE(content, "You have reach the maximum of checkouts possible.", "You have reached the maximum number of renewals possible.")
22111
        WHERE code = 'AUTO_RENEWALS';
22111
        WHERE code = 'AUTO_RENEWALS';
22112
    });
22112
    });
22113
    $dbh->do(q{
22113
    $dbh->do(q{
Lines 23697-23703 if( CheckVersion( $DBversion ) ) { Link Here
23697
            [% IF !checkout.auto_renew_error %]
23697
            [% IF !checkout.auto_renew_error %]
23698
                was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
23698
                was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
23699
            [% ELSIF checkout.auto_renew_error == 'too_many' %]
23699
            [% ELSIF checkout.auto_renew_error == 'too_many' %]
23700
                You have reached the maximum number of checkouts possible.
23700
                You have reached the maximum number of renewals possible.
23701
            [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
23701
            [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
23702
                This item is on hold for another patron.
23702
                This item is on hold for another patron.
23703
            [% ELSIF checkout.auto_renew_error == 'restriction' %]
23703
            [% ELSIF checkout.auto_renew_error == 'restriction' %]
23704
- 

Return to bug 28263