From d5231739cf2c95af025978021c360864508d35c7 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 --- .../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 16f727a0e1..8e7774c03c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -1203,6 +1203,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 f507ea428e..3b33257ce2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1315,6 +1315,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.20.1