http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7092

Jared Camins-Esakov <jcam...@cpbibliography.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8118|0                           |1
        is obsolete|                            |

--- Comment #8 from Jared Camins-Esakov <jcam...@cpbibliography.com> ---
Created attachment 8139
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=8139&action=edit
Bug 7092 - Complete-subfield searches TraceCompleteSubfields syspref not
working correctly

This patch adds a syspref TracingQuotes 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 TracingQuotes, TraceCompleteSubfields and TraceSubjectSubdivisions and
check that you
get the expected results for the clickable links in the OPAC *and* intranet
detail views:

TraceCompleteSubfields   = Don't force
TraceSubjectSubdivisions = Don't include
TracingQuotes = quotes
  opac-search.pl?q=su:"Internet"
TracingQuotes = curlybrace
  opac-search.pl?q=su:{Internet}

TraceCompleteSubfields   = Force
TraceSubjectSubdivisions = Don't include
TracingQuotes = quotes
  opac-search.pl?q=su,complete-subfield:"Internet"
TracingQuotes = curlybrace
  opac-search.pl?q=su,complete-subfield:{Internet}

TraceCompleteSubfields   = Don't force
TraceSubjectSubdivisions = Include
TracingQuotes = quotes
  opac-search.pl?q=(su:"Internet") and (su:"Law and legislation.")
TracingQuotes = curlybrace
  opac-search.pl?q=(su:{Internet}) and (su:{Law and legislation.})

TraceCompleteSubfields   = Force
TraceSubjectSubdivisions = Include
TracingQuotes = quotes
  opac-search.pl?q=(su,complete-subfield:"Internet") and
(su,complete-subfield:"Law and legislation.")
TracingQuotes = curlybrace
  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,
bot with normal and ICU
indexing. (I have actually not tested this with ICU, so doing that before
signing off is crucial.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to