From e8beea8fc12930a3d833a52063aadda29c4b69d3 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 13 Sep 2020 16:07:44 +0000 Subject: [PATCH] Bug 15141: Add MARC21 770/772 Supplement (parent) to OPAC and staff detail pages Adds the 2 corresponding linking fields to the staff and OPAC detail pages: 770 - Supplement/Special Issue Entry (R) https://www.loc.gov/marc/bibliographic/bd770.html 772 - Supplement Parent Entry (R) https://www.loc.gov/marc/bibliographic/bd772.html To test: - Catalog records with 770/772 in Koha, examples can be found in the LOC documentation. - When UseControlNumber is set to Use and $w is added, a link will be built using $w - If there is no $w or UseControlNumber is Don't use, a link will be build using the title - Verify that they display nicely in the OPAC and staff detail pages Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../en/xslt/MARC21slim2intranetDetail.xsl | 84 ++++++++++++++++++ .../en/xslt/MARC21slim2OPACDetail.xsl | 85 +++++++++++++++++++ 2 files changed, 169 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index bd75f364d5a..535687e8379 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -1145,6 +1145,90 @@ + + + Supplement: + + + + + i + + + + + + + + + /cgi-bin/koha/catalogue/search.pl?q=Control-number: + + + + /cgi-bin/koha/catalogue/search.pl?q=ti,phr: + + + + + + a_t + + + + + + + bdghkmnr9usxyz + + + + | + + + + + + + + Supplement to: + + + + + i + + + + + + + + + /cgi-bin/koha/catalogue/search.pl?q=Control-number: + + + + /cgi-bin/koha/catalogue/search.pl?q=ti,phr: + + + + + + a_t + + + + + + bdghkmnr9usxyz + + + + | + + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index eed5bf7b562..3e3fd462152 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1258,6 +1258,91 @@ + + + Supplement: + + + + + i + + + + + + + + + /cgi-bin/koha/opac-search.pl?q=Control-number: + + + + /cgi-bin/koha/opac-search.pl?q=ti,phr: + + + + + + a_t + + + + + + + bdghkmnr9usxyz + + + + | + + + + + + + + Supplement to: + + + + + i + + + + + + + + + /cgi-bin/koha/opac-search.pl?q=Control-number: + + + + /cgi-bin/koha/opac-search.pl?q=ti,phr: + + + + + + a_t + + + + + + bdghkmnr9usxyz + + + + | + + + + + Other editions: -- 2.28.0