Bugzilla – Attachment 179134 Details for
Bug 39297
Show due date on recalls queue if a recalled item is overdue to be returned
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39297: Show due date on recalls queue if a recalled item is overdue to be returned
Bug-39297-Show-due-date-on-recalls-queue-if-a-reca.patch (text/plain), 2.74 KB, created by
Aleisha Amohia
on 2025-03-11 03:52:01 UTC
(
hide
)
Description:
Bug 39297: Show due date on recalls queue if a recalled item is overdue to be returned
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2025-03-11 03:52:01 UTC
Size:
2.74 KB
patch
obsolete
>From a4995cb1fa9e867331062943c124b8d29aaf7244 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 11 Mar 2025 03:44:56 +0000 >Subject: [PATCH] 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 >--- > koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc >index d1cf87ac04f..e8a8fe04a07 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc >@@ -75,7 +75,7 @@ > > [% UNLESS viewing_old %] > <td class="recall-duedate"> >- [% IF recall.requested and recall.checkout %] >+ [% IF ( recall.requested or recall.overdue ) and recall.checkout %] > <span>Due to be returned by [% recall.checkout.date_due | $KohaDates %]</span> > [% ELSIF recall.waiting and RECALL.expiration_date %] > <span>Pick up by [% RECALL.expiration_date | $KohaDates %]</span> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39297
: 179134