Bugzilla – Attachment 24115 Details for
Bug 11486
Show renewal count on 'check out' and 'details' tabs in patron record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11486: Don't display the number of remaining renewals if == 0
Bug-11486-Dont-display-the-number-of-remaining-ren.patch (text/plain), 4.29 KB, created by
Jonathan Druart
on 2014-01-10 11:32:03 UTC
(
hide
)
Description:
Bug 11486: Don't display the number of remaining renewals if == 0
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-01-10 11:32:03 UTC
Size:
4.29 KB
patch
obsolete
>From e4c04098a465e8b418fd05d4f3cb419e2c42d73c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >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 <jonathan.druart@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 8 ++++---- > koha-tmpl/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 8a5439b..5a6a82d 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 <span class="ex">[% message %]</span> > [% ELSE %] > <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> > [% END %] >- [% IF ( todayissue.renewsallowed ) %] >+ [% IF todayissue.renewsallowed && todayissue.renewsleft %] > <span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span> > [% END %] > [% ELSE %] >@@ -778,7 +778,7 @@ No patron matched <span class="ex">[% message %]</span> > <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> > [% END %] > </span> >- [% IF ( todayissue.renewsallowed ) %] >+ [% IF todayissue.renewsallowed && todayissue.renewsleft %] > <span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span> > [% END %] > <span class="renewals-disabled"> >@@ -861,7 +861,7 @@ No patron matched <span class="ex">[% message %]</span> > [% ELSE %] > <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> > [% END %] >- [% IF ( previssue.renewsallowed ) %] >+ [% IF previssue.renewsallowed && previssue.renewsleft %] > <span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span> > [% END %] > [% ELSE %] >@@ -873,7 +873,7 @@ No patron matched <span class="ex">[% message %]</span> > <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> > [% END %] > </span> >- [% IF ( previssue.renewsallowed ) %] >+ [% IF previssue.renewsallowed && previssue.renewsleft %] > <span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span> > [% END %] > <span class="renewals-disabled"> >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 961436c..79d319e 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) { > <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" /> > [% END %] > </span> >- [% IF ( issueloo.renewsallowed ) %] >+ [% IF issueloo.renewsallowed && issueloo.renewsleft %] > <span class="renewals">([% issueloo.renewsleft %] of [% issueloo.renewsallowed %] renewals remaining)</span> > [% END %] > <span class="renewals-disabled"> >@@ -521,7 +521,7 @@ function validate1(date) { > [% ELSE %] > <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" onclick="uncheck_sibling(this);" /> > [% END %] >- [% IF ( issueloo.renewsallowed ) %] >+ [% IF issueloo.renewsallowed && issueloo.renewsleft %] > <span class="renewals">([% issueloo.renewsleft %] of [% issueloo.renewsallowed %] renewals remaining)</span> > [% END %] > [% END %] >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11486
:
23982
|
24033
|
24093
|
24114
| 24115