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 1493-1499 tables: Link Here
1493
            - "[% IF checkout.auto_renew_error %]"
1493
            - "[% IF checkout.auto_renew_error %]"
1494
            - "The following item, [% biblio.title %], has not been renewed because:"
1494
            - "The following item, [% biblio.title %], has not been renewed because:"
1495
            - "[% IF checkout.auto_renew_error == 'too_many' %]"
1495
            - "[% IF checkout.auto_renew_error == 'too_many' %]"
1496
            - "You have reached the maximum number of checkouts possible."
1496
            - "You have reached the maximum number of renewals possible."
1497
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1497
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1498
            - "This item is on hold for another patron."
1498
            - "This item is on hold for another patron."
1499
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
1499
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
Lines 1556-1562 tables: Link Here
1556
            - "[% IF !checkout.auto_renew_error %]"
1556
            - "[% IF !checkout.auto_renew_error %]"
1557
            - "was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]"
1557
            - "was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]"
1558
            - "[% ELSIF checkout.auto_renew_error == 'too_many' %]"
1558
            - "[% ELSIF checkout.auto_renew_error == 'too_many' %]"
1559
            - "You have reached the maximum number of checkouts possible."
1559
            - "You have reached the maximum number of renewals possible."
1560
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1560
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1561
            - "This item is on hold for another patron."
1561
            - "This item is on hold for another patron."
1562
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
1562
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
(-)a/installer/data/mysql/updatedatabase.pl (-4 / +3 lines)
Lines 14440-14446 if( CheckVersion( $DBversion ) ) { Link Here
14440
[% IF checkout.auto_renew_error %]
14440
[% IF checkout.auto_renew_error %]
14441
The following item, [% biblio.title %], has not been renewed because:
14441
The following item, [% biblio.title %], has not been renewed because:
14442
[% IF checkout.auto_renew_error == 'too_many' %]
14442
[% IF checkout.auto_renew_error == 'too_many' %]
14443
You have reached the maximum number of checkouts possible.
14443
You have reached the maximum number of renewals possible.
14444
[% ELSIF checkout.auto_renew_error == 'on_reserve' %]
14444
[% ELSIF checkout.auto_renew_error == 'on_reserve' %]
14445
This item is on hold for another patron.
14445
This item is on hold for another patron.
14446
[% ELSIF checkout.auto_renew_error == 'restriction' %]
14446
[% ELSIF checkout.auto_renew_error == 'restriction' %]
Lines 22108-22114 if( CheckVersion( $DBversion ) ) { Link Here
22108
        UPDATE letter SET
22108
        UPDATE letter SET
22109
        name = REPLACE(name, "notification on auto renewing", "Notification of automatic renewal"),
22109
        name = REPLACE(name, "notification on auto renewing", "Notification of automatic renewal"),
22110
        title = REPLACE(title, "Auto renewals", "Automatic renewal notice"),
22110
        title = REPLACE(title, "Auto renewals", "Automatic renewal notice"),
22111
        content = REPLACE(content, "You have reach the maximum of checkouts possible.", "You have reached the maximum number of checkouts possible.")
22111
        content = REPLACE(content, "You have reach the maximum of checkouts possible.", "You have reached the maximum number of renewals possible.")
22112
        WHERE code = 'AUTO_RENEWALS';
22112
        WHERE code = 'AUTO_RENEWALS';
22113
    });
22113
    });
22114
    $dbh->do(q{
22114
    $dbh->do(q{
Lines 23698-23704 if( CheckVersion( $DBversion ) ) { Link Here
23698
            [% IF !checkout.auto_renew_error %]
23698
            [% IF !checkout.auto_renew_error %]
23699
                was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
23699
                was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
23700
            [% ELSIF checkout.auto_renew_error == 'too_many' %]
23700
            [% ELSIF checkout.auto_renew_error == 'too_many' %]
23701
                You have reached the maximum number of checkouts possible.
23701
                You have reached the maximum number of renewals possible.
23702
            [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
23702
            [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
23703
                This item is on hold for another patron.
23703
                This item is on hold for another patron.
23704
            [% ELSIF checkout.auto_renew_error == 'restriction' %]
23704
            [% ELSIF checkout.auto_renew_error == 'restriction' %]
23705
- 

Return to bug 28263