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 <jonathan.druart@biblibre.com>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
Kyle Hall 2015-04-17 10:41:13 -04:00 committed by Brendan Gallagher
parent 7ab9d7d91d
commit df2bab8f61
2 changed files with 17 additions and 2 deletions

View file

@ -1043,6 +1043,10 @@ div.help {
color : #990000; color : #990000;
} }
.inaccurate-item-statuses {
color : #990000;
}
.circmessage li { .circmessage li {
list-style : url(../../img/arrow-bullet.gif); list-style : url(../../img/arrow-bullet.gif);
margin-bottom : .2em; margin-bottom : .2em;

View file

@ -472,6 +472,7 @@ var holdForPatron = function () {
<th>Location</th> <th>Location</th>
</tr> </tr>
<!-- Actual Search Results --> <!-- Actual Search Results -->
[% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
[% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %] [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
[% IF ( AmazonCoverImages || LocalCoverImages ) %] [% IF ( AmazonCoverImages || LocalCoverImages ) %]
@ -575,8 +576,18 @@ var holdForPatron = function () {
</td> </td>
<td><div class="availability"> <td><div class="availability">
[% IF ( SEARCH_RESULT.items_count ) %]<strong>[% SEARCH_RESULT.items_count %] [% IF ( SEARCH_RESULT.items_count ) %]
[% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %]</strong> <strong>
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
<span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses">
[% 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 %]
</span>
[% END %]
</strong>
[% IF ( SEARCH_RESULT.availablecount ) %] [% IF ( SEARCH_RESULT.availablecount ) %]
<ul> <ul>