Bugzilla – Attachment 152901 Details for
Bug 33933
Use restrictions appear twice for items on OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33933: Only show use restriction once on OPAC detail page
Bug-33933-Only-show-use-restriction-once-on-OPAC-d.patch (text/plain), 1.60 KB, created by
Biblibre Sandboxes
on 2023-06-30 10:09:17 UTC
(
hide
)
Description:
Bug 33933: Only show use restriction once on OPAC detail page
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2023-06-30 10:09:17 UTC
Size:
1.60 KB
patch
obsolete
>From dee13ac6a6a8e128d8838bf5a845d9206670fed4 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Wed, 7 Jun 2023 05:30:40 +0000 >Subject: [PATCH] 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> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc | 4 ---- > 1 file changed, 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc >index aac8ece2ee..2d19d918ce 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc >@@ -103,10 +103,6 @@ > [% ELSIF item.itemtype.notforloan %] > [% SET itemavailable = 0 %] > <span class="item-status notforloan">Not for loan [% IF restricted_lib %]<span class="restricted">([% restricted_lib | html %])</span>[% END %]</span> >-[% ELSE %] >- [% IF restricted_lib %] >- <span class="item-status restricted">[% restricted_lib | html %]</span> >- [% END %] > [% END %] > > [% IF ( item.bundle_host ) %] >-- >2.30.2
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 33933
:
152073
|
152901
|
153217