Bug 35931 - Pre-select items with due date today in the renew column on details page and on checkout page
Summary: Pre-select items with due date today in the renew column on details page and ...
Status: Needs documenting
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Katariina Pohto
QA Contact: Laura Escamilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-29 12:16 UTC by Reetta Pihlaja
Modified: 2024-11-15 17:40 UTC (History)
7 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
This enhancement selects items that are due today on the patron checkout and details screens, allowing librarians to renew items due today without additional clicks. This mirrors the behavior for overdue items on the same pages.
Version(s) released in:
24.11.00
Circulation function:


Attachments
Bug 35931: More preselected items in the renew column on patron checkouts (3.35 KB, patch)
2024-05-03 14:42 UTC, Katariina Pohto
Details | Diff | Splinter Review
Bug 35931: More preselected items in the renew column on patron checkouts (3.40 KB, patch)
2024-05-15 14:20 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Looks great! Passing QA. (3.47 KB, patch)
2024-08-06 11:39 UTC, Laura Escamilla
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Reetta Pihlaja 2024-01-29 12:16:10 UTC
When viewing and renewing patron's checkouts on details page or on checkout page, only the items with past due dates are preselected as a default in the renew column. Would it be possible to preselect also the items with current due dates here, as a default? This would help a lot at the customer service.
Comment 1 Katariina Pohto 2024-05-03 14:42:02 UTC
Created attachment 166143 [details] [review]
Bug 35931: More preselected items in the renew column on patron checkouts

This patch adds a boolean variable for checking if the due date is the current day in a similar way there's one for checking if it's overdue. Then autochecks Renew column for both overdue and due today checkouts. Also bolding the due date for the checkouts due the current date, so they can be easily distinguished from other due dates.

Test plan:
1) See/create a patron with several checkouts: overdue, due today and due later.
2) Note that only the overdue checkouts have a checkmark on Renew column when loading the table.
3) Apply patch.
4) Load the checkouts table again. Note that now also the checkout due today has a preselected renewal checkmark and the due date has been bolded.
Comment 2 Lucas Gass (lukeg) 2024-05-15 14:20:30 UTC
Created attachment 166782 [details] [review]
Bug 35931: More preselected items in the renew column on patron checkouts

When viewing patron checkouts table from details or circulation page, overdue checkouts
are preselected for renewals and the overdue dates are bolded and red. This patch will enable
also preselecting checkouts that are due on the current day. The due dates for these checkouts
will be bolded but not red.

Test plan:
1) See/create a patron with several checkouts: overdue, due today and due later.
2) Note that only the overdue checkouts have a checkmark on Renew column when loading the table.
3) Apply patch.
4) Load the checkouts table again. Note that now also the checkout due today has a preselected renewal
   checkmark and the due date has been bolded.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 3 Laura Escamilla 2024-08-06 11:39:38 UTC
Created attachment 170087 [details] [review]
Looks great! Passing QA.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Comment 4 Katrin Fischer 2024-08-23 17:07:51 UTC
Hi Katharina, thanks for the patch!

Just a note: trainee@koha-suomi.fi looks like a general email address that might be re-used by another person in the future. Please consider using a personal email so that we can map and make sure attributions show under your name :)
Comment 5 Katrin Fischer 2024-08-23 17:14:18 UTC
Pushed for 24.11!

Well done everyone, thank you!