Koha/koha-tmpl/intranet-tmpl/prog/en/xslt
Magnus Enger 20fd03724a Bug 7092 - Complete-subfield searches TraceCompleteSubfields syspref not working correctly
This patch adds a syspref UseICU for toggling between using "" and {} for
quoting in subject tracings. With normal Zebra indexing, "" must be used. With
ICU Zebra indexing, {} must be used.

This syspref interacts with TraceCompleteSubfields and TraceSubjectSubdivisions.

To test:

- marcflavour = MARC21
- make sure you have a record with a "complex subject", like
  "Internet -- Law and legislation"

Toggle UseICU, TraceCompleteSubfields, and TraceSubjectSubdivisions and check
that you get the expected results for the clickable links in the OPAC detail
view:

TraceCompleteSubfields   = Don't force
TraceSubjectSubdivisions = Don't include
UseICU                   = Not using
  opac-search.pl?q=su:"Internet"
UseICU                   = Using
  opac-search.pl?q=su:{Internet}

TraceCompleteSubfields   = Force
TraceSubjectSubdivisions = Don't include
UseICU                   = Not using
  opac-search.pl?q=su,complete-subfield:"Internet"
UseICU                   = Using
  opac-search.pl?q=su,complete-subfield:{Internet}

TraceCompleteSubfields   = Don't force
TraceSubjectSubdivisions = Include
UsingICU                 = Not using
  opac-search.pl?q=(su:"Internet") and (su:"Law and legislation.")
UsingICU                 = Using
  opac-search.pl?q=(su:{Internet}) and (su:{Law and legislation.})

TraceCompleteSubfields   = Force
TraceSubjectSubdivisions = Include
UseICU                   = Not using
  opac-search.pl?q=(su,complete-subfield:"Internet") and (su,complete-subfield:"Law and legislation.")
UseICU                   = Using
  opac-search.pl?q=(su,complete-subfield:{Internet}) and (su,complete-subfield:{Law and legislation.})

Check that clicking on the generated links gives the expected search results,
but with normal and ICU indexing. (I have actually not tested this with ICU, so
doing that before signing off is crucial.)

UPDATE 2012-03-16:

Changed the name of the syspref from TracingQuotes to UseICU after a suggestion
from Paul P., to make it more generally useful.

I have used "Using/Not using" instead of "Use/Don't use" in the description of
the syspref, to reflect the fact that this syspref will not change how Zebra
does its indexing - it's just a way of telling Koha how the indexing is
actually done.

I have also set UseICU = 1 in updatedatabase.pl, since that will preserve the
current behaviour of Koha, but UseICU = 0 in sysprefs.sql, since most new
installations will not have ICU activated.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2012-03-21 14:53:14 +01:00
..
compact.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
identity.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2ATOM.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2DC.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2intranetDetail.xsl Bug 7092 - Complete-subfield searches TraceCompleteSubfields syspref not working correctly 2012-03-21 14:53:14 +01:00
MARC21slim2intranetResults.xsl Bug 6919 - Follow-up - Implementing XSLTResultsDisplay 2012-03-02 17:35:33 +01:00
MARC21slim2MODS.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2MODS3-1.xsl Bug 6803: Replacing remote XSL include 2011-12-13 15:56:09 +01:00
MARC21slim2MODS3.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2MODS32.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2OAIDC.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2RDFDC.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2RDFDC.xsl.1 Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2RSS2.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2SRWDC.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim9522852.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slimUtils-MODS31.xsl Bug 6803: Replacing remote XSL include 2011-12-13 15:56:09 +01:00
MARC21slimUtils.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slimUtils2.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
NORMARCslim2intranetDetail.xsl Bug 7309 - Add NORMARCslim2intranetDetail.xsl for detail view in intranet 2011-12-14 18:17:57 +01:00
NORMARCslim2intranetResults.xsl Bug 7696 - NORMARC lacks staff results XSLT 2012-03-20 11:24:45 +01:00
NORMARCslim2OAIDC.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
NORMARCslimUtils.xsl Bug 7309 - Add NORMARCslim2intranetDetail.xsl for detail view in intranet 2011-12-14 18:17:57 +01:00
oilsMARC21slim2HTML.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
UNIMARC_compact.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
UNIMARCslim2intranetDetail.xsl Bug 5885 : UNIMARC XSLT changes 2011-11-04 11:39:49 +01:00
UNIMARCslim2intranetResults.xsl bug 6919 - implements XSLTResultsDisplay and adding both unimarc and marc21 xslt 2012-03-02 17:35:31 +01:00
UNIMARCslim2OAIDC.xsl Bug 7731 - Library should be used instead of branch and site 2012-03-20 15:17:08 +01:00
UNIMARCslimUtils.xsl Bug 5885 : UNIMARC XSLT changes 2011-11-04 11:39:49 +01:00