From 443ec407861762b8249685700e9cf18c9a9407e2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 10 Jan 2014 12:25:58 +0100 Subject: [PATCH] Bug 11486: Don't display the number of remaining renewals if == 0 Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 8 ++++---- .../intranet-tmpl/prog/en/modules/members/moremember.tt | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 8a5439be1e..5a6a82d8ad 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -766,7 +766,7 @@ No patron matched [% message %] [% ELSE %] [% END %] - [% IF ( todayissue.renewsallowed ) %] + [% IF todayissue.renewsallowed && todayissue.renewsleft %] ([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining) [% END %] [% ELSE %] @@ -778,7 +778,7 @@ No patron matched [% message %] [% END %] - [% IF ( todayissue.renewsallowed ) %] + [% IF todayissue.renewsallowed && todayissue.renewsleft %] ([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining) [% END %] @@ -861,7 +861,7 @@ No patron matched [% message %] [% ELSE %] [% END %] - [% IF ( previssue.renewsallowed ) %] + [% IF previssue.renewsallowed && previssue.renewsleft %] ([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining) [% END %] [% ELSE %] @@ -873,7 +873,7 @@ No patron matched [% message %] [% END %] - [% IF ( previssue.renewsallowed ) %] + [% IF previssue.renewsallowed && previssue.renewsleft %] ([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining) [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 961436cb09..79d319e528 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -500,7 +500,7 @@ function validate1(date) { [% END %] - [% IF ( issueloo.renewsallowed ) %] + [% IF issueloo.renewsallowed && issueloo.renewsleft %] ([% issueloo.renewsleft %] of [% issueloo.renewsallowed %] renewals remaining) [% END %] @@ -521,7 +521,7 @@ function validate1(date) { [% ELSE %] [% END %] - [% IF ( issueloo.renewsallowed ) %] + [% IF issueloo.renewsallowed && issueloo.renewsleft %] ([% issueloo.renewsleft %] of [% issueloo.renewsallowed %] renewals remaining) [% END %] [% END %] -- 2.39.5