Bugzilla – Attachment 79550 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.15 KB, created by
Katrin Fischer
on 2018-09-27 20:39:26 UTC
(
hide
)
Description:
Bug 20986: Add 867 and 868 holdings display
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-09-27 20:39:26 UTC
Size:
6.15 KB
patch
obsolete
>From 97785ed261ea2ec6cf63335f0d65551453b92bfe 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. > >Signed-off-by: Ed Veal <eveal@mckinneytexas.org> > >https://bugs.koha-community.org/show_bug.cgi?id=10662 >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../en/xslt/MARC21slim2intranetDetail.xsl | 29 +++++++++++++++++-- > .../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 9727767dbb..c7c53e8e1a 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 9e23047060..0080bf5009 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.17.1
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