Bugzilla – Attachment 7178 Details for
Bug 4300
Display 866z summary holdings public note in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 4300: Fix display of textual holdings (866)
Bug-4300-Fix-display-of-textual-holdings-866.patch (text/plain), 3.56 KB, created by
Katrin Fischer
on 2012-01-16 22:11:13 UTC
(
hide
)
Description:
Bug 4300: Fix display of textual holdings (866)
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-01-16 22:11:13 UTC
Size:
3.56 KB
patch
obsolete
>From 7b31ea1bd9d41d67a1ae32156ec013778fd41819 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Mon, 16 Jan 2012 23:05:42 +0100 >Subject: [PATCH] Bug 4300: Fix display of textual holdings (866) > >Fixed problems: >- only $z, but not $a was shown >- only first $z for each 866 field was shown >- each 866 field produced a ; even if no $z was present > >After patch was applied: >- OPAC displays 866 $a and $z, separating each field with ; >- Staff displays 866 $a, $x and $z, separating each field with ; > >Example(s) for testing: >866 $a1-86 (1941-1987)$xbound in 2 v. per year$zSome issues missing >866 $a1-86 (1941-1987) >866 $a--86 (1941-1897)$xinternal note >866 $zfirst note,$zsecond note >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 12 ++++++++++++ > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 16 +++++++++------- > 2 files changed, 21 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 9e16667..abc0975 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -588,6 +588,18 @@ > </xsl:if> > </xsl:for-each> > </xsl:if> >+ >+ <!-- 866 textual holdings --> >+ <xsl:if test="marc:datafield[@tag=866]"> >+ <span class="results_summary holdings_note"><span class="label">Holdings Note: </span> >+ <xsl:for-each select="marc:datafield[@tag=866]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">axz</xsl:with-param> >+ </xsl:call-template> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> > > <!-- 775 Other Edition --> > <xsl:if test="marc:datafield[@tag=775]"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index 43e2658..f6d3efd 100755 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -717,14 +717,16 @@ > </span> > </xsl:for-each> > >- <!-- 866 holdings public note --> >+ <!-- 866 textual holdings --> > <xsl:if test="marc:datafield[@tag=866]"> >- <span class="results_summary holdings_note"><span class="label">Holdings Note: </span> >- <xsl:for-each select="marc:datafield[@tag=866]"> >- <xsl:value-of select="marc:subfield[@code='z']"/> >- <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> >- </xsl:for-each> >- </span> >+ <span class="results_summary holdings_note"><span class="label">Holdings Note: </span> >+ <xsl:for-each select="marc:datafield[@tag=866]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">az</xsl:with-param> >+ </xsl:call-template> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> > </xsl:if> > > <!-- 775 Other Edition --> >-- >1.7.5.4
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 4300
:
1993
|
7178
|
7193