[Koha-bugs] [Bug 36281] Restricted info is displayed even if item is not restricted (OPAC details)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 8 11:51:48 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36281

--- Comment #2 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 162950
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162950&action=edit
Bug 36281: Display restricted info only if item is not restricted (OPAC
details)

If you define a description for restricted = 0 :
In OPAC details, restricted info is displayed even if item is not restricted
(value 0).

This patch fixes by adding 'IF item.restricted'.
Also creates a BLOCK to avoid code duplication.
Also adds span around status text to create easier translation.

Test plan :
1) Create a description in restricted autorised values category for value 0
2) Create a description in restricted autorised values category for value 1
3) Edit an biblio record to add an item with restricted=0 and an item with
restricted=1
4) Display this biblio on OPAC details page
=> Check you see resticted info only for restricted item

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list