Bugzilla – Attachment 183849 Details for
Bug 40300
Multiple semi-colons in series part name (830$p)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40300: Add chop punctuation to PartName () in Part xslt templates
Bug-40300-Add-chop-punctuation-to-PartName--in-Par.patch (text/plain), 2.70 KB, created by
David Nind
on 2025-07-07 18:44:45 UTC
(
hide
)
Description:
Bug 40300: Add chop punctuation to PartName () in Part xslt templates
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-07-07 18:44:45 UTC
Size:
2.70 KB
patch
obsolete
>From ae60e6f1fd108ca9955f8acdd8502f2bcdaa1d79 Mon Sep 17 00:00:00 2001 >From: Bernard Scaife <bernard.scaife@openfifth.co.uk> >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 <david@davidnind.com> >--- > 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 @@ > </xsl:if> > <xsl:if test="string-length(normalize-space($partNumber))"><xsl:text> </xsl:text></xsl:if> > <xsl:if test="string-length(normalize-space($partName))"> >- <xsl:value-of select="$partName" /> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:value-of select="$partName" /> >+ </xsl:with-param> >+ </xsl:call-template> > </xsl:if> > </xsl:template> > >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 @@ > </xsl:if> > <xsl:if test="string-length(normalize-space($partNumber))"><xsl:text> </xsl:text></xsl:if> > <xsl:if test="string-length(normalize-space($partName))"> >- <xsl:value-of select="$partName" /> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:value-of select="$partName" /> >+ </xsl:with-param> >+ </xsl:call-template> > </xsl:if> > </xsl:template> > >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40300
:
183742
|
183830
| 183849