Bugzilla – Attachment 77321 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.44 KB, created by
David Bourgault
on 2018-07-27 21:18:03 UTC
(
hide
)
Description:
Bug 21130: Prevent HTML class from being translated
Filename:
MIME Type:
Creator:
David Bourgault
Created:
2018-07-27 21:18:03 UTC
Size:
1.44 KB
patch
obsolete
>From b0527b04111d280faa7828336677e1b85740e89c 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 > >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. >--- > 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 f31b1be..e4aa9e5 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -107,7 +107,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.7.4
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