From 8ecc787f312b981d633594990ecb2488b0384209 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 --- 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 c5b474e027..a7b13ef461 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -65,6 +65,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 + ""; @@ -333,7 +335,7 @@ function LoadIssuesTable() { content += "" + oObj.renewals_count + ""; content += "" + "