Bug 29803: Prevent local cover image to be hidden if Coce is enabled
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 Jan 2022 11:19:54 +0000 (12:19 +0100)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Feb 2022 13:31:37 +0000 (08:31 -0500)
commitc7d350b5104e8421606d8dd56ca120c4f5625f4c
tree8da465af3150e49a28aa644c5f0a3ee14fa21b2d
parent2cd93d8ea6cab9ba189fc6946ddf1e1fd3619067
Bug 29803: Prevent local cover image to be hidden if Coce is enabled

If Coce is enabled by no image are returned by the service, then no
other image will be displayed (actually un-hidden)

The getURL is returning early if no image is returned by the service and
the "done" flag is never set.

Test plan:
Add a local cover image to a bibliographic record (ktd biblionumber=14
is good)
Set CoceHost = http://coce.bywatersolutions.com
Select all CoceProviders
Enable OpacCoce

=> If no image is returned by Coce then the local image should be
displayed anyway

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/js/coce.js