From f9ac69f610a45589692f8dac5dbf7e275bddbea9 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" 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 Easy to test and works as advertised. Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 2 +- koha-tmpl/opac-tmpl/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 286ff216a0..201cc68b92 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 @@ /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 6f6679d964..fe3a48cf9b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -533,7 +533,7 @@ /cgi-bin/koha/opac-search.pl?q= abcdfgklmnopqrstvxyz - and + AND (su: ) -- 2.39.5