From 46ae2754aaa13b1c0096a52ca0ea77844902a1fe Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 25 Jul 2012 14:05:00 -0400 Subject: [PATCH] Bug 8496 - show local cover images on lists view in opac Adding display of local cover images to lists view. Also adding display of OpenLibrary covers since those were also missing. Signed-off-by: Nicole C. Engard Tested with local cover images and with other cover images. Lists work as expected with all services. Signed-off-by: Paul Poulain --- koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt index 18f3da5893..52f8717b7f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt @@ -147,6 +147,8 @@ $(function() { return false; }); [% END %] + [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %] + [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] }); function Check(f) { @@ -408,6 +410,7 @@ $(function() { + [% IF ( OPACLocalCoverImages ) %][% END %] [% IF ( OPACAmazonCoverImages ) %][% IF ( itemsloo.normalized_isbn ) %][% ELSE %]No cover image available[% END %][% END %] [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %] @@ -416,6 +419,7 @@ $(function() { [% END %][% END %][% END %] [% IF ( GoogleJackets ) %][% IF ( itemsloo.normalized_isbn ) %]
[% ELSE %]No cover image available[% END %][% END %] + [% IF OpenLibraryCovers %][% IF itemsloo.normalized_isbn %][% ELSE %]No cover image available[% END %][% END %]
[% IF ( BakerTaylorEnabled ) %][% IF ( itemsloo.normalized_isbn ) %]See Baker & Taylor[% ELSE %]No cover image available[% END %][% END %] -- 2.39.5