Bugzilla – Attachment 183742 Details for
Bug 40300
multiple semi-colons in series part name ($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.06 KB, created by
Bernard
on 2025-07-03 10:34:26 UTC
(
hide
)
Description:
Bug 40300: Add chop punctuation to PartName () in Part xslt templates
Filename:
MIME Type:
Creator:
Bernard
Created:
2025-07-03 10:34:26 UTC
Size:
2.06 KB
patch
obsolete
>From 904593567c19fa5a5f46ddca89f9e4d042e029d3 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 > >--- > 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..5caf048eb9 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