Bugzilla – Attachment 8655 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]
[SIGNED-OFF] Bug 7695 - Change boolean operator from "and" to "AND"
SIGNED-OFF-Bug-7695---Change-boolean-operator-from.patch (text/plain), 3.58 KB, created by
Katrin Fischer
on 2012-03-27 19:09:28 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7695 - Change boolean operator from "and" to "AND"
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-03-27 19:09:28 UTC
Size:
3.58 KB
patch
obsolete
>From ce30a0983f6f1f12c591a0e2de7793001d41e1d3 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] [SIGNED-OFF] Bug 7695 - Change boolean operator from "and" > to "AND" > >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. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Easy to test and works as advertised. >--- > .../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 157aab7..a1dca4f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -472,7 +472,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:value-of select="$TracingQuotesLeft"/></xsl:with-param> > <xsl:with-param name="suffix"><xsl:value-of select="$TracingQuotesRight"/>)</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 80fb6ac..189bffe 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -485,7 +485,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:value-of select="$TracingQuotesLeft"/></xsl:with-param> > <xsl:with-param name="suffix"><xsl:value-of select="$TracingQuotesRight"/>)</xsl:with-param> > </xsl:call-template> >-- >1.7.5.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 7695
:
8346
| 8655