Patch fixes problem for syndetics + bibs with no ISBN. Also adds "no image
found" capability to Syndetics results.
To test (first, contact me and I will let you use my syndetics credentials *for
testing this bug only*):
* replicate bug - have a bib with an ISBN, and one without. The one with the
ISBN should show a cover, the one without will show a broken image.
* apply patch
* search for the same bib - you should now see "no image available" for the one
with no ISBN, and a cover image for your bib with an ISBN.
---
.../opac-tmpl/prog/en/modules/opac-results.tt | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt
b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt
index 22c9272..9e6951a 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt
@@ -534,10 +534,19 @@ $(document).ready(function(){
[% IF ( OPACLocalCoverImages ) %]<span title="[%
SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]"
id="local-thumbnail[% loop.count %]"></span>[% END %]
[% IF ( OPACAmazonEnabled ) %][% IF (
OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<img
src="http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn
%].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />[% ELSE %]<span
class="no-image">No cover image available</span>[% END %][% END %][% END %]
- [% IF ( SyndeticsEnabled ) %][% IF (
SyndeticsCoverImages ) %][% IF ( using_https ) %]
- <img src="https://secure.syndetics.com/index.aspx?isbn=[%
SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode
%]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[%
SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail" />
- [% ELSE %]
- <img src="http://www.syndetics.com/index.aspx?isbn=[%
SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode
%]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[%
SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail" />[% END %][% END
%][% END %]
+ [% IF ( SyndeticsEnabled ) %]
+ [% IF ( SyndeticsCoverImages ) %]
+ [% IF
SEARCH_RESULT.normalized_isbn %]
+ [% IF (
using_https ) %]
+ <img
src="https://secure.syndetics.com/index.aspx?isbn=[%
SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode
%]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[%
SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail" />
+ [% ELSE %]
+ <img
src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn
%]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[%
SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]"
alt="" class="thumbnail" />
+ [% END %]
+ [% ELSE %]
+ <span class="no-image">No cover
image available</span>
+ [% END %]
+ [% END %]
+ [% END %]
[% IF ( GoogleJackets ) %][% IF (
SEARCH_RESULT.normalized_isbn ) %]<div style="block" title="[%
SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn %]"
id="gbs-thumbnail[% loop.count %]"></div>[% ELSE %]<span class="no-image">No
cover image available</span>[% END %][% END %]
[% IF OpenLibraryCovers %][% IF SEARCH_RESULT.normalized_isbn
%]<div style="block" title="[% SEARCH_RESULT.biblionumber %]" class="[%
SEARCH_RESULT.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count
%]"></div>[% ELSE %]<span class="no-image">No cover image available</span>[%
END %][% END %]
--
1.7.2.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/