Bug 9028 - Optionally show only the number of available copies in result lists in OPAC
Summary: Optionally show only the number of available copies in result lists in OPAC
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 08:38 UTC by Magnus Enger
Modified: 2013-03-28 14:45 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Enger 2012-11-08 08:38:55 UTC
If there are a lot of libraries/branches in an installation and they all have the same book, the list of libraries that has the book available for loan can look a bit messy. It might be nice to provide an option for just displaying the number of available copies, and not the complete list with all the names. 

This would of course have to be governed by a syspref, with the default set to preserve the current behaviour. 

The logic would be similar to the one for other statuses that do display just numbers. Something like this: 

<xsl:if test="count(key('item-by-status', 'available'))>0">
<span class="available">
<xsl:text>Checked out (</xsl:text>
<xsl:value-of select="count(key('item-by-status', 'available'))"/>
<xsl:text>). </xsl:text>
</span>
</xsl:if>
Comment 1 Fridolin Somers 2013-03-28 14:45:51 UTC
(In reply to comment #0)
I think you mean :
> <xsl:if test="count(key('item-by-status', 'available'))>0">
> <span class="available">
 <xsl:text>Available (</xsl:text>
> <xsl:value-of select="count(key('item-by-status', 'available'))"/>
> <xsl:text>). </xsl:text>
> </span>
> </xsl:if>