@@ -, +, @@ --- .../mysql/atomicupdate/bug_28263_fix_auto_renewal_message.perl | 10 ++++++++++ installer/data/mysql/updatedatabase.pl | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_28263_fix_auto_renewal_message.perl --- a/installer/data/mysql/atomicupdate/bug_28263_fix_auto_renewal_message.perl +++ a/installer/data/mysql/atomicupdate/bug_28263_fix_auto_renewal_message.perl @@ -0,0 +1,10 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + UPDATE letter SET + content = REPLACE(content, "You have reached the maximum number of checkouts possible." , "You have reached the maximum number of renewals possible.") + WHERE code = 'AUTO_RENEWALS'; + }); + + NewVersion( $DBversion, 28263, "Update AUTO_RENEWAL too_many message"); +} --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -14441,7 +14441,7 @@ if( CheckVersion( $DBversion ) ) { [% IF checkout.auto_renew_error %] The following item, [% biblio.title %], has not been renewed because: [% IF checkout.auto_renew_error == 'too_many' %] -You have reached the maximum number of checkouts possible. +You have reached the maximum number of renewals possible. [% ELSIF checkout.auto_renew_error == 'on_reserve' %] This item is on hold for another patron. [% ELSIF checkout.auto_renew_error == 'restriction' %] @@ -22097,7 +22097,7 @@ if( CheckVersion( $DBversion ) ) { UPDATE letter SET name = REPLACE(name, "notification on auto renewing", "Notification of automatic renewal"), title = REPLACE(title, "Auto renewals", "Automatic renewal notice"), - content = REPLACE(content, "You have reach the maximum of checkouts possible.", "You have reached the maximum number of checkouts possible.") + content = REPLACE(content, "You have reach the maximum of checkouts possible.", "You have reached the maximum number of renewals possible.") WHERE code = 'AUTO_RENEWALS'; }); $dbh->do(q{ @@ -23687,7 +23687,7 @@ if( CheckVersion( $DBversion ) ) { [% IF !checkout.auto_renew_error %] was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%] [% ELSIF checkout.auto_renew_error == 'too_many' %] - You have reached the maximum number of checkouts possible. + You have reached the maximum number of renewals possible. [% ELSIF checkout.auto_renew_error == 'on_reserve' %] This item is on hold for another patron. [% ELSIF checkout.auto_renew_error == 'restriction' %] --