From df2bab8f61ca5d06768c5425c55f3f08d9485966 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 17 Apr 2015 10:41:13 -0400 Subject: [PATCH] Bug 13022 [QA Followup] - Highlight the results with inaccurate status, add explanation when mouse hovers over. Bug 13022 [QA Followup] - Revert changes in whitespace back to original for items count lines Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- .../intranet-tmpl/prog/en/css/staff-global.css | 4 ++++ .../prog/en/modules/catalogue/results.tt | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 0188019204..b35e6be302 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1043,6 +1043,10 @@ div.help { color : #990000; } +.inaccurate-item-statuses { + color : #990000; +} + .circmessage li { list-style : url(../../img/arrow-bullet.gif); margin-bottom : .2em; 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 b337c8c81b..65f35f1fb7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -472,6 +472,7 @@ var holdForPatron = function () { Location + [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %] [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] [% IF ( loop.odd ) %][% ELSE %][% END %] [% IF ( AmazonCoverImages || LocalCoverImages ) %] @@ -575,8 +576,18 @@ var holdForPatron = function () {
- [% IF ( SEARCH_RESULT.items_count ) %][% SEARCH_RESULT.items_count %] - [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %] + [% IF ( SEARCH_RESULT.items_count ) %] + + [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] + + [% END %] + + [% SEARCH_RESULT.items_count %] [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %] + + [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] + + [% END %] + [% IF ( SEARCH_RESULT.availablecount ) %]
    -- 2.39.5