Bugzilla – Attachment 17510 Details for
Bug 9995
For reference items no longer listed in XSLT result lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9995: Followup for Location line
Bug-9995-Followup-for-Location-line.patch (text/plain), 4.84 KB, created by
Marcel de Rooy
on 2013-04-17 15:05:05 UTC
(
hide
)
Description:
Bug 9995: Followup for Location line
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-04-17 15:05:05 UTC
Size:
4.84 KB
patch
obsolete
>From 76126924f54f74ff40958a5a653f578b34d45447 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 17 Apr 2013 16:54:59 +0200 >Subject: [PATCH] Bug 9995: Followup for Location line >Content-Type: text/plain; charset=utf-8 > >Simplifying erroneous code mixing information from two levels. >Takes into account Singlebranchmode. >All items, available or for reference, are shown on this line. >--- > .../prog/en/xslt/MARC21slim2OPACResults.xsl | 46 ++++++-------------- > 1 files changed, 14 insertions(+), 32 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >index 83a0e15..0b6ce98 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >@@ -1106,41 +1106,23 @@ > </xsl:if> > </span> > >- <xsl:choose> >- <xsl:when test="($OPACItemLocation='location' or $OPACItemLocation='ccode') and (count(key('item-by-status', 'available'))!=0 or count(key('item-by-status', 'reference'))!=0)"> >+ <xsl:if test="(count(key('item-by-status', 'available'))>0 or count(key('item-by-status', 'reference'))>0)"> > <span class="results_summary" id="location"> > <span class="label">Location(s): </span> >- <xsl:choose> >- <xsl:when test="count(key('item-by-status', 'available'))>0"> >- <span class="available"> >- <xsl:variable name="available_items" select="key('item-by-status', 'available')"/> >- <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> >- <xsl:choose> >- <xsl:when test="$OPACItemLocation='location'"><b><xsl:value-of select="concat(items:location,' ')"/></b></xsl:when> >- <xsl:when test="$OPACItemLocation='ccode'"><b><xsl:value-of select="concat(items:ccode,' ')"/></b></xsl:when> >- </xsl:choose> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> <xsl:value-of select="items:itemcallnumber"/></xsl:if> >- <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> >- </span> >- </xsl:when> >- <xsl:when test="count(key('item-by-status', 'reference'))>0"> >- <span class="available"> >- <xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/> >- <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> >- <xsl:choose> >- <xsl:when test="$OPACItemLocation='location'"><b><xsl:value-of select="concat(items:location,' ')"/></b></xsl:when> >- <xsl:when test="$OPACItemLocation='ccode'"><b><xsl:value-of select="concat(items:ccode,' ')"/></b></xsl:when> >- </xsl:choose> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> <xsl:value-of select="items:itemcallnumber"/></xsl:if> >- <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> >- </span> >- </xsl:when> >- </xsl:choose> >+ <xsl:for-each select="items:items"> >+ <xsl:for-each select="items:item[items:status='available' or items:status='reference']"> >+ <xsl:if test="$singleBranchMode=0"><xsl:value-of select="items:homebranch"/><xsl:text>:</xsl:text></xsl:if> >+ <xsl:choose> >+ <xsl:when test="$OPACItemLocation='location'"><b><xsl:value-of select="items:location"/></b></xsl:when> >+ <xsl:when test="$OPACItemLocation='ccode'"><b><xsl:value-of select="items:ccode"/></b></xsl:when> >+ <xsl:when test="$OPACItemLocation='callnum'"><b><xsl:value-of select="items:itemcallnumber"/></b></xsl:when> >+ </xsl:choose> >+ <xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if> >+ </xsl:for-each> >+ </xsl:for-each> > </span> >- </xsl:when> >- </xsl:choose> >+ </xsl:if> >+ > </xsl:template> > > <xsl:template name="nameABCDQ"> >-- >1.7.7.6
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 9995
:
17288
|
17434
|
17508
|
17509
|
17510
|
17519
|
17523