From bf86fdd92d41222aa76be3155de664cc2594787a 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 Signed-off-by: claude Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- .../en/xslt/MARC21slim2intranetDetail.xsl | 38 +----------------- .../en/xslt/MARC21slim2intranetResults.xsl | 19 +-------- .../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 cf39ec4bf0..885a8dc48c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -448,43 +448,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 3e508c048c..4edc2f2d2c 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: + + + + + + + + + + + + + + + + + . + + + ; + + + + + + + +