Bug 35310: Only show 'Current renewals' <li> entry if there are current renewals
'Current renewals' is always showing, even if empty.
Test plan:
1) Checkout an item to Koha user, barcode 39999000003192
2) Renew that barcode
3) Visit the items page of the biblio record, click on "View" in front of "Current renewals"
/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=76
4) Notice all items have the 'Current renewals' label entry, but only the checked out item in step 1) has the 'Current renewals' label entry
5) Apply patch. Notice only the item with current renewals is showing the 'Current renewals' label entry with the respective value.
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 942c4a0535
)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
db47ceba8d
commit
9eacb4b40f
1 changed files with 7 additions and 7 deletions
|
@ -193,13 +193,13 @@
|
|||
[% END %]
|
||||
[% END %]
|
||||
</li>
|
||||
<li>
|
||||
<span class="label">Current renewals:</span>
|
||||
[% ITEM_DAT.renewals | html %]
|
||||
[% IF ITEM_DAT.renewals %]
|
||||
[ <a class="checkout_renewals_view" data-renewals="[% ITEM_DAT.renewals | html | html %]" data-issueid="[% ITEM_DAT.object.checkout.id | html %]" href="#">View</a> ]
|
||||
[% END %]
|
||||
</li>
|
||||
[% IF ITEM_DAT.renewals %]
|
||||
<li>
|
||||
<span class="label">Current renewals:</span>
|
||||
[% ITEM_DAT.renewals | html %]
|
||||
[ <a class="checkout_renewals_view" data-renewals="[% ITEM_DAT.renewals | html | html %]" data-issueid="[% ITEM_DAT.object.checkout.id | html %]" href="#">View</a> ]
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF itemlostloop %]
|
||||
<li>
|
||||
<span class="label">Lost status:</span>
|
||||
|
|
Loading…
Reference in a new issue