@@ -, +, @@ --- .../bug_28263_fix_auto_renewal_message.perl | 10 ++++++++++ installer/data/mysql/en/mandatory/sample_notices.yml | 4 ++-- installer/data/mysql/updatedatabase.pl | 6 +++--- 3 files changed, 15 insertions(+), 5 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' OR code = 'AUTO_RENEWALS_DGST' ); + }); + + NewVersion( $DBversion, 28263, "Update AUTO_RENEWAL too_many message"); +} --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ a/installer/data/mysql/en/mandatory/sample_notices.yml @@ -1463,7 +1463,7 @@ tables: - "[% 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' %]" @@ -1526,7 +1526,7 @@ tables: - "[% 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' %]" --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -14439,7 +14439,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' %] @@ -22107,7 +22107,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{ @@ -23697,7 +23697,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' %] --