From 76a56a4e5f4a0845da7c7a013e318f6f141ab877 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 11 May 2019 22:58:45 +0000 Subject: [PATCH] Bug 22884: Remove field ending . from XSLT templates Currently Koha very inconsistently adds a . at the end when outputting MARC fields on the detail views. This patch removes the few cases where we add in . Keeping the end user in mind, I believe it's not needed and the added consistency will be nice. ISBD should be added on cataloguing or by templates, but we should not mix when possible. To test: Catalog the following fields, if repeatable, add more than one: - 020 - 022 - 111 - 242 - 245 - 246 - 250 - 300 - 440 - 490 - 700/710/711 with $i - 700/710/711 ind.2 = 2 Verify both on staff and OPAC detail pages that there is no additional . at the end of the line. --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 18 ++++++------ .../intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 9 +----- .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 34 +++++++--------------- 3 files changed, 20 insertions(+), 41 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 2f9f8548bb..57d70974aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -201,7 +201,7 @@ - . ; + ; @@ -216,7 +216,7 @@ - .; + ; @@ -411,7 +411,7 @@ - .; + ; @@ -436,7 +436,7 @@ - .; + ; @@ -546,7 +546,7 @@ - . | + | @@ -561,7 +561,7 @@ - .; + ; @@ -628,7 +628,7 @@ - . | + | @@ -670,7 +670,7 @@ - . | + | @@ -1521,7 +1521,7 @@ - . | + | diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index bb5a254044..f20afa0e8a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -338,14 +338,7 @@ - - - . - - - ; - - + ; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 13d7174740..e67f766fd3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -241,7 +241,7 @@ - .; + ; @@ -443,7 +443,7 @@ - .; + ; @@ -470,7 +470,7 @@ - .; + ; @@ -523,14 +523,7 @@ - - - . - - - ; - - + ; @@ -542,14 +535,7 @@ - - - . - - - ; - - + ; @@ -619,7 +605,7 @@ - . | + | @@ -637,7 +623,7 @@ - .; + ; @@ -709,7 +695,7 @@ - . | + | @@ -751,7 +737,7 @@ - . | + | @@ -1678,7 +1664,7 @@ - . | + | -- 2.11.0