From 21dc370d9f57c6e7c7c8a5f8c03212d4eecf2ea8 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 --- .../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 b699341..f4e2b04 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 0e8ebd6..d6c9a952c 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 192107b..a3db596 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: + + + + + + + + + + + + + + + + + . + + + ; + + + + + + + +