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 <magnus@libriotech.no>
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.
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 9c76bda202)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Leo Stoyanov 2025-01-14 22:02:43 +00:00 committed by Paul Derscheid
parent ec322648b6
commit cc82fd0996
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@
[% FOREACH checkout IN all_checkouts %]
[% SET item = checkout.item %]
[% SET biblio = item.biblio %]
[% IF checkout.returndate %]<tr>[% ELSE %]<tr class="onissue">[% END %]
<tr>
<td style="display:none;">
[% IF checkout.onsite_checkout %][% issuetype = 'onsite_checkout' | html %]
[% ELSE %][% issuetype = 'standard_checkout' | html %]
@ -132,7 +132,7 @@
[% checkout.returndate | $KohaDates with_hours => 1 %]
[% ELSE %]
<td data-order="checked out">
<small>Checked out</small>
<span class="checked-out-badge badge badge-pill bg-warning text-dark">Checked out</span>
[% END %]
</td>
</tr>