Bugzilla – Attachment 7479 Details for
Bug 6496
authors appearing incorrectly in OPAC and Staff Client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6496 - tidy the display of 710 fields on XSLT
Bug-6496---tidy-the-display-of-710-fields-on-XSLT.patch (text/plain), 3.20 KB, created by
Jared Camins-Esakov
on 2012-02-07 15:50:55 UTC
(
hide
)
Description:
Bug 6496 - tidy the display of 710 fields on XSLT
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-02-07 15:50:55 UTC
Size:
3.20 KB
patch
obsolete
>From 66d02d7aa5c583a04320ddecfef89ee309f49d15 Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Wed, 31 Aug 2011 19:59:44 +1200 >Subject: [PATCH] Bug 6496 - tidy the display of 710 fields on XSLT >Content-Type: text/plain; charset="UTF-8" > >This puts '--' between 710$b fields, and replaces the '.' with a '; ' if >there are additional authors. > >Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 7 ++++++- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 14 ++++++++++++-- > 2 files changed, 18 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 426fa11..a00e3c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -791,7 +791,12 @@ > </xsl:call-template> > </xsl:for-each> > <xsl:for-each select="marc:subfield[@code='b']"> >- <xsl:value-of select="."/> >+ <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"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index be2b4fd..7074cc0 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -142,10 +142,15 @@ > </xsl:choose> > <xsl:call-template name="nameABCDQ"/></a> > <xsl:choose> >- <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> >+ <xsl:when test="position()!=last()"><xsl:text>; </xsl:text></xsl:when></xsl:choose> > </xsl:for-each> > > <xsl:for-each select="marc:datafield[@tag=110 or @tag=710]"> >+ <xsl:choose> >+ <xsl:when test="position()=1"> >+ <xsl:text>; </xsl:text> >+ </xsl:when> >+ </xsl:choose> > <a> > <xsl:choose> > <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> >@@ -921,7 +926,12 @@ > </xsl:call-template> > </xsl:for-each> > <xsl:for-each select="marc:subfield[@code='b']"> >- <xsl:value-of select="."/> >+ <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"> >-- >1.7.2.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 6496
:
4447
|
4448
|
4449
|
4450
|
5235
|
5343
|
5397
|
5399
|
5400
|
5409
|
5451
|
7419
| 7479 |
7480