From 4b0de1149a32c743101be36cc8cad05493fac2e3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 12 Jul 2022 14:45:13 +0000 Subject: [PATCH] Bug 31071: Regression: date due removed from staff search results MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch corrects a regression caused by Bug 28321, which inadvertently removed the date due from output of item information in each search result. To test, apply the patch and perform a catalog search which will return some results which are checked out and some which aren't. Confirm that the checked out items show the date due correctly. Signed-off-by: David Nind Signed-off-by: Emmanuel Bétemps Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 25d31a7581404405fe32b9da5a79c6044891981a) Signed-off-by: Lucas Gass (cherry picked from commit 5780a82e94f5cda99d2e25911229a4d419da139e) Signed-off-by: Arthur Suzuki --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 4 ++++ .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 7 +++++++ 2 files changed, 11 insertions(+) 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 fa3421dee1..e1ba6b7a01 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -4560,6 +4560,10 @@ div .suggestion_note { display:inline-block; white-space:nowrap } + + .item-date-due { + display: block; + } } @media (min-width: 200px) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 59def93d62..81c4e0577e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -610,6 +610,13 @@ [% END %] [% items_loo.count | html %] + + [% IF status_count == "onloancount" %] + + Due: [% items_loo.due_date | $KohaDates %] + + [% END %] + [% IF item_level_itypes && items_loo.description %] [% items_loo.description | html %] [% END %] -- 2.39.5