[Koha-bugs] [Bug 9580] Cover image from Coce, a remote image URL cache

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 29 07:51:54 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580

--- Comment #42 from Frédéric Demians <frederic at tamil.fr> ---
> But perhaps the IF/ELSE split may be necessary. I've asked the mailing list.

I can alternatively propose:

[% IF Koha.Preference('CoceProviders') %]
 [% SET coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn
%]
 [% IF ( coce_id ) %]
  <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[%
coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
 [% ELSE %]
  <span class="no-image">No cover image available</span>
 [% END %]
[% END %]

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list