Bugzilla – Attachment 45959 Details for
Bug 13022
Hardcoded limit causes records with more than 20 items to show inaccurate statuses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13022 [QA Followup] - Highlight the results with inaccurate status, add explanation when mouse hovers over.
Bug-13022-QA-Followup---Highlight-the-results-with.patch (text/plain), 3.69 KB, created by
Kyle M Hall (khall)
on 2015-12-23 19:00:11 UTC
(
hide
)
Description:
Bug 13022 [QA Followup] - Highlight the results with inaccurate status, add explanation when mouse hovers over.
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-12-23 19:00:11 UTC
Size:
3.69 KB
patch
obsolete
>From 19b750b0593b64823fe5e96cfd7bd3e7add2b45c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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 <jonathan.druart@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 4 ++++ > .../intranet-tmpl/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 0188019..b35e6be 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 e011d1b..3e2061a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -473,6 +473,7 @@ var holdForPatron = function () { > <th>Location</th> > </tr> > <!-- Actual Search Results --> >+ [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %] > [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] > [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %] > [% IF ( AmazonCoverImages || LocalCoverImages ) %] >@@ -576,8 +577,18 @@ var holdForPatron = function () { > </td> > > <td><div class="availability"> >- [% IF ( SEARCH_RESULT.items_count ) %]<strong>[% 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> >+ [% IF ( SEARCH_RESULT.items_count ) %] >+ <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 ) %] > <ul> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13022
:
31978
|
37970
|
37971
|
38066
|
38069
|
38072
|
38075
|
38076
|
38437
|
38438
|
38476
|
38477
|
38478
|
45957
|
45958
| 45959