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>
(cherry picked from commit e64fb90311)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
David Bourgault 2018-07-27 17:13:42 -04:00 committed by Martin Renvoize
parent 2712e1ee55
commit 84787c1eee
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -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>