Bugzilla – Attachment 78853 Details for
Bug 21340
Add spans with classes around callnumbers in OPAC for additional styling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21340: Add spans with classes around callnumbers in OPAC for additional styling
Bug-21340-Add-spans-with-classes-around-callnumber.patch (text/plain), 6.54 KB, created by
ByWater Sandboxes
on 2018-09-15 16:07:09 UTC
(
hide
)
Description:
Bug 21340: Add spans with classes around callnumbers in OPAC for additional styling
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2018-09-15 16:07:09 UTC
Size:
6.54 KB
patch
obsolete
>From 872d8a2e6f51fe624ff577366e29d9deb8a5d917 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutiosn.com> >Date: Wed, 12 Sep 2018 09:38:42 -0700 >Subject: [PATCH] Bug 21340: Add spans with classes around callnumbers in OPAC > for additional styling > >It would be nice if the callnumber portion of the callnumber + label was in a span, and it also makes sense to wrap the entire callnumber string in a span as well. > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter <petter@libriotech.no> > >Signed-off-by: Petter vk <petter@libriotech.no> >--- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 24 ++++++++++++++++++---- > 1 file changed, 20 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index fd98cb1371..e98d3de47b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1172,7 +1172,11 @@ > <xsl:when test="$singleBranchMode=1"> > <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]"> > <span class="ItemSummary"> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >+ <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> >+ <span class="CallNumberAndLabel"> >+ [<span class="LabelCallNumber">Call number: </span><span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>] >+ </span> >+ </xsl:if> > <xsl:text> (</xsl:text> > <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/> > <xsl:text>)</xsl:text> >@@ -1189,7 +1193,11 @@ > <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]"> > <span class="ItemSummary"> > <xsl:value-of select="items:homebranch"/> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >+ <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> >+ <span class="CallNumberAndLabel"> >+ [<span class="LabelCallNumber">Call number: </span><span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>] >+ </span> >+ </xsl:if> > <xsl:text> (</xsl:text> > <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/> > <xsl:text>)</xsl:text> >@@ -1204,7 +1212,11 @@ > <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]"> > <span class="ItemSummary"> > <xsl:value-of select="items:holdingbranch"/> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >+ <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> >+ <span class="CallNumberAndLabel"> >+ [<span class="LabelCallNumber">Call number: </span><span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>] >+ </span> >+ </xsl:if> > <xsl:text> (</xsl:text> > <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/> > <xsl:text>)</xsl:text> >@@ -1233,7 +1245,11 @@ > <xsl:if test="$singleBranchMode=0"> > <xsl:value-of select="items:homebranch"/> > </xsl:if> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >+ <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> >+ <span class="CallNumberAndLabel"> >+ [<span class="LabelCallNumber">Call number: </span><span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>] >+ </span> >+ </xsl:if> > <xsl:text> (</xsl:text> > <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/> > <xsl:text>)</xsl:text> >-- >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 21340
:
78596
|
78850
|
78852
|
78853
|
78855
|
78857
|
78866
|
79180
|
79354