From c429c8d7741b1cb206c92315073f529e03aaa239 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 --- .../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 157aab72fc..a1dca4fba5 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 80fb6ac4bc..189bffec19 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 @@ /cgi-bin/koha/opac-search.pl?q= abcdfgklmnopqrstvxyz - and + AND (su: ) -- 2.39.5