---
 koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt 
b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
index 3430cbb..1da6e38 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
@@ -21,8 +21,14 @@
     dateFormat: 'uk',[% END %]
             widgets : ['zebra'],
             sortList: [[0,0]]
-        });[% IF ( GoogleJackets ) %]
-        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);[% END %][% IF ( 
opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
+        });
+       [% IF ( GoogleJackets ) %]
+        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
+       [% END %]
+       [% IF OpenLibraryCovers %]
+       KOHA.OpenLibrary.GetCoverFromIsbn();
+       [% END %]
+       [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( 
TagsEnabled ) %]
         $(".tagbutton").click(KOHA.Tags.add_tag_button);[% END %][% END %][% 
END %]
 
 });
@@ -72,6 +78,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
     [% ELSE %]<span class="no-image">No cover image available</span>[% END 
%][% END %][% END %]
 
     [% IF ( GoogleJackets ) %]<div style="block" title="[% biblionumber |url 
%]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>[% END %]
+    [% IF OpenLibraryCovers %]<div style="block" title="[% biblionumber |url 
%]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>[% 
END %]
     [% IF ( BakerTaylorEnabled ) %][% IF ( normalized_isbn ) %][% IF ( 
OPACurlOpenInNewWindow ) %]<a href="https://[% BakerTaylorBookstoreURL |html 
%][% normalized_isbn %]" target="_blank"><img alt="See Baker &amp; Taylor" 
src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>[% ELSE %]<a 
href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img 
alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% 
normalized_isbn %]" /></a>[% END %][% END %][% END %]
     </div>
 
-- 
1.7.4.1

_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha-community.org
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/

Reply via email to