Bugzilla – Attachment 13778 Details for
Bug 9169
Wrap relator code in <span> to allow for CSS customization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9169 - Wrap relator code in <span> to allow for CSS customization
Bug-9169---Wrap-relator-code-in-span-to-allow-for-.patch (text/plain), 2.91 KB, created by
Owen Leonard
on 2012-11-29 16:58:21 UTC
(
hide
)
Description:
Bug 9169 - Wrap relator code in <span> to allow for CSS customization
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-11-29 16:58:21 UTC
Size:
2.91 KB
patch
obsolete
>From 4f4ee5514e42e61e9ff3628cd9c4ec59a92450e1 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 29 Nov 2012 11:32:52 -0500 >Subject: [PATCH] Bug 9169 - Wrap relator code in <span> to allow for CSS > customization >Content-Type: text/plain; charset="utf-8" > >This patch adds <span class="relatorcode"> around the display of >relator codes in the OPAC and the staff client, and adds a space >before the bracket (" [relatorcode]") for readability. > >To test, add custom CSS to OPACUserCSS and IntranetUserCSS and >view a record which includes relator code data. Suggested: > >.relatorcode { > background-color: rgb(230, 240, 242); > border-radius: 3px 3px 3px 3px; > color: rgb(51, 51, 51); > display: inline-block; > font-size: 75%; > font-weight: normal; > margin-left: 0.4em; > padding: 0.1em 0.4em; >} >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 4 +++- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 4 +++- > 2 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index ea36118..cee6bd8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -916,12 +916,14 @@ > </xsl:choose> > <!-- add relator code too between brackets--> > <xsl:if test="marc:subfield[@code='4' or @code='e']"> >- <xsl:text>[</xsl:text> >+ <span class="relatorcode"> >+ <xsl:text> [</xsl:text> > <xsl:choose> > <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when> > <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise> > </xsl:choose> > <xsl:text>]</xsl:text> >+ </span> > </xsl:if> > </a> > <xsl:choose> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index 64afc0b..0f12ade 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -910,12 +910,14 @@ > </xsl:choose> > <!-- add relator code too between brackets--> > <xsl:if test="marc:subfield[@code='4' or @code='e']"> >- <xsl:text>[</xsl:text> >+ <span class="relatorcode"> >+ <xsl:text> [</xsl:text> > <xsl:choose> > <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when> > <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise> > </xsl:choose> > <xsl:text>]</xsl:text> >+ </span> > </xsl:if> > </a> > <xsl:if test="marc:subfield[@code=9]"> >-- >1.7.9.5
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 9169
:
13778
|
13943
|
14241