From 5fcc5f41b9c2ca16f9f388bdb60e83c43594d39b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 4 Aug 2014 15:36:41 +0200 Subject: [PATCH] Bug 12724: Show RDA tag 264 on OPAC Detail XSLT view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds selected information from tag 264 to the Publisher line on the OPAC detail XSLT view (MARC21). This includes a label, and the subfields abc. If Publication tag 260 exists, it adds information. If tag 260 does not exist, it creates a 'publisher' line. (NOTE: Probably, both fields will not both be present, but this patch can deal with that..) Instead of showing all 264 tags, it picks the preferred one based on the following rules (using both indicators; see LOC description): [1] Try to select a Publisher -- Latest. Pick first one. [2] Else try to select a Publisher. Pick the last one. [3] Else try to select an other one (Producer, Manufacturer, ..) with Latest. Pick the first one of that. [4] Otherwise: Pick the last 264 tag. Test plan: [1] Add one 260 and multiple 264 tags to your record. [2] Check display in OPAC detail XSLT. [3] Change some indicators, subfields of the 264s. [4] Check display again, following the above rules. Go back to step 3 a couple of times. [5] Remove tag 260. Check display again. Followed test plan. Patch behaves as expected. Signed-off-by: Marc VĂ©ron Signed-off-by: Paul Poulain --- .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 77 +++++++++++++++++++++- 1 file changed, 75 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 6e22599..cd18080 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -324,7 +324,9 @@ - + + + Publisher: @@ -358,8 +360,18 @@ ; + + ; + + - + + + + + + + @@ -1058,6 +1070,67 @@ . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Producer: + + + Publisher: + + + Distributor: + + + Manufacturer: + + + + + + + + + -- 1.9.1