Bugzilla – Attachment 64163 Details for
Bug 15924
Coce not enabled on lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 15924 - Coce not enabled on lists
SIGNED-OFF-Bug-15924---Coce-not-enabled-on-lists.patch (text/plain), 5.80 KB, created by
Owen Leonard
on 2017-06-09 16:26:58 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 15924 - Coce not enabled on lists
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2017-06-09 16:26:58 UTC
Size:
5.80 KB
patch
obsolete
>From dabf82999dfb2570dc3fca077f03d1bfe396d2b9 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 26 Feb 2016 14:46:45 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 15924 - Coce not enabled on lists > >To test: >Enable Coce and disable other image services >Load a list and not there are no covers >Apply patch >Load a list and note there are covers > >https://bugs.koha-community.org/show_bug.cgi?id=15924 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 20 +++++++++++++++++--- > 1 file changed, 17 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index 0e20fcf..147ae00 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -308,7 +308,7 @@ > > [% IF ( OPACAmazonCoverImages ) %] > [% IF ( itemsloo.normalized_isbn ) %] >- <span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% itemsloo.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" /></span> >+ <span title="[% itemsloo.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% itemsloo.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" /></span> > [% ELSE %] > <span class="no-image">No cover image available</span> > [% END %] >@@ -316,9 +316,9 @@ > > [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] > [% IF ( using_https ) %] >- <span title="[% SEARCH_RESULT.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% itemsloo.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% itemsloo.normalized_upc %]&oclc=[% itemsloo.normalized_oclc %]" alt="" /></span> >+ <span title="[% itemsloo.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% itemsloo.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% itemsloo.normalized_upc %]&oclc=[% itemsloo.normalized_oclc %]" alt="" /></span> > [% ELSE %] >- <span title="[% SEARCH_RESULT.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><img src="http://www.syndetics.com/index.aspx?isbn=[% itemsloo.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% itemsloo.normalized_upc %]&oclc=[% itemsloo.normalized_oclc %]" alt="" /></span> >+ <span title="[% itemsloo.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><img src="http://www.syndetics.com/index.aspx?isbn=[% itemsloo.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% itemsloo.normalized_upc %]&oclc=[% itemsloo.normalized_oclc %]" alt="" /></span> > [% END %] > [% END %] > >@@ -330,6 +330,16 @@ > [% END %] > [% END %] > >+ [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %] >+ [% coce_id = itemsloo.normalized_ean || itemsloo.normalized_isbn %] >+ [% IF ( coce_id ) %] >+ <span title="[% itemsloo.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span> >+ [% ELSE %] >+ <span class="no-image">No cover image available</span> >+ [% END %] >+ [% END %] >+ >+ > [% IF OpenLibraryCovers %] > [% IF itemsloo.normalized_isbn %] > <span title="[% itemsloo.biblionumber %]" class="[% itemsloo.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span> >@@ -935,6 +945,10 @@ $(function() { > [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %] > [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] > [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] >+ [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %] >+ KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]'); >+ [% END %] >+ > $('#sort-submit').hide(); > > [% IF print %] >-- >2.1.4
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 15924
:
48401
|
61287
|
64163
|
64323
|
66691