From 8be5cd6b42fa05dcd3ecb19c7211caf4898b6abe Mon Sep 17 00:00:00 2001 From: Magnus Enger 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 @@ /cgi-bin/koha/catalogue/search.pl?q= abcdfgklmnopqrstvxyz - and + AND (su:{ }) 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 @@ /cgi-bin/koha/opac-search.pl?q= abcdfgklmnopqrstvxyz - and + AND (su:{ }) -- 1.7.2.5