Bugzilla – Attachment 116580 Details for
Bug 24630
UNIMARC XSLT Update for bug 7611
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24630: (follow-up 2) call number when singleBranchMode=1
Bug-24630-follow-up-2-call-number-when-singleBranc.patch (text/plain), 2.54 KB, created by
Fridolin Somers
on 2021-02-09 14:53:04 UTC
(
hide
)
Description:
Bug 24630: (follow-up 2) call number when singleBranchMode=1
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2021-02-09 14:53:04 UTC
Size:
2.54 KB
patch
obsolete
>From 77e0f12e33d73c5d16f70fc096fd4d664e12fd91 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 9 Feb 2021 15:50:21 +0100 >Subject: [PATCH] Bug 24630: (follow-up 2) call number when singleBranchMode=1 > >singleBranchMode=1 is when there is only one library (branch). > >Test disply of available item. >Patch allows display of call number like in regular mode >--- > .../en/xslt/UNIMARCslim2OPACResults.xsl | 24 +++++++++++++++---- > 1 file changed, 19 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl >index 0e71cacf55..78f2de5bd4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl >@@ -198,11 +198,25 @@ > <xsl:choose> > <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])]"> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</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> >- <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> >+ <span class="ItemSummary"> >+ <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> >+ <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> > </xsl:when> > <xsl:otherwise> >-- >2.30.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 24630
:
98709
|
107462
|
116578
|
116579
|
116580
|
128935