]> git.koha-community.org Git - koha.git/commit
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)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 15 Jun 2022 16:12:51 +0000 (16:12 +0000)
commit8bcba5be886eb759176b20ed2fe8e056d2fc2fa2
tree36641fa2d24fef44dc005b55b609fb2f61d4a404
parent38396f9dc355c5c2f5faf4224603dd67bf819c3b
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>
(cherry picked from commit 8f09ef75c365fd20dcdfefb92122e1b0c6afa6d6)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc
opac/opac-detail.pl