From 3aa4482d7cc547e2e2515aef3ed277281a17ee9e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 30 Dec 2024 21:41:03 +0000 Subject: [PATCH] Bug 38767: Add block display for statuses in holdings table 1. have an item with many statuses including: -checked out -onsite_checkout -in transit -transit requested -lost -damaaged -withdrwan -not for loan -hold waiting at... -recalled -available -in bundle 2. notice when there are multiple statuses the text runs into a single "blob". 3. APPLY PATCH and generate CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface) 4. Statuses are seperated by a break. Signed-off-by: William Lavoie --- .../intranet-tmpl/prog/css/src/staff-global.scss | 13 +++++++++++++ .../html_helpers/tables/items/catalogue_detail.inc | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 878634a08a..b0c29810c2 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -2313,6 +2313,19 @@ td.bundle { color: #669900; } +#holdings_table { + .intransit, + .holdonitem, + .transitrequested + .waitingat, + .heldfor, + .bundled, + .recallwaiting, + .recalledby { + display: block; + } +} + #mainuserblock { border: 1px solid #E8E8E8; margin-top: .5em; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index 266c0bf286..53aa11ce55 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -550,13 +550,13 @@ [% IF Koha.Preference('UseRecalls') %] if ( row.recall && ( row.item_id === row.recall.item_id ) ) { if ( row.recall.waiting_date ) { - nodes += '%s'.format(_("Waiting recall at %s since %s").format(escape_str(row.recall._strings.pickup_library_id.str), $date(row.recall.waiting_date))); + nodes += '%s'.format(_("Waiting recall at %s since %s").format(escape_str(row.recall._strings.pickup_library_id.str), $date(row.recall.waiting_date))); } else { [%# Hacky for patron_to_html in case we simply want to display the patron's library name %] row.recall.patron.library = { name: libraries_names.get(row.recall.patron.library_id) }; let patron_to_html = $patron_to_html(row.recall.patron, {url: true, display_cardnumber: true, hide_patron_name }); - nodes += '%s'.format(_("Recalled by %s on %s").format(patron_to_html, $date(row.recall.created_date))) + nodes += '%s'.format(_("Recalled by %s on %s").format(patron_to_html, $date(row.recall.created_date))) } } [% END %] -- 2.39.5