From 42ab7b80d4f1d13e15f991d3c4fa161ffca0726f 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 Signed-off-by: Jonathan Druart --- .../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 7dd2fedd74..ea90b2b90c 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 f768671aab..685f4b1196 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1260,6 +1260,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.39.5