From ae60e6f1fd108ca9955f8acdd8502f2bcdaa1d79 Mon Sep 17 00:00:00 2001 From: Bernard Scaife Date: Thu, 3 Jul 2025 10:31:19 +0000 Subject: [PATCH] Bug 40300: Add chop punctuation to PartName () in Part xslt templates In both intranet and OPAC full detail display an 830 series field which has a part $p displays multiple semi-colons if the field contains one. There is a part template which needs to use chopPunctuation. Test plan: 1. Add series field 830 with $a Analecta Gregoriana, Series Facultatis Philosophiae. $p Sectio B ; $v n. 14. 2. Observe OPAC or intranet detail record: Analecta Gregoriana, Series Facultatis Philosophiae. Sectio B ; ; n. 14. 3. Apply patch and restart_all 4. Observe OPAC or intranet detail record again - should be Analecta Gregoriana, Series Facultatis Philosophiae. Sectio B ; n. 14. Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 6 +++++- koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index b30efc0e06..4c049db9c7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -583,7 +583,11 @@ - + + + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl index 93e028d02a..b5d655992e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl @@ -547,7 +547,11 @@ - + + + + + -- 2.39.5