From 163f2ab3217a705abf626493643382abf677d388 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 Signed-off-by: Hayley Mapley --- .../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 2fe196d659e..910ad1f5637 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -207,7 +207,7 @@ - . ; + ; @@ -222,7 +222,7 @@ - .; + ; @@ -417,7 +417,7 @@ - .; + ; @@ -442,7 +442,7 @@ - .; + ; @@ -552,7 +552,7 @@ - . | + | @@ -567,7 +567,7 @@ - .; + ; @@ -634,7 +634,7 @@ - . | + | @@ -676,7 +676,7 @@ - . | + | @@ -1575,7 +1575,7 @@ - . | + | diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index 7374056b4e5..14dee7bbc82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -339,14 +339,7 @@ - - - . - - - ; - - + ; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 0fac4586a8a..6be9bb4f24b 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.11.0