Bugzilla – Attachment 92203 Details for
Bug 22884
Remove ending . from XSLT detail templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22884: Show separator between 440 and 490 fields
Bug-22884-Show-separator-between-440-and-490-field.patch (text/plain), 3.03 KB, created by
Hayley Pelham
on 2019-08-14 23:35:52 UTC
(
hide
)
Description:
Bug 22884: Show separator between 440 and 490 fields
Filename:
MIME Type:
Creator:
Hayley Pelham
Created:
2019-08-14 23:35:52 UTC
Size:
3.03 KB
patch
obsolete
>From 93a25bcca4d52c6156f2315717c89f8176221ebb Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sun, 11 Aug 2019 12:52:18 +0200 >Subject: [PATCH] Bug 22884: Show separator between 440 and 490 fields > >This adds a ; as separator between 440 and 490 fields used in the >same record. Currently we loop first 440 and then 490. 490 is displayed >depending on the indicator. > >So after we finish the first loop, we check for existence of 490 on the >same record now to decide if a separator is needed. > >To test: >- Look at various records using one or multiple 440 and 490 fields >- Verify the display is correct, especially when both appar on the > same record in both OPAC and staff > >Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> >--- > .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 9 ++++++++- > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 9 ++++++++- > 2 files changed, 16 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 910ad1f5637..f7a28dda995 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -207,7 +207,14 @@ > </xsl:call-template> > </a> > <xsl:call-template name="part"/> >- <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise></xsl:choose> >+ <xsl:choose> >+ <xsl:when test="position()=last()"> >+ <xsl:if test="../marc:datafield[@tag=490][@ind1!=1]"> >+ <xsl:text>; </xsl:text> >+ </xsl:if> >+ </xsl:when> >+ <xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise> >+ </xsl:choose> > </xsl:for-each> > > <!-- 490 Series not traced, Ind1 = 0 --> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index a542a93823e..d6b872a73b3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -226,7 +226,14 @@ > </xsl:call-template> > </a> > <xsl:call-template name="part"/> >- <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise></xsl:choose> >+ <xsl:choose> >+ <xsl:when test="position()=last()"> >+ <xsl:if test="../marc:datafield[@tag=490][@ind1!=1]"> >+ <xsl:text>; </xsl:text> >+ </xsl:if> >+ </xsl:when> >+ <xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise> >+ </xsl:choose> > </xsl:for-each> > > <!-- 490 Series not traced, Ind1 = 0 --> >-- >2.11.0
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 22884
:
89624
|
90702
|
90760
|
90761
|
90927
|
90928
|
92143
|
92203
|
92204
|
92205
|
92206
|
93559
|
93560
|
93561