]> git.koha-community.org Git - koha.git/commit
Bug 35310: Only show 'Current renewals' <li> entry if there are current renewals
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Fri, 10 Nov 2023 11:00:55 +0000 (11:00 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 12 Dec 2023 14:04:51 +0000 (15:04 +0100)
commit942c4a0535dbbf46746e849758d7dfc741187bec
tree38afea6888a1b593eed6155bd4628ab95a575ca9
parent20d0d94f22aeab3c71d22b6a99fbfa4421e1f40d
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>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt