Bugzilla – Attachment 11370 Details for
Bug 6886
Single branch mode should disable showing the branch name in front of all callnumbers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6886 Follow up for NORMARC
Bug-6886-Follow-up-for-NORMARC.patch (text/plain), 2.98 KB, created by
Chris Cormack
on 2012-08-05 22:00:26 UTC
(
hide
)
Description:
Bug 6886 Follow up for NORMARC
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-08-05 22:00:26 UTC
Size:
2.98 KB
patch
obsolete
>From 7eefda63048e35d5b735163e56fc683de572dbe9 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Mon, 6 Aug 2012 09:59:54 +1200 >Subject: [PATCH] Bug 6886 Follow up for NORMARC > >--- > .../prog/en/xslt/NORMARCslim2OPACResults.xsl | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >index c6b700a..0fd8204 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >@@ -19,6 +19,7 @@ > <xsl:template match="marc:record"> > > <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/> >+ <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/> > > <xsl:variable name="leader" select="marc:leader"/> > <xsl:variable name="leader6" select="substring($leader,7,1)"/> >@@ -712,8 +713,18 @@ > <xsl:when test="count(key('item-by-status', 'available'))>0"> > <span class="available"> > <b><xsl:text>Copies available for loan: </xsl:text></b> >- <xsl:variable name="available_items" >- select="key('item-by-status', 'available')"/> >+ <xsl:variable name="available_items" select="key('item-by-status', 'available')"/> >+ <xsl:choose> >+ <xsl:when test="$singleBranchMode=1"> >+ <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', 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', 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> >+ </xsl:for-each> >+ </xsl:when> >+ <xsl:otherwise> > <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> > <xsl:value-of select="items:homebranch"/> > <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >@@ -723,6 +734,8 @@ > <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> > </xsl:for-each> >+ </xsl:otherwise> >+ </xsl:choose> > </span> > </xsl:when> > >-- >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 6886
:
11367
|
11369
|
11370
|
11501
|
11502
|
11504
|
14434
|
15065
|
16028
|
16385
|
16391
|
17289
|
23304
|
23745
|
23746