[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 12:49:31 CET 2014


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

--- Comment #43 from M. Tompsett <mtompset at hotmail.com> ---
(In reply to Frédéric Demians from comment #42)
> 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 %]

I think that would work. Though,
http://template-toolkit.org/docs/manual/Syntax.html#section_Implicit_Directives_GET_and_SET
implies that SET is not necessary.

Remember, this type of fix is required in more than one location in the code.
:)

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


More information about the Koha-bugs mailing list