Bugzilla – Attachment 9786 Details for
Bug 8144
775 tag in the MARC record causes display issue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8144 - 775 tag in the MARC record causes display issue
Bug-8144---775-tag-in-the-MARC-record-causes-displ.patch (text/plain), 4.62 KB, created by
Jared Camins-Esakov
on 2012-05-26 10:15:52 UTC
(
hide
)
Description:
Bug 8144 - 775 tag in the MARC record causes display issue
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-05-26 10:15:52 UTC
Size:
4.62 KB
patch
obsolete
>From 0ba2ea125a663aa86d803642c6f86bf16fcdbaac Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 24 May 2012 10:37:08 -0400 >Subject: [PATCH] Bug 8144 - 775 tag in the MARC record causes display issue >Content-Type: text/plain; charset="UTF-8" > >Fixing XSL template in the OPAC and staff client following >recommendations by Jared. > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >Fixes the markup and correctly displays 775 notes. >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 9 +++++++-- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 9 +++++++-- > 2 files changed, 14 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 80dbe03..c7fb89c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -637,6 +637,11 @@ > <xsl:if test="marc:datafield[@tag=775]"> > <span class="results_summary other_editions"><span class="label">Other Editions: </span> > <xsl:for-each select="marc:datafield[@tag=775]"> >+ <xsl:variable name="f775"> >+ <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a_t</xsl:with-param> >+ </xsl:call-template></xsl:with-param></xsl:call-template> >+ </xsl:variable> > <xsl:if test="marc:subfield[@code='i']"> > <xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">i</xsl:with-param> >@@ -649,11 +654,11 @@ > <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute> > </xsl:when> > <xsl:otherwise> >- <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="translate(marc:subfield[@code='t'], '.', '')"/></xsl:attribute> >+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="translate($f775, '()', '')"/></xsl:attribute> > </xsl:otherwise> > </xsl:choose> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">t</xsl:with-param> >+ <xsl:with-param name="codes">a_t</xsl:with-param> > </xsl:call-template> > </a> > <xsl:choose> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index f507e11..b6db8b4 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -714,6 +714,11 @@ > <xsl:if test="marc:datafield[@tag=775]"> > <span class="results_summary other_editions"><span class="label">Other Editions: </span> > <xsl:for-each select="marc:datafield[@tag=775]"> >+ <xsl:variable name="f775"> >+ <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a_t</xsl:with-param> >+ </xsl:call-template></xsl:with-param></xsl:call-template> >+ </xsl:variable> > <xsl:if test="marc:subfield[@code='i']"> > <xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">i</xsl:with-param> >@@ -726,11 +731,11 @@ > <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute> > </xsl:when> > <xsl:otherwise> >- <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate(marc:subfield[@code='t'], '.', '')"/></xsl:attribute> >+ <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f775, '()', '')"/></xsl:attribute> > </xsl:otherwise> > </xsl:choose> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">t</xsl:with-param> >+ <xsl:with-param name="codes">a_t</xsl:with-param> > </xsl:call-template> > </a> > <xsl:choose> >-- >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 8144
:
9743
|
9744
|
9761
| 9786