Bugzilla – Attachment 176298 Details for
Bug 38767
Statuses in the holdings table should have block display, not inline
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38767: Add block display for statuses in holdings table
Bug-38767-Add-block-display-for-statuses-in-holdin.patch (text/plain), 3.38 KB, created by
ByWater Sandboxes
on 2025-01-09 18:40:34 UTC
(
hide
)
Description:
Bug 38767: Add block display for statuses in holdings table
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2025-01-09 18:40:34 UTC
Size:
3.38 KB
patch
obsolete
>From 3aa4482d7cc547e2e2515aef3ed277281a17ee9e Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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 <william.lavoie@inLibro.com> >--- > .../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 += '<span>%s</span>'.format(_("Waiting recall at %s since %s").format(escape_str(row.recall._strings.pickup_library_id.str), $date(row.recall.waiting_date))); >+ nodes += '<span class="recallwaiting">%s</span>'.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 += '<span>%s</span>'.format(_("Recalled by %s on %s").format(patron_to_html, $date(row.recall.created_date))) >+ nodes += '<span class="recalledby">%s</span>'.format(_("Recalled by %s on %s").format(patron_to_html, $date(row.recall.created_date))) > } > } > [% END %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38767
:
175850
|
176022
|
176298
|
176461
|
177133
|
177759
|
178090