From abd30b7f49a587b6f4c281e1066894f8a1d17e38 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 18 Apr 2023 23:11:47 +0000 Subject: [PATCH] Bug 33561: New dispay for location column --- .../prog/css/src/staff-global.scss | 19 ++++-- .../prog/en/modules/catalogue/results.tt | 66 +++++++++---------- 2 files changed, 48 insertions(+), 37 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 ab0a8f9e3e..1089f641de 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1770,7 +1770,6 @@ i { // style for shelving location in catalogsearch .shelvingloc { - display: block; font-style: italic; } @@ -4247,14 +4246,22 @@ div .suggestion_note { } } + h4 { + margin-bottom: 0; + } + + table td { + width: calc(100%/4); + } + .item_counts { font-weight: bold; white-space: nowrap; } .results_available_count { + float: right; font-weight: bold; - margin-bottom: .5em; } .results_checkedout { @@ -4262,9 +4269,13 @@ div .suggestion_note { margin: .3em 0; } + .results_available { + color: #060; + margin: .3em 0; + } + .results_unavailable { - color: #555; - font-style: italic; + color: #900; margin: .3em 0; } 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 b6e4380640..c6fc80e5cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -594,76 +594,76 @@ [% END %] - [% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount | html %] available:[% ELSE %], None available[% END %] + [% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %] [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] [% END %] + [% IF SEARCH_RESULT.availablecount %] +

[% SEARCH_RESULT.availablecount | html %] Available

+ [% END %] [% BLOCK search_result_items %] [% IF status_count == "onloancount" %] [% IF SEARCH_RESULT.${status_count} > 0 %] -
[% SEARCH_RESULT.${status_count} | html %] checked out:
+

[% SEARCH_RESULT.${status_count} | html %] Checked out

[% END %] [% ELSIF status_count == "othercount" %] [% IF SEARCH_RESULT.${status_count} > 0 %] -
[% SEARCH_RESULT.${status_count} | html %] unavailable:
+

[% SEARCH_RESULT.${status_count} | html %] Unavailable

[% END %] [% END %] [% IF SEARCH_RESULT.${items_loop}.size > 0 %] -