Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart 1ea55acd0c Bug 26921: Don't generate an invalid custom cover image if the url cannot be generated
In case a custom cover image url is used to generate the cover image of
bibliographic records, we should not build one if the record does not
have the necessary data.

For instance if you have
CustomCoverImagesURL set to https://covers.openlibrary.org/b/isbn/{isbn}-M.jpb
and a biblio does not have the isbn defined, we should not generate and
empty image (empty or invalid src)

Test plan:
0.
Set CustomCoverImagesURL to https://covers.openlibrary.org/b/isbn/{isbn}-M.jpb
Enable CustomCoverImages and OPACCustomCoverImages
To highlight the issue you should disable LocalCoverImages and OPACLocalCoverImages.
1. Make sure you have some of your bibliographic records with a valid
isbn
2. Make sure you have at least 1 bibliographic record without an isbn
set
3. Visit the search result and detail views (OPAC and staff interfaces)
=> Without this patch you should see a "Cover image" link, and an empty
block/div on the detail page
=> With this patch applied you should only see images when the url can
be generated

Note that the problem will persist if the isbn is not valid (ie. no
image is generated)

Sponsored-by: Orex Digital
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-12-21 10:07:48 +01:00
..
acqui Bug 26729: Add focus class to vendor name field in vendor add form 2020-11-04 17:32:35 +01:00
admin Bug 26946: Set maxlength for cash register name 2020-12-09 11:23:43 +01:00
authorities Bug 12533: (follow-up) Add CSS to preview display of authority MARC 2020-11-04 12:59:33 +01:00
basket Bug 23852: Merge biblio-title.inc and biblio-default-view.inc 2020-10-08 15:01:29 +02:00
batch
catalogue Bug 26921: Don't generate an invalid custom cover image if the url cannot be generated 2020-12-21 10:07:48 +01:00
cataloguing Bug 27124: JS error "select2Width is not defined" 2020-12-21 10:07:40 +01:00
circ Bug 25534: Add missing td in tfoot in pendingreserves 2020-11-27 09:37:00 +01:00
clubs Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
common Bug 26738: (QA follow-up) Add missing filter 2020-11-04 12:59:32 +01:00
course_reserves Bug 26819: (QA follow-up) authorized_value should be authorised_value 2020-11-25 14:38:11 +01:00
errors
ill Bug 22818: Add generation and sending of notices 2020-11-11 08:35:10 +01:00
installer Bug 24973: Load custom localization file 2020-08-24 12:10:53 +02:00
labels Bug 26806: Remove the jquery.checkboxes plugin from the staff client 2020-11-03 10:57:35 +01:00
mana
members Bug 24083: Add support for unseen_renewals 2020-11-11 16:09:58 +01:00
offline_circ
onboarding Bug 26449: fix web installer typo 2020-10-08 11:36:32 +02:00
patron_lists Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
patroncards Bug 26806: Remove the jquery.checkboxes plugin from the staff client 2020-11-03 10:57:35 +01:00
plugins Bug 25549: Add error reporting to plugins-home 2020-10-22 10:04:30 +02:00
pos Bug 26939: Add missing filters 2020-11-18 15:09:14 +01:00
reports Bug 27142: Don't interpolate batch_type variable 2020-12-09 11:08:20 +01:00
reserve Bug 26988: Add API route to fetch hold pickup locations and use it in the holds table 2020-11-13 14:20:11 +01:00
reviews Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
rotating_collections Bug 23852: Merge biblio-title.inc and biblio-default-view.inc 2020-10-08 15:01:29 +02:00
serials Bug 26846: Fix regressions - Preselect expected and late serials 2020-11-18 09:34:51 +01:00
services
suggestion Bug 26738: (bug 24819 follow-up) Fix manager selection 2020-11-04 12:59:32 +01:00
tags Bug 26806: Remove the jquery.checkboxes plugin from the staff client 2020-11-03 10:57:35 +01:00
test
tools Bug 26336: Add hint before and remove select after staging with no items 2020-12-04 15:40:58 +01:00
virtualshelves Bug 26806: Remove 1 remaining occurrence of jquery.checkboxes.min.js 2020-11-03 10:57:35 +01:00
about.tt Bug 27044: Mark the PayPal integration as deprecated on the user interface 2020-11-24 21:27:59 +01:00
auth.tt Bug 24665: (QA follow-up) Fix selection default 2020-11-06 15:55:17 +01:00
intranet-main.tt Bug 26833: Logged in library doesn't show with suggestions count 2020-11-02 11:03:09 +01:00