Bugzilla – Attachment 88095 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.21 KB, created by
Liz Rea
on 2019-04-16 17:49:06 UTC
(
hide
)
Description:
Bug 20986: Add 867 and 868 holdings display
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-04-16 17:49:06 UTC
Size:
6.21 KB
patch
obsolete
>From d46ffd888cfe0fd19fa0761d86dc9ada2587bfe7 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> > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > .../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 7cdd98f03d..9c5b95985a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1004,16 +1004,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 939772e5a5..7d65ad8b16 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1144,12 +1144,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.11.0
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