Bug 30886: Show pending recall on item on OPAC
authorAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 2 Jun 2022 22:59:56 +0000 (22:59 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Jun 2022 14:30:14 +0000 (11:30 -0300)
commit8f09ef75c365fd20dcdfefb92122e1b0c6afa6d6
treeb874b39ca487ecd1d4c799185d99d17016786623
parentd37b9e6013ab2f1c3cb94e68dd75a2e5092fe5e4
Bug 30886: Show pending recall on item on OPAC

The 'completed' flag was causing the wrong status to be shown, but we
can also give a more useful message to the patron.

To test:
1) Enable the UseRecalls system preference and set up your
recalls-related circulation rules.
2) Check out an item to Patron B.
3) Log into the OPAC as Patron A and search for the item.
4) Place a recall on that item.
5) Go back to the staff client and check the item in. Confirm the recall
as waiting for Patron A.
6) Go back to the OPAC record page and look at the holdings table.
Notice the status still says the item is Available.
7) Apply patch, restart services, refresh the OPAC.
8) Confirm the holdings table status now says the item has a pending
recall.

Sponsored-by: Catalyst IT
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc
opac/opac-detail.pl