]> git.koha-community.org Git - koha.git/commit
Bug 33933: Only show use restriction once on OPAC detail page
authorDavid Cook <dcook@prosentient.com.au>
Wed, 7 Jun 2023 05:30:40 +0000 (05:30 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 12 Jul 2023 17:30:58 +0000 (14:30 -0300)
commite0df163bfcfafb3baac6d11ab1864bdbd4d0befa
treee88a97635cf4b512809b749de26b34a86bf34183
parent213392fd6bc02f3551a573e3a6127f3ecbaaed31
Bug 33933: Only show use restriction once on OPAC detail page

This patch removes a regression from bug 32611 that caused the
use restriction text to be shown twice for "Available" items.

Test plan:
0. Apply patch
1. Go to http://localhost:8081/cgi-bin/koha/cataloguing/additem.pl?biblionumber=29
2. Edit item and add "Restricted access" for "5 - Use restrictions"
3. Go to http://localhost:8080/cgi-bin/koha/opac-detail.pl?biblionumber=29
4. Note that "Status" says "Available (Restricted access)" and there is no
duplicate "Restricted access" at the top of that table cell

Signed-off-by: ebal <eric.balluto@univ-lyon2.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc