From 166275cb6d955bac186881ec5d047d2467a63139 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 6 Mar 2018 11:59:28 +0200 Subject: [PATCH] Bug 20339: Unify MARC21 ISBN/ISSN handling in XSL The code to show the ISBN and ISSN is repeated between the search results and the detail view. Create a function to show the ISBN/ISSN, and call that instead. Test plan: 1) Apply patch 2) Search for any records, check that the ISBN and ISSN are shown correctly 3) Go to biblio detail pages, check that the ISBN and ISSN are shown correctly Signed-off-by: Pasi Kallinen --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 38 +------------------- .../prog/en/xslt/MARC21slim2intranetResults.xsl | 19 +--------- .../intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 40 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 55 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index b699341bc4..f4e2b04fa3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -447,43 +447,7 @@ - - - ISBN: - - - - - - . - - - ; - - - - - - - - - - ISSN: - - - - - - . - - - ; - - - - - - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index 0e8ebd6d31..d6c9a952c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -895,24 +895,7 @@ - - ISBN: - - - - .; - - - - - - ISSN: - - - .; - - - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index 192107b280..a3db596e87 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -298,6 +298,46 @@ + + + 020 + a + isbn + ISBN: + + + 022 + a + issn + ISSN: + + + + + + + + + + + + + + + + + . + + + ; + + + + + + + +