Bug 10820: display item status as lost if item is both lost and on loan
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 4 Sep 2013 16:14:07 +0000 (12:14 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 11 Oct 2013 14:34:23 +0000 (14:34 +0000)
commitffd625b88f87663c84a55b7b96e56a32b606e36d
tree073a7659139853954aff96eb5bf15522b52b124d
parentf17fab3ed9b4cef1bd8932376fbdc8733d899fab
Bug 10820: display item status as lost if item is both lost and on loan

In the OPAC, if an items is both lost and checked out, it will show as
lost on the search results, and checkout out in the record details. The
lost status should take precedence over the checked out status, as the
checked out status may lead a patron to believe the book may return
soon.

Test Plan:
1) Check an item out to a patron
2) Set it to lost ( requires itemlost to be revealed in the framework
    for the items editor ).
3) Rebuild your zebra indexes
4) Run a search where that item is in the results list
5) Note the item is marked as lost
6) View the record details
7) Note the item is listed as "checked out"
8) Apply this patch
9) Repeat steps 4-6, note the item is now listed as lost

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc