Bugzilla – Attachment 17508 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 - For reference items no longer listed in XSLT result lists
Bug-9995---For-reference-items-no-longer-listed-in.patch (text/plain), 2.74 KB, created by
Marcel de Rooy
on 2013-04-17 15:04:55 UTC
(
hide
)
Description:
Bug 9995 - For reference items no longer listed in XSLT result lists
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-04-17 15:04:55 UTC
Size:
2.74 KB
patch
obsolete
>From 44fa6f93415856da5d17e5598c3e9ddd40d30a42 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 8 Apr 2013 09:07:43 -0400 >Subject: [PATCH] Bug 9995 - For reference items no longer listed in XSLT > result lists >Content-Type: text/plain; charset=utf-8 > >Re-added the xsl that shouldn't have been removed. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Tested with different settings for OpacItemLocation >and not for loan set in the item and for the item type. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Including a QA followup. >--- > .../prog/en/xslt/MARC21slim2OPACResults.xsl | 19 ++++++++++++++++++- > 1 files changed, 18 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >index 4335e50..cdeb672 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >@@ -1071,11 +1071,28 @@ > </xsl:for-each> > </xsl:otherwise> > </xsl:choose> >- </span> > >+ </span> > </xsl:when> > </xsl:choose> > >+ <xsl:choose> >+ <xsl:when test="count(key('item-by-status', 'reference'))>0"> >+ <span class="available"> >+ <b><xsl:text>Copies available for reference: </xsl:text></b> >+ <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:value-of select="items:homebranch"/> >+ <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> >+ </span> >+ </xsl:when> >+ </xsl:choose> >+ > <xsl:choose> <xsl:when test="count(key('item-by-status', 'available'))>0"> > <xsl:choose><xsl:when test="count(key('item-by-status', 'reference'))>0"> > <br/> >-- >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