Bugzilla – Attachment 143567 Details for
Bug 13600
XSLT: 8xx not showing if there is no 4xx
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13600: (follow-up) Add separator between different series fields
Bug-13600-follow-up-Add-separator-between-differen.patch (text/plain), 2.93 KB, created by
Tomás Cohen Arazi
on 2022-11-09 18:01:23 UTC
(
hide
)
Description:
Bug 13600: (follow-up) Add separator between different series fields
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2022-11-09 18:01:23 UTC
Size:
2.93 KB
patch
obsolete
>From 7ecb7cef5532fd5404fcbd0c9ab6c9150fd0c7ef Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 24 Oct 2022 16:23:12 +0000 >Subject: [PATCH] Bug 13600: (follow-up) Add separator between different series > fields > >This patch checks for an upcoming series tag, and adds a separator if one is found > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../prog/en/xslt/MARC21slimUtils.xsl | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >index 317a3a3c1aa..109d1ad75e6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >@@ -427,7 +427,7 @@ > </xsl:if> > <xsl:choose> > <xsl:when test="position()=last()"> >- <xsl:if test="../marc:datafield[@tag=490][@ind1!=1]"> >+ <xsl:if test="../marc:datafield[@tag=490][@ind1!=1] or ../marc:datafield[(@tag=800 or @tag=810 or @tag=811) and @ind1!='z'] or ../marc:datafield[@tag=830 and @ind1!='z']"> > <span class="separator"> | </span> > </xsl:if> > </xsl:when> >@@ -452,7 +452,7 @@ > </xsl:if> > <xsl:choose> > <xsl:when test="position()=last()"> >- <xsl:if test="../marc:datafield[@tag=490][@ind1=1]"> >+ <xsl:if test="../marc:datafield[(@tag=800 or @tag=810 or @tag=811) and @ind1!='z'] or ../marc:datafield[@tag=830 and @ind1!='z']"> > <span class="separator"> | </span> > </xsl:if> > </xsl:when> >@@ -460,6 +460,7 @@ > </xsl:choose> > </xsl:for-each> > <!-- 800,810,811,830 always display. --> >+ > <xsl:for-each select="marc:datafield[(@tag=800 or @tag=810 or @tag=811) and @ind1!='z']"> > <xsl:choose> > <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> >@@ -499,7 +500,16 @@ > <xsl:call-template name="part"/> > <xsl:text> ; </xsl:text> > <xsl:value-of select="marc:subfield[@code='v']" /> >- <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"> | </span></xsl:otherwise></xsl:choose> >+ <xsl:choose> >+ <xsl:when test="position()=last()"> >+ <xsl:if test="../marc:datafield[@tag=830 and @ind1!='z']"> >+ <span class="separator"> | </span> >+ </xsl:if> >+ </xsl:when> >+ <xsl:otherwise> >+ <span class="separator"> | </span> >+ </xsl:otherwise> >+ </xsl:choose> > </xsl:for-each> > > <xsl:for-each select="marc:datafield[@tag=830 and @ind1!='z']"> >-- >2.38.1
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 13600
:
40097
|
40106
|
40107
|
40207
|
40636
|
40637
|
140705
|
140706
|
140736
|
142530
|
142588
|
142589
|
143069
|
143566
| 143567 |
143568