[Koha-bugs] [Bug 30352] "Not for loan" in result list doesn't translate in OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Apr 23 00:39:43 CEST 2023


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

David Nind <david at davidnind.com> changed:

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

--- Comment #16 from David Nind <david at davidnind.com> ---
Created attachment 150108
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150108&action=edit
Bug 30352: Add a comment to the substatus translation

The tric of combining the XPath union operator (|) with the
value-of instruction works as a sort of ternary operation.
The value-of only picks the string value of the first node
from the union in document order.

So, if there is a translation, it will be the first node. If there
is no translation, the original substatus will be used. Note that
there will be no translation for authorised values like Staff
collection, etc.

Test plan:
None. Just comments.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: David Nind <david at davidnind.com>

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


More information about the Koha-bugs mailing list