Bug 39297 - Show due date on recalls queue if a recalled item is overdue to be returned
Summary: Show due date on recalls queue if a recalled item is overdue to be returned
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Aleisha Amohia
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-11 03:41 UTC by Aleisha Amohia
Modified: 2025-03-11 03:52 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: Sponsored
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function: Recalls


Attachments
Bug 39297: Show due date on recalls queue if a recalled item is overdue to be returned (2.74 KB, patch)
2025-03-11 03:52 UTC, Aleisha Amohia
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Aleisha Amohia 2025-03-11 03:41:24 UTC
If a recalled item is overdue to be returned to the library, the checkout's due date does not show on the recalls queue. This is still useful information.
Comment 1 Aleisha Amohia 2025-03-11 03:52:01 UTC
Created attachment 179134 [details] [review]
Bug 39297: Show due date on recalls queue if a recalled item is overdue to be returned

To test:

1) Enable the UseRecalls system preference in Koha Administration -> Global system preferences
2) Go to Koha Administration -> Circulation and fines rules. Set a value for all of the recalls related rules.
3) Check out an item to Patron B (you could use barcode 39999000012675).
4) Log into the OPAC as Patron A and search for that item. Place a recall on the item.
5) In the staff interface, go to Circulation -> Recalls queue. Notice the recall in the queue with the status 'requested' and the due date showing in the next column.
6) Access the database (koha-mysql kohadev) and change the due date of the item to simulate it being overdue. i.e.: update issues set date_due = "2025-03-10 23:59:00";
7) Manually run the cronjob which sets recalls as overdue. i.e.: koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/recalls/overdue_recalls.pl
8) Refresh the Recalls queue in your browser. Notice the status now says 'Overdue to be returned' and the due date in the next column is missing.

9) Apply the patch and refresh the page.

10) Notice the status still says 'Overdue to be returned' and the checkout's due date shows in the next column.

11) Check out another item to Patron C (you could use barcode 39999000000498).
12) Log into the OPAC as Patron A and search for that item. Place a recall on the item.
13) Refresh the Recalls queue and confirm the second recall shows with the status 'requested' and the due date shows as expected in the next column.

Sponsored-by: Auckland University of Technology