Koha/koha-tmpl/opac-tmpl/bootstrap/en/xslt
Fridolin Somers 274c0bee86
Bug 36370: Add ContentWarningField to UNIMARC XSLT
Bug 31123 added new feature with preference ContentWarningField.
Add this behavior to UNMARC XSLT files.

This patch adds new template 'tag_content_warning' in UNIMARCslimUtils.xsl
called in results and details pages.

New field is placed after 3xx.

Test plan (in both interfaces OPAC and staff):
1) Create a new field 599 in framework
2) Set system preference ContentWarningField to 599
3) Edit a record to add a 599 with text in $a$b and an URL in $u
4) Perform a search to find this record
=> Check you see content_warning: <a href="$u">$a</a> $b
5) Click on details page
=> Check you see content_warning: <a href="$u">$a</a> $b

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-13 14:00:08 +02:00
..
compact.xsl
MARC21Languages.xsl
MARC21slim2OPACDetail.xsl Revert "Bug 36111 - 856$h should not appear as a link in detailed record" 2024-04-26 14:14:46 +02:00
MARC21slim2OPACResults.xsl Revert "Bug 36111 - 856$h should not appear as a link in detailed record" 2024-04-26 14:14:46 +02:00
MARC21slimUtils.xsl
plainMARC.xsl
UNIMARCslim2OPACDetail.xsl Bug 36370: Add ContentWarningField to UNIMARC XSLT 2024-05-13 14:00:08 +02:00
UNIMARCslim2OPACResults.xsl Bug 36370: Add ContentWarningField to UNIMARC XSLT 2024-05-13 14:00:08 +02:00
UNIMARCslimUtils.xsl Bug 36370: Add ContentWarningField to UNIMARC XSLT 2024-05-13 14:00:08 +02:00