Bugzilla – Attachment 8346 Details for
Bug 7695
Boolean operator AND in XSLT gets translated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7695 - Change boolean operator from "and" to "AND"
Bug-7695---Change-boolean-operator-from-and-to-AND.patch (text/plain), 3.35 KB, created by
Magnus Enger
on 2012-03-20 12:53:40 UTC
(
hide
)
Description:
Bug 7695 - Change boolean operator from "and" to "AND"
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2012-03-20 12:53:40 UTC
Size:
3.35 KB
patch
obsolete
>From 8be5cd6b42fa05dcd3ecb19c7211caf4898b6abe Mon Sep 17 00:00:00 2001 >From: Magnus Enger <magnus@enger.priv.no> >Date: Tue, 20 Mar 2012 13:45:48 +0100 >Subject: [PATCH] Bug 7695 - Change boolean operator from "and" to "AND" >Content-Type: text/plain; charset="utf-8" > >When XSLTDetailsDisplay/OPACXSLTDetailsDisplay = on and >TraceSubjectSubdivisions = Include, subject sudivisions are >combined with the boolean operator "and". Currently, this word is >translated along with other occurrences of the same word, resulting >in a false "no records found" for users of non-English templates. > >This patch replaces "and" with "AND" which should have no effect on >searching (since Zebra is case-insensitive in this regard) but will >make the boolean operator stand out from other uses of "and" in >translations. > >TraceSubjectSubdivisions is currently only implemented in MARC21, >so UNIMARC and NORMARC is not affected. > >To test: > >XSLTDetailsDisplay/OPACXSLTDetailsDisplay = using XSLT >TraceSubjectSubdivisions = Include >marcflavour = MARC21 > >Find a record with a clickable subject that includes one or more >subdivisions and check that the subdivisions are combined with >"AND", not "and". Check that you get the expected result when >clicking on the subject. >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 2 +- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index a367de0..0dd78f0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -461,7 +461,7 @@ > <xsl:when test="$TraceSubjectSubdivisions='1'"> > <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">abcdfgklmnopqrstvxyz</xsl:with-param> >- <xsl:with-param name="delimeter"> and </xsl:with-param> >+ <xsl:with-param name="delimeter"> AND </xsl:with-param> > <xsl:with-param name="prefix">(su<xsl:value-of select="$SubjectModifier"/>:{</xsl:with-param> > <xsl:with-param name="suffix">})</xsl:with-param> > </xsl:call-template> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index da5b9c9..1ee3170 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -473,7 +473,7 @@ > <xsl:when test="$TraceSubjectSubdivisions='1'"> > <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">abcdfgklmnopqrstvxyz</xsl:with-param> >- <xsl:with-param name="delimeter"> and </xsl:with-param> >+ <xsl:with-param name="delimeter"> AND </xsl:with-param> > <xsl:with-param name="prefix">(su<xsl:value-of select="$SubjectModifier"/>:{</xsl:with-param> > <xsl:with-param name="suffix">})</xsl:with-param> > </xsl:call-template> >-- >1.7.2.5
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 7695
:
8346
|
8655