From ad54f695dc7782068bcf060eb0609613b66189c3 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. Signed-off-by: Hayley Mapley Signed-off-by: frederik --- .../en/xslt/MARC21slim2intranetDetail.xsl | 18 +++++----- .../prog/en/xslt/MARC21slimUtils.xsl | 9 +---- .../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 da88114133..f294eb1de6 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 @@ - . | + | @@ -1569,7 +1569,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 0fac4586a8..6be9bb4f24 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 @@ - . | + | @@ -1723,7 +1709,7 @@ - . | + | -- 2.17.1