From dd7fa5d6d5279bc5923abfbba44168afffa6efe0 Mon Sep 17 00:00:00 2001 From: Leo Stoyanov Date: Tue, 14 Jan 2025 22:02:43 +0000 Subject: [PATCH] Bug 38783: Added "Checked out" badge for checked out items in the circulation history table. To test: 1. Make some checkout to a patron so they have a circulation history, with some items checked in and some still on loan. 2. Look at the patron's "Circulation history" table. There are four possible background colors for each row: #ffffff, #f3f4f4, #F9FAE0, and #FFFFCC. 3. Apply the patch, update the CSS (yarn build), and restart everything (restart_all). 4. Repeat steps 1-2, if needed. An orange/gold badge will appear under the "Return date" column of the table for items that have been checked out, and there will no longer be alternating, pale yellow rows. Signed-off-by: Magnus Enger Works as advertised. I agree that it looks better now than before, and that it is easier to tell the checked out items from the returned items. --- koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt index 771cedafa7..f834bb7e4d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt @@ -83,7 +83,7 @@ [% FOREACH checkout IN all_checkouts %] [% SET item = checkout.item %] [% SET biblio = item.biblio %] - [% IF checkout.returndate %][% ELSE %][% END %] + [% IF checkout.onsite_checkout %][% issuetype = 'onsite_checkout' | html %] [% ELSE %][% issuetype = 'standard_checkout' | html %] @@ -132,7 +132,7 @@ [% checkout.returndate | $KohaDates with_hours => 1 %] [% ELSE %] - Checked out + Checked out [% END %] -- 2.34.1