Koha/koha-tmpl/intranet-tmpl/prog/en/xslt
Pasi Kallinen 60505e57d6 Bug 11175: Show record component parts in the detail view
Shows the component records of a host, on the hosts detail view in
staff client or OPAC, with clickable links to the component records.

The host does not require linking entries to the components, but
components do require a link to the host record via 773$w.

Adds a new search index, Control-number-identifier (aka cni), which
indexes the 003 controlfield.

Adds 'Yet Another System Preference', ShowComponentRecords, which can
be used to turn this feature on or off in staff client and/or OPAC,
and defaults to off.

When looking up the component part records, the code searches for
records with (773$w=Host001 and 003=Host003) or 773$w='Host003 Host001'
or, if the 003 is not defined in the Host, 773$w=Host001.

Does not use easyanalytics or useControlNumber.

Only for MARC21 biblios - UNIMARC has not been updated.

staff-global.css and opac.css have not been recreated, so you need
to use sass to recreate those from staff-global.scss and opac.scss

Test plan:

0) Apply patch
1) perl bulkmarcimport -file /tmp/easypiano.mrc -m MARCXML
   (This file is an attachment on the bug)
2) rebuild the zebra biblio index
3) Search for "easy piano" in staff client, and go to
   the biblio detail page. You should not see anything different
   in the record detail page.
4) Do the same on OPAC.
5) Change the ShowComponentRecords syspref appropriately and check
   the record detail page in staff client and OPAC.
   You should see a list of component part records.

Rebased-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Pasi Kallinen <pasi.kallinen@koha-suomi.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Andrew Nugged <nugged@gmail.com>

JD amended path
-    if ($xslsyspref =~ m/Details/) {
+    if ( $xslsyspref eq "OPACXSLTDetailsDisplay" || $xslsyspref eq "XSLTDetailsDisplay" ) {

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-26 16:46:02 +02:00
..
compact.xsl Bug 12966: Add edition field to Card view 2021-02-15 11:57:27 +01:00
Del9LinksExcept952.xsl
Del9LinksExcept995.xsl
Del952.xsl
Del995.xsl
identity.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21Languages.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2ATOM.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2DC.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2intranetDetail.xsl Bug 11175: Show record component parts in the detail view 2021-10-26 16:46:02 +02:00
MARC21slim2intranetResults.xsl Bug 27022: Publisher number 028 does not display according to framework settings 2021-01-22 14:59:27 +01:00
MARC21slim2MADS.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2MODS.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2MODS3-1.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2MODS3.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2MODS32.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2OAIDC.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2RDFDC.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2RDFDC.xsl.1 Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2RSS2.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2SRWDC.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim9522852.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slimUtils-MODS31.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slimUtils.xsl Bug 11175: Show record component parts in the detail view 2021-10-26 16:46:02 +02:00
MARC21slimUtils2.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
oilsMARC21slim2HTML.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
plainMARC.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARC_compact.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARCslim2intranetDetail.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARCslim2intranetResults.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARCslim2OAIDC.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARCslim2RDFDC.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARCslim2SRWDC.xsl Bug 25381: (QA follow-up) Fix occurence in the one file that escaped 2021-01-22 13:46:40 +01:00
UNIMARCslimUtils.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00