From ab4783af82848f219192c1c887d23b72e1efbd8b 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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit df2bab8f61ca5d06768c5425c55f3f08d9485966) Signed-off-by: Julian Maurice (cherry picked from commit c621641bf3a3b6164b9c18ff5d119273528f92c7) Signed-off-by: Frédéric Demians --- .../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 23066ea69d..15351a9ba9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1034,6 +1034,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 36a21378b1..a599a9f9ea 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -452,6 +452,7 @@ var holdForPatron = function () { Location + [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %] [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] [% IF ( loop.odd ) %][% ELSE %][% END %] [% IF ( AmazonCoverImages || LocalCoverImages ) %] @@ -555,8 +556,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