[Koha-bugs] [Bug 6357] New: Items (un)availability not displayed correctly (OPAC)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 17 21:32:34 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6357

             Bug #: 6357
           Summary: Items (un)availability not displayed correctly (OPAC)
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Templates
        AssignedTo: oleonard at myacpl.org
        ReportedBy: januszop at gmail.com
         QAContact: koha-bugs at lists.koha-community.org


Created attachment 4157
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4157
A screenshot illustrating the problem

With the new templates, in results' view in OPAC (having OPACXSLTResultsDisplay
set to 'normally') the (un)availability of items is not displayed correctly: if
there are no items available, Koha still displays "Availability: Copies
available: " (cf. screenshot), whereas it should be "Availability: No items
available:" etc.

Apparently the dereference of SEARCH_RESULT.available_items_loop in
opac-results.tt is not interpreted correctly (available_items_loop list is
empty but [% IF ( SEARCH_RESULT.available_items_loop ) %] is interpreted as
true. 

A very simple patch follows.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list