[Koha-bugs] [Bug 7537] Implement TraceCompleteSubfields, TraceSubjectSubdivisions and TracingQuotes for NORMARC XSLT

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Mar 10 16:35:17 CET 2012


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

Jared Camins-Esakov <jcamins at cpbibliography.com> changed:

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

--- Comment #5 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
Created attachment 8141
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=8141&action=edit
Bug 7537 - Implement TraceCompleteSubfields, TraceSubjectSubdivisions and
TracingQuotes for NORMARC XSLT

IMPORTANT! This patch relies on the patch for Bug 7092, and should be applied
on top of that patch! It will not work without it.

As the title says, this patch implements TraceCompleteSubfields,
TraceSubjectSubdivisions and TracingQuotes for NORMARC XSLT, both for the OPAC
and the Intranet. This affects how clickable subject-links are constructed.

To make this work the indexing of MARC fields in the 600 range is changed
to include "Subject:p" in several new places.

To test:

Find a record with a "complex" subject, like "Internet -- Law and legislation".
MARC21 and NORMARC are very similar in how they handle subjects, so testing
on a MARC21 database should be OK. (Changes in indexing reflect changes already
made to the MARC21 indexing.)

Make sure you have these syspref settings:
- marcflavour = NORMARC
- XSLTDetailsDisplay = using XSLT stylesheets
- OPACXSLTDetailsDisplay = using XSLT stylesheets

(Ideally, testing should be done on a real NORMARC setup, but since the changes
to indexing only reflect how it's already done in MARC21, I think testing
on a MARC21 installation with marcflavour = NORMARC should be OK.)

Now try the different combinations of TraceCompleteSubfields,
TraceSubjectSubdivisions and TracingQuotes, and check the format of the
clickable links, both in the OPAC and staff client. Here's what you should
be seeing:

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

2.
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}

3.
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.})

4.
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.})

Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list