From c4e218fe2015a0ad9627fc43c9e5db522bdaeee5 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 7 Aug 2014 09:25:41 +0200 Subject: [PATCH] Bug 12726: Show RDA tag 264 on OPAC Results XSLT view (MARC21) This patch adds the same information to the Publisher line of OPAC Results as bug 12724 did on OPAC Detail. To accomplish this and reduce repeated code, two XSLT routines (named templates) are moved from OPACDetail to MARC21slimUtils. Test plan (see also bug 12742 and the rules mentioned there): [1] Add tag 260 and some 264s to your MARC21 record. [2] Check the display of OPAC Details. Should not have changed. [3] Now check also the display of this record in OPAC Results. [4] Change some indicators in the record. Check OPAC Results again. Signed-off-by: Bernardo Gonzalez Kriegel On top of 12724, no change on detail, more data on results. No koha-qa errors Signed-off-by: Katrin Fischer Change moves display logic to Utils, 260 will display as before and 264 will only display if there is no 260. Signed-off-by: Tomas Cohen Arazi --- .../en/xslt/MARC21slim2OPACDetail.xsl | 61 ------------------ .../en/xslt/MARC21slim2OPACResults.xsl | 16 ++++- .../bootstrap/en/xslt/MARC21slimUtils.xsl | 62 +++++++++++++++++++ 3 files changed, 76 insertions(+), 63 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index cd18080a40..a85682370d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1070,67 +1070,6 @@ . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Producer: - - - Publisher: - - - Distributor: - - - Manufacturer: - - - - - - - - - diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index f40e917af6..d83f3c25dc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -902,7 +902,9 @@ - + + + Publisher: @@ -926,8 +928,18 @@ ; + + ; + + - + + + + + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl index 9599566d88..4780b7bbfc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl @@ -188,7 +188,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Producer: + + + Publisher: + + + Distributor: + + + Manufacturer: + + + + + + + -- 2.39.5