Browse Source

Bug 21130: Prevent HTML class from being translated

Adds a xsl:value-of tag to prevent the value from being translated.

TEST PLAN
0) Apply patch
1) Translate
2) In the opac, div.record has not changed

NOTE:
I don't know if this bug affects all translations, I noticed it when translating to fr-CA.
The fix will work for all languages.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
19.05.x
David Bourgault 6 years ago
committed by Nick Clemens
parent
commit
e64fb90311
  1. 2
      koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl

2
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl

@ -112,7 +112,7 @@
<!-- Wrapper div for our schema.org object -->
<xsl:element name="div">
<xsl:attribute name="class">record</xsl:attribute>
<xsl:attribute name="class"><xsl:value-of select="'record'" /></xsl:attribute>
<xsl:attribute name="vocab">http://schema.org/</xsl:attribute>
<xsl:attribute name="typeof"><xsl:value-of select='$schemaOrgType' /> Product</xsl:attribute>
<xsl:attribute name="resource">#record</xsl:attribute>

Loading…
Cancel
Save