[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
Sat Mar 9 19:11:47 CET 2024


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

Lucas Gass <lucas at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #162950|0                           |1
        is obsolete|                            |

--- Comment #3 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 163009
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163009&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

Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

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


More information about the Koha-bugs mailing list