Bugzilla – Attachment 48401 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]
Bug 15294 - Coce not enabled on lists
Bug-15294---Coce-not-enabled-on-lists.patch (text/plain), 2.74 KB, created by
Nick Clemens (kidclamp)
on 2016-02-26 14:49:29 UTC
(
hide
)
Description:
Bug 15294 - Coce not enabled on lists
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-02-26 14:49:29 UTC
Size:
2.74 KB
patch
obsolete
>From 941ba12b0514a9e0b49b5f781d726a55585073b7 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 26 Feb 2016 14:46:45 +0000 >Subject: [PATCH] Bug 15294 - 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 >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >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 0149553..86e40b7 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -330,6 +330,16 @@ > [% END %] > [% END %] > >+ [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %] >+ [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.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> >@@ -937,6 +947,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