Bugzilla – Attachment 38075 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), 4.04 KB, created by
Kyle M Hall (khall)
on 2015-04-17 14:42:37 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-04-17 14:42:37 UTC
Size:
4.04 KB
patch
obsolete
>From bc9beba8b7ef395519a183939931fb0a18fa558a 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. > >--- > .../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 () { > <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 ) %] >@@ -545,8 +546,30 @@ 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> >-- >1.7.2.5
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