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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 22 Feb 2022 01:15:47 +0000 (15:15 -1000)
commit1513cd66b68b83614712c9f22947c03eec98d296
tree6893e16832c3ba979c8090741a6a3ee927147c57
parent450b629ed3554d893830414be8d2c6c9a96ea69f
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>
koha-tmpl/opac-tmpl/bootstrap/js/coce.js