Koha/koha-tmpl/intranet-tmpl/prog/en/xslt
Magnus Enger 448dbe2df5 Bug 7537 - Implement TraceCompleteSubfields, TraceSubjectSubdivisions and UseICU for NORMARC XSLT
IMPORTANT! This patch relies on the patch for Bug 7092, which is now pushed to
master.

As the title says, this patch implements TraceCompleteSubfields,
TraceSubjectSubdivisions and UseICU 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 UseICU, 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
UseICU = Not using
  opac-search.pl?q=su:"Internet"
UseICU = Using
  opac-search.pl?q=su:{Internet}

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

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

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

UPDATE 2012-03-23
- Change the syspref TracingQuotes to UseICU, see bug 7092
- Change boolean operator from "and" to "AND", see bug 7695

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Note: UseControlnumber must be turned off.

1) Works.
2) Works.
3) Works.
4) Works.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-03-29 11:00:32 +02:00
..
compact.xsl
identity.xsl
MARC21slim2ATOM.xsl
MARC21slim2DC.xsl
MARC21slim2intranetDetail.xsl Bug 7695 - Change boolean operator from "and" to "AND" 2012-03-28 16:23:26 +02:00
MARC21slim2intranetResults.xsl Bug 6919 - Follow-up - Implementing XSLTResultsDisplay 2012-03-02 17:35:33 +01:00
MARC21slim2MODS.xsl
MARC21slim2MODS3-1.xsl
MARC21slim2MODS3.xsl
MARC21slim2MODS32.xsl
MARC21slim2OAIDC.xsl
MARC21slim2RDFDC.xsl
MARC21slim2RDFDC.xsl.1
MARC21slim2RSS2.xsl
MARC21slim2SRWDC.xsl
MARC21slim9522852.xsl
MARC21slimUtils-MODS31.xsl
MARC21slimUtils.xsl
MARC21slimUtils2.xsl
NORMARCslim2intranetDetail.xsl Bug 7537 - Implement TraceCompleteSubfields, TraceSubjectSubdivisions and UseICU for NORMARC XSLT 2012-03-29 11:00:32 +02:00
NORMARCslim2intranetResults.xsl Bug 7696 - NORMARC lacks staff results XSLT 2012-03-20 11:24:45 +01:00
NORMARCslim2OAIDC.xsl
NORMARCslimUtils.xsl Bug 7537 - Implement TraceCompleteSubfields, TraceSubjectSubdivisions and UseICU for NORMARC XSLT 2012-03-29 11:00:32 +02:00
oilsMARC21slim2HTML.xsl
UNIMARC_compact.xsl
UNIMARCslim2intranetDetail.xsl
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