Bugzilla – Attachment 86886 Details for
Bug 21130
Detail XSLT produces translatable HTML class
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21130: Prevent HTML class from being translated
Bug-21130-Prevent-HTML-class-from-being-translated.patch (text/plain), 1.54 KB, created by
Marcel de Rooy
on 2019-03-22 11:15:52 UTC
(
hide
)
Description:
Bug 21130: Prevent HTML class from being translated
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-03-22 11:15:52 UTC
Size:
1.54 KB
patch
obsolete
>From 0b85a248f59d9b990d639ce1792a39a30032254f Mon Sep 17 00:00:00 2001 >From: David Bourgault <dav.bour@gmail.com> >Date: Fri, 27 Jul 2018 17:13:42 -0400 >Subject: [PATCH] Bug 21130: Prevent HTML class from being translated >Content-Type: text/plain; charset=utf-8 > >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> >--- > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index d62a71472f..939772e5a5 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/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> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21130
:
77321
|
78566
|
79058
|
79110
|
86421
| 86886 |
86887