]> git.koha-community.org Git - koha.git/commit
Bug 7695 - Change boolean operator from "and" to "AND"
authorMagnus Enger <magnus@enger.priv.no>
Tue, 20 Mar 2012 12:45:48 +0000 (13:45 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 5 May 2012 12:15:22 +0000 (08:15 -0400)
commitf9ac69f610a45589692f8dac5dbf7e275bddbea9
treebd9c4e8fa0b93e834b78a63bc8ee0b2429a18806
parentf1d92920e102d1a6d1a77613f3adeae01d0dff48
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.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl