Bugzilla – Attachment 2171 Details for
Bug 4821
With multiple 5XX fields, the font display gets progressively smaller
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
partial fix (intranet bib details)
0001-bug-4821-remove-possible-empty-label-spans-partial-f.patch (text/plain), 5.24 KB, created by
Galen Charlton
on 2010-05-27 02:39:43 UTC
(
hide
)
Description:
partial fix (intranet bib details)
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2010-05-27 02:39:43 UTC
Size:
5.24 KB
patch
obsolete
>From 8c20c5bf99e6f4c0e718fbe8cdcf662c303e7171 Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmcharlt@gmail.com> >Date: Wed, 26 May 2010 22:33:11 -0400 >Subject: [PATCH] bug 4821: remove possible empty label spans (partial fix) > >Prevent the generation of empty label spans for various >bib details fields. A construct like > ><span class="results_summary"><span class="label" />contents note</span> > >is consistently misinterpreted in many web browsers, leading to >CSS oddities. See the bug for more details. > >Signed-off-by: Galen Charlton <gmcharlt@gmail.com> >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 49 +++++++++---------- > 1 files changed, 23 insertions(+), 26 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 7fcd66a..1e67447 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -443,19 +443,18 @@ > </xsl:if> > <xsl:if test="marc:datafield[@tag=505]"> > <xsl:for-each select="marc:datafield[@tag=505]"> >- <span class="results_summary"><span class="label"> >+ <span class="results_summary"> > <xsl:choose> > <xsl:when test="@ind1=0"> >- Contents: >+ <span class="label">Contents:</span> > </xsl:when> > <xsl:when test="@ind1=1"> >- Incomplete contents: >+ <span class="label">Incomplete contents:</span> > </xsl:when> > <xsl:when test="@ind1=1"> >- Partial contents: >+ <span class="label">Partial contents:</span> > </xsl:when> > </xsl:choose> >- </span> > <xsl:choose> > <xsl:when test="@ind2=0"> > <xsl:for-each select="marc:subfield[@code='t']"> >@@ -475,34 +474,33 @@ > <!-- 780 --> > <xsl:if test="marc:datafield[@tag=780]"> > <xsl:for-each select="marc:datafield[@tag=780]"> >- <span class="results_summary"><span class="label"> >+ <span class="results_summary"> > <xsl:choose> > <xsl:when test="@ind2=0"> >- Continues: >+ <span class="label">Continues:</span> > </xsl:when> > <xsl:when test="@ind2=1"> >- Continues in part: >+ <span class="label">Continues in part:</span> > </xsl:when> > <xsl:when test="@ind2=2"> >- Supersedes: >+ <span class="label">Supersedes:</span> > </xsl:when> > <xsl:when test="@ind2=3"> >- Supersedes in part: >+ <span class="label">Supersedes in part:</span> > </xsl:when> > <xsl:when test="@ind2=4"> >- Formed by the union: ... and: ... >+ <span class="label">Formed by the union: ... and: ...</span> > </xsl:when> > <xsl:when test="@ind2=5"> >- Absorbed: >+ <span class="label">Absorbed:</span> > </xsl:when> > <xsl:when test="@ind2=6"> >- Absorbed in part: >+ <span class="label">Absorbed in part:</span> > </xsl:when> > <xsl:when test="@ind2=7"> >- Separated from: >+ <span class="label">Separated from:</span> > </xsl:when> > </xsl:choose> >- </span> > <xsl:variable name="f780"> > <xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">at</xsl:with-param> >@@ -525,38 +523,37 @@ > <!-- 785 --> > <xsl:if test="marc:datafield[@tag=785]"> > <xsl:for-each select="marc:datafield[@tag=785]"> >- <span class="results_summary"><span class="label"> >+ <span class="results_summary"> > <xsl:choose> > <xsl:when test="@ind2=0"> >- Continued by: >+ <span class="label">Continued by:</span> > </xsl:when> > <xsl:when test="@ind2=1"> >- Continued in part by: >+ <span class="label">Continued in part by:</span> > </xsl:when> > <xsl:when test="@ind2=2"> >- Superseded by: >+ <span class="label">Superseded by:</span> > </xsl:when> > <xsl:when test="@ind2=3"> >- Superseded in part by: >+ <span class="label">Superseded in part by:</span> > </xsl:when> > <xsl:when test="@ind2=4"> >- Absorbed by: >+ <span class="label">Absorbed by:</span> > </xsl:when> > <xsl:when test="@ind2=5"> >- Absorbed in part by: >+ <span class="label">Absorbed in part by:</span> > </xsl:when> > <xsl:when test="@ind2=6"> >- Split into .. and ...: >+ <span class="label">Split into .. and ...:</span> > </xsl:when> > <xsl:when test="@ind2=7"> >- Merged with ... to form ... >+ <span class="label">Merged with ... to form ...</span> > </xsl:when> > <xsl:when test="@ind2=8"> >- Changed back to: >+ <span class="label">Changed back to:</span> > </xsl:when> > > </xsl:choose> >- </span> > <xsl:variable name="f785"> > <xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">at</xsl:with-param> >-- >1.7.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 4821
:
2170
|
2171
|
2183