From c505cd9394d87dde8837529d9af2c08937c43203 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 28 Oct 2022 16:38:22 +0000 Subject: [PATCH] Bug 8948: Display MARC 787 relationship field This field is defined similar to 775, as a related work: https://www.loc.gov/marc/bibliographic/bd787.html This patch adds a display of this field, linking to the referenced record as the 775 does It also tests for 580 field, and displays the text there if present, using the 787 a and t subfields otherwise To test: 1 - Edit the default framework to make 787atw and 580a visible in editor 2 - Add a 787 to a record: $aThe ideas behind the chess openings $w2470231 3 - Confirm there is no display 4 - Apply patch / restart all 5 - 'Other related works' now shows 6 - Link should be using title of record 7 - Set system preference UseControlNumber to Use 8 - Reload details, link should now use control number 9 - Add a 580 to the record: $a This is a friendly work to this one 10 - Confirm the text of the link now displays the text etnered above --- .../en/xslt/MARC21slim2intranetDetail.xsl | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index acaf38a650..868b34e4c0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -1435,6 +1435,59 @@ + + + Other related works: + + + + + + a_t + + + + + + + + a_t + + + + + i + + : + + + + + /cgi-bin/koha/catalogue/search.pl?q=Control-number: + + + /cgi-bin/koha/catalogue/search.pl?q=ti,phr: + + + + + + + + + a_t + + + + + + + ; + + + + + -- 2.30.2