Bugzilla – Attachment 29145 Details for
Bug 12465
XSLT: Missing punctuation between 710$a and $b
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12465: Improve display of MARC21 710 in intranet and OPAC
Bug-12465-Improve-display-of-MARC21-710-in-intrane.patch (text/plain), 4.05 KB, created by
Katrin Fischer
on 2014-06-22 17:36:37 UTC
(
hide
)
Description:
Bug 12465: Improve display of MARC21 710 in intranet and OPAC
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-06-22 17:36:37 UTC
Size:
4.05 KB
patch
obsolete
>From d1d4289a15fd3b9b52750366d2a10304dfbedf67 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Sun, 22 Jun 2014 19:31:50 +0200 >Subject: [PATCH] Bug 12465: Improve display of MARC21 710 in intranet and OPAC > >Currently, 710$a and $b and $b will not display correctly. >This patch tries to improve the display adding the missing >space between both subfields. > >Please test. >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 28 ++++++++-------------- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 25 +++++++++---------- > 2 files changed, 21 insertions(+), 32 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 3e7503a..003f528 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -848,24 +848,16 @@ > </xsl:template> > > <xsl:template name="nameABCDN"> >- <xsl:for-each select="marc:subfield[@code='a']"> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString" select="."/> >- </xsl:call-template> >- </xsl:for-each> >- <xsl:for-each select="marc:subfield[@code='b']"> >- <xsl:value-of select="."/> >- <xsl:choose> >- <xsl:when test="position() != last()"> >- <xsl:text> -- </xsl:text> >- </xsl:when> >- </xsl:choose> >- </xsl:for-each> >- <xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">cdn</xsl:with-param> >- </xsl:call-template> >- </xsl:if> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcdn</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ <xsl:with-param name="punctuation"> >+ <xsl:text>:,;/ </xsl:text> >+ </xsl:with-param> >+ </xsl:call-template> > </xsl:template> > > <xsl:template name="nameACDEQ"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index f3a1761..3678909 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -879,21 +879,18 @@ > </xsl:with-param> > </xsl:call-template> > </xsl:template> >- >+ > <xsl:template name="nameABCDN"> >- <xsl:for-each select="marc:subfield[@code='a']"> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString" select="."/> >- </xsl:call-template> >- </xsl:for-each> >- <xsl:for-each select="marc:subfield[@code='b']"> >- <xsl:value-of select="."/> >- </xsl:for-each> >- <xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">cdn</xsl:with-param> >- </xsl:call-template> >- </xsl:if> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcdn</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ <xsl:with-param name="punctuation"> >+ <xsl:text>:,;/ </xsl:text> >+ </xsl:with-param> >+ </xsl:call-template> > </xsl:template> > > <xsl:template name="nameACDEQ"> >-- >1.9.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 12465
:
29145
|
29146
|
29193
|
30391