From 08c9b36ebbdba2680002555081f711a5252de79c Mon Sep 17 00:00:00 2001 From: Katariina Pohto Date: Fri, 3 May 2024 13:30:02 +0300 Subject: [PATCH] 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 Signed-off-by: Laura_Escamilla --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 4 +++- svc/checkouts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index a2b540e971..a32e38a219 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -64,6 +64,8 @@ function LoadIssuesTable() { let date_due_formatted = $datetime(oObj.date_due, { as_due_date: true, no_tz_adjust: true }); var due = oObj.date_due_overdue ? "" + date_due_formatted + "" + : oObj.date_due_today + ? "" + date_due_formatted + "" : date_due_formatted; due = "" + due + ""; @@ -332,7 +334,7 @@ function LoadIssuesTable() { content += "" + oObj.renewals_count + ""; content += "" + "