Bug 30352: Add a comment to the substatus translation
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 19 Apr 2023 14:59:15 +0000 (14:59 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Apr 2023 13:43:43 +0000 (10:43 -0300)
commitc652ed4b1dcc204d36921d55120d91c758803632
tree258d502fa9a07ba1355c656b65152d78155b5d98
parent8d7e3cec32dffa5f96de696f8707bf8e015c49d2
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@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl