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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to