Bugzilla – Attachment 76316 Details for
Bug 20986
MARC21 Supplement and Index Textual Holdings don't display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20986 Add 867 and 868 holdings display
Bug-20986-Add-867-and-868-holdings-display.patch (text/plain), 6.00 KB, created by
Joy Nelson
on 2018-06-22 22:24:49 UTC
(
hide
)
Description:
Bug 20986 Add 867 and 868 holdings display
Filename:
MIME Type:
Creator:
Joy Nelson
Created:
2018-06-22 22:24:49 UTC
Size:
6.00 KB
patch
obsolete
>From a8d28a2495c7d784ffcf7f7fddbf37f65a3c8e97 Mon Sep 17 00:00:00 2001 >From: Joy Nelson <joy@bywatersolutions.com> >Date: Fri, 22 Jun 2018 15:22:40 -0700 >Subject: [PATCH] Bug 20986 Add 867 and 868 holdings display > >Add line breaks in the 866 Holdings display in the OPAC details and Staff details page. Add 867 and 868 textual holdings with line breaks in the OPAC and Staff details display. >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 29 ++++++++++++++++++++-- > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 28 +++++++++++++++++++-- > 2 files changed, 53 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 b1dcc28..274a679 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -995,16 +995,41 @@ > > <!-- 866 textual holdings --> > <xsl:if test="marc:datafield[@tag=866]"> >- <span class="results_summary holdings_note"><span class="label">Holdings note: </span> >+ <span class="results_summary holdings_note"><span class="label">Holdings: </span><br /> > <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:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text><br /></xsl:otherwise></xsl:choose> > </xsl:for-each> > </span> > </xsl:if> > >+ <!-- 867 textual holdings --> >+ <xsl:if test="marc:datafield[@tag=867]"> >+ <span class="results_summary holdings_note"><span class="label">Supplements: </span><br /> >+ <xsl:for-each select="marc:datafield[@tag=867]"> >+ <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><br /></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ >+ <!-- 868 textual holdings --> >+ <xsl:if test="marc:datafield[@tag=868]"> >+ <span class="results_summary holdings_note"><span class="label">Indexes: </span><br /> >+ <xsl:for-each select="marc:datafield[@tag=868]"> >+ <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><br /></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/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 45119d4..14b4476 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1128,12 +1128,36 @@ > > <!-- 866 textual holdings --> > <xsl:if test="marc:datafield[@tag=866]"> >- <span class="results_summary holdings_note"><span class="label">Holdings note: </span> >+ <span class="results_summary holdings_note"><span class="label">Holdings: </span> <br /> > <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:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text><br /></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ >+ <!-- 867 textual holdings --> >+ <xsl:if test="marc:datafield[@tag=867]"> >+ <span class="results_summary holdings_note"><span class="label">Supplements: </span> <br /> >+ <xsl:for-each select="marc:datafield[@tag=867]"> >+ <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><br /></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ >+ <!-- 868 textual holdings --> >+ <xsl:if test="marc:datafield[@tag=868]"> >+ <span class="results_summary holdings_note"><span class="label">Indexes: </span> <br /> >+ <xsl:for-each select="marc:datafield[@tag=868]"> >+ <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><br /></xsl:otherwise></xsl:choose> > </xsl:for-each> > </span> > </xsl:if> >-- >2.1.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 20986
:
76316
|
78861
|
79550
|
79551
|
88095
|
88096
|
89605
|
89606