[Koha-bugs] [Bug 13588] New: Should GetKohaAuthorisedValueLib return lib if lib_opac is empty and opac==1 ?
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 15 13:27:09 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13588
Bug ID: 13588
Summary: Should GetKohaAuthorisedValueLib return lib if
lib_opac is empty and opac==1 ?
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: OPAC
Assignee: oleonard at myacpl.org
Reporter: m.de.rooy at rijksmuseum.nl
QA Contact: testopia at bugs.koha-community.org
C4/Koha.pm subroutine GetKohaAuthorisedValueLib returns the staff description
if there is no opac description. This is the case too if the opac flag is true.
What is the result?
If you do not have an opac description (because you want translated
descriptions for item statuses), the staff description is returned (in the only
available language used in authorized values). This effectively hides the
translated terms in templates.
Example: The item-status include contains the translation for Not for loan, but
this is overruled by the staff description in one language.
A similar remark could be made for lost, damaged, restricted.
Workaround:
If you have only e.g. two languages in your opac, you could add both
translation in the lib_opac field of authorized values.
Solution:
We could say opac==2 means: do not return the staff description.
Changing the call for itemnotforloan in C4/Items from 1 to 2, would resolve the
display on opac-detail for Status.
Each of the 6? calls should however be examined more carefully.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list