From 911c829d6fd668e201e7b50b9c20d2b5bb230a37 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. --- .../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 878634a08a4..b0c29810c28 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 e8fec7f4bc8..c4155f973cc 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 @@ -547,13 +547,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.2