Bugzilla – Attachment 25521 Details for
Bug 11328
Show local cover images in staff client search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11328 - Show local cover images in staff client search results
Bug-11328---Show-local-cover-images-in-staff-clien.patch (text/plain), 4.65 KB, created by
Owen Leonard
on 2014-02-20 20:29:40 UTC
(
hide
)
Description:
Bug 11328 - Show local cover images in staff client search results
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-02-20 20:29:40 UTC
Size:
4.65 KB
patch
obsolete
>From 54c6a96b10ee4bd8cc96ee8504cde7f242d3cb6c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 20 Feb 2014 15:18:46 -0500 >Subject: [PATCH] Bug 11328 - Show local cover images in staff client search > results >Content-Type: text/plain; charset="utf-8" > >Local cover images do not appear in staff client search results. This >patch adds them. > >To test, enable the LocalCoverImages system preference and add at least >one cover image to a title. Perform a search which will return results >that include your title. Confirm that the local cover image is >displayed. > >Search results should also display correctly with and without >AmazonCoverImages enabled as well as with LocalCoverImages disabled. >--- > .../intranet-tmpl/prog/en/css/staff-global.css | 13 +++++++++++++ > .../prog/en/modules/catalogue/results.tt | 20 ++++++++++++++------ > 2 files changed, 27 insertions(+), 6 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 4aa7b83..d2404ca 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >@@ -2018,6 +2018,19 @@ a.localimage img { > margin : 0 .5em; > padding : .3em; > } >+ >+.no-image { >+ background-color : #FFF; >+ border: 1px solid #AAA; >+ color : #979797; >+ display:block; >+ font-size : 86%; >+ font-weight : bold; >+ text-align : center; >+ width : 75px; >+ border-radius : 3px; >+} >+ > div.pager p { > margin: 0; > } >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 84206fe..7bb75f8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -148,6 +148,9 @@ $('#sort_by').change(function() { > window.location = '/cgi-bin/koha/catalogue/[% gotoPage %]?biblionumber=' + [% SEARCH_RESULTS.last.biblionumber %] + '&searchid=[% searchid %]'; > [% END %] > [% END %] >+ >+[% IF LocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] >+ > }); > > >@@ -430,19 +433,24 @@ var holdForPatron = function () { > <!-- TABLE RESULTS START --> > <table> > <tr> >- [% IF ( AmazonCoverImages ) %]<th> </th>[% END %] >+ [% IF ( AmazonCoverImages || LocalCoverImages ) %]<th> </th>[% END %] > <th colspan="2">Results</th> > <th>Location</th> > </tr> > <!-- Actual Search Results --> > [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] > [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %] >- [% IF ( AmazonCoverImages ) %] >+ [% IF ( AmazonCoverImages || LocalCoverImages ) %] > <td> >- <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]"> >- >- <img src="[% IF ( SEARCH_RESULT.normalized_isbn ) %]http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg[% ELSE %]http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif[% END %]" alt="" class="thumbnail" /> >- </a></td> >+ [% IF ( LocalCoverImages ) %] >+ <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span> >+ [% END %] >+ [% IF ( AmazonCoverImages ) %] >+ <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]"> >+ <img src="[% IF ( SEARCH_RESULT.normalized_isbn ) %]http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg[% ELSE %]http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif[% END %]" alt="" class="thumbnail" /> >+ </a> >+ [% END %] >+ </td> > [% END %] > <td> > <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" style="display:none" /> >-- >1.7.9.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 11328
:
25459
|
25521
|
25681
|
26012