Koha-clms/installer/data/mysql
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
..
atomicupdate Enhancement 7144: Floating Collections (per branch/itemtype) 2012-03-21 10:28:26 +01:00
de-DE bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
en bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
es-ES bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
fr-FR bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
it-IT bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
nb-NO bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
pl-PL bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
ru-RU bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
uk-UA bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Enhancement 7144: Floating Collections (per branch/itemtype) 2012-03-21 10:28:26 +01:00
labels_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
patroncards_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
sample_only_param_tables.sql Moved location of updater scripts to dbms specific dir. 2007-11-13 11:22:47 -06:00
sysprefs.sql Bug 7092 - Complete-subfield searches TraceCompleteSubfields syspref not working correctly 2012-03-21 14:53:14 +01:00
update22to30.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
updatedatabase.pl Bug 7092 - Complete-subfield searches TraceCompleteSubfields syspref not working correctly 2012-03-21 14:53:14 +01:00