From 66c1e64a0ac6a41a8048a964a50130eae469b76d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 1 Nov 2016 15:53:05 +0100 Subject: [PATCH] Bug 15581: Follow-up - suggested change to the OPAC message Instead of showing "Automatic renewal" to the user, this changes it to show "No longer renewable" when the automatic renewal won't happen any longer because of the days the item has already been checked out. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 2 ++ opac/opac-user.pl | 1 + 2 files changed, 3 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 438cb10..5cb3239 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -259,6 +259,8 @@ Using this account is not recommended because some parts of Koha will not functi Not renewable [% ELSIF ( ISSUE.norenew_overdue ) %] Not allowed (overdue) + [% ELSIF ( ISSUE.auto_too_late ) %] + No longer renewable [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %] Automatic renewal ([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 838a573..84ee660 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -212,6 +212,7 @@ if ($issues){ $issue->{'norenew_overdue'} = 1 if $renewerror eq 'overdue'; $issue->{'auto_renew'} = 1 if $renewerror eq 'auto_renew'; $issue->{'auto_too_soon'} = 1 if $renewerror eq 'auto_too_soon'; + $issue->{'auto_too_late'} = 1 if $renewerror eq 'auto_too_late'; if ( $renewerror eq 'too_soon' ) { $issue->{'too_soon'} = 1; -- 2.7.4