Bugzilla – Attachment 7193 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.73 KB, created by
Jared Camins-Esakov
on 2012-01-17 03:33:23 UTC
(
hide
)
Description:
Bug 4300: Fix display of textual holdings (866)
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-01-17 03:33:23 UTC
Size:
3.73 KB
patch
obsolete
>From 4669b1cfb9b71b497fcbcbba45efe613787447d5 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) >Content-Type: text/plain; charset="UTF-8" > >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 > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > .../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..cb5b395 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -589,6 +589,18 @@ > </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]"> > <span class="results_summary other_editions"><span class="label">Other Editions: </span> >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.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 4300
:
1993
|
7178
| 7193