From bc9beba8b7ef395519a183939931fb0a18fa558a 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. --- .../intranet-tmpl/prog/en/css/staff-global.css | 4 +++ .../prog/en/modules/catalogue/results.tt | 27 ++++++++++++++++++- 2 files changed, 29 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 b92f490..4d9bd35 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1037,6 +1037,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 785da66..c541a32 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -442,6 +442,7 @@ var holdForPatron = function () { Location + [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %] [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] [% IF ( loop.odd ) %][% ELSE %][% END %] [% IF ( AmazonCoverImages || LocalCoverImages ) %] @@ -545,8 +546,30 @@ 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 ) %]