From a8d23601486d30366890dc943bf6ca9240653815 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 16 Mar 2017 12:37:12 +0100 Subject: [PATCH] Bug 15140: Add MARC21 776 to OPAC and staff display Adds code to opac and staff detail XSLT in order to show 776$t (or $a) and a link based on 776$w (record control number). $w should be in the form: (MARCOrgCode)Record-number For instance: (NL-AmRIJ)12345 Note: You should have enabled default opac/intranet XSLT view. Test plan: [1] Add two 776s (one with $t and $w and one with $t only) [2] Verify that you see "Additional physical formats" on opac-detail. Does the link for $w work? [3] Check intranet detail too. [4] Empty 776$t and put text in $a. Check detail page again. Signed-off-by: Marcel de Rooy Signed-off-by: Felix Hemme Signed-off-by: Nick Clemens --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 43 ++++++++++++++++++++++ .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 43 ++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 55192cd..23131bd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -753,6 +753,49 @@ + + + + Additional physical formats: + + + + + + + + + + + No title + + + + + + + + /cgi-bin/koha/catalogue/search.pl?q=Control-number: + + + + + + + + + + + + + + + ; + + + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 658fc36..74da731 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -805,6 +805,49 @@ + + + + Additional physical formats: + + + + + + + + + + + No title + + + + + + + + /cgi-bin/koha/opac-search.pl?q=Control-number: + + + + + + + + + + + + + + + ; + + + + + -- 2.1.4