Bugzilla – Attachment 79551 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: (follow-up) Avoid br tags, but allow for line breaks to be added easily with CSS
Bug-20986-follow-up-Avoid-br-tags-but-allow-for-li.patch (text/plain), 8.66 KB, created by
Katrin Fischer
on 2018-09-27 20:39:37 UTC
(
hide
)
Description:
Bug 20986: (follow-up) Avoid br tags, but allow for line breaks to be added easily with CSS
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-09-27 20:39:37 UTC
Size:
8.66 KB
patch
obsolete
>From 02678af5eecf5b0ec3b6e48639cfbd6ca4dfde6a Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Thu, 27 Sep 2018 19:49:27 +0200 >Subject: [PATCH] Bug 20986: (follow-up) Avoid br tags, but allow for line > breaks to be added easily with CSS > >This patch removes the br tags from the XSLT in favor of some more >spans and classes. > >This will allow to add the line breaks with one line of CSS: >span.holdings_note_data { display:block; } >--- > .../en/xslt/MARC21slim2intranetDetail.xsl | 36 +++++++++++-------- > .../en/xslt/MARC21slim2OPACDetail.xsl | 36 +++++++++++-------- > 2 files changed, 42 insertions(+), 30 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index c7c53e8e1a..88682d7b8b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -995,36 +995,42 @@ > > <!-- 866 textual holdings --> > <xsl:if test="marc:datafield[@tag=866]"> >- <span class="results_summary holdings_note"><span class="label">Holdings: </span><br /> >+ <span class="results_summary holdings_note basic_bibliographic_unit"><span class="label">Holdings: </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><br /></xsl:otherwise></xsl:choose> >+ <span class="holdings_note_data"> >+ <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> >+ </span> > </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 /> >+ <span class="results_summary holdings_note supplementary_material"><span class="label">Supplements: </span> > <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> >+ <span class="holdings_note_data"> >+ <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> >+ </span> > </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 /> >+ <span class="results_summary holdings_note indexes"><span class="label">Indexes: </span> > <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> >+ <span class="holdings_note_data"> >+ <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> >+ </span> > </xsl:for-each> > </span> > </xsl:if> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 0080bf5009..13acb3ead0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1128,36 +1128,42 @@ > > <!-- 866 textual holdings --> > <xsl:if test="marc:datafield[@tag=866]"> >- <span class="results_summary holdings_note"><span class="label">Holdings: </span> <br /> >+ <span class="results_summary holdings_note basic_bibliographic_unit"><span class="label">Holdings: </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><br /></xsl:otherwise></xsl:choose> >+ <span class="holdings_note_data"> >+ <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> >+ </span> > </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 /> >+ <span class="results_summary holdings_note supplementary_material"><span class="label">Supplements: </span> > <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> >+ <span class="holdings_note_data"> >+ <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> >+ </span> > </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 /> >+ <span class="results_summary holdings_note indexes"><span class="label">Indexes: </span> > <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> >+ <span class="holdings_note_data"> >+ <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> >+ </span> > </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