Bugzilla – Attachment 11369 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 UNIMARC
Bug-6886---Follow-up-for-UNIMARC.patch (text/plain), 2.46 KB, created by
Chris Cormack
on 2012-08-05 21:45:04 UTC
(
hide
)
Description:
Bug 6886 - Follow up for UNIMARC
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-08-05 21:45:04 UTC
Size:
2.46 KB
patch
obsolete
>From f7ebb89c0c0eceb51fb3008d0e84d4dd74491679 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Mon, 6 Aug 2012 09:44:36 +1200 >Subject: [PATCH] Bug 6886 - Follow up for UNIMARC > >--- > .../prog/en/xslt/UNIMARCslim2OPACResults.xsl | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >index e7ff9da..0f4b0ee 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >@@ -27,6 +27,7 @@ > select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/> > > <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/> >+ <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/> > > <xsl:if test="marc:datafield[@tag=200]"> > <xsl:for-each select="marc:datafield[@tag=200]"> >@@ -131,6 +132,17 @@ > <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: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"/>] >@@ -147,6 +159,8 @@ > </xsl:otherwise> > </xsl:choose> > </xsl:for-each> >+ </xsl:otherwise> >+ </xsl:choose> > </span> > </xsl:when> > </xsl:choose> >-- >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