Bug 29172: Make CustomCoverImagesURL compatible with control fields
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 5 Oct 2021 11:57:04 +0000 (13:57 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 23 Oct 2021 01:40:03 +0000 (15:40 -1000)
commit7c77b7c95f19467ee40a3dc97a2f2c9f005ead12
tree2a51b5246af5af71a9785908a0a2cc2270e908ef
parent35f6aafc3a6d23d3a646845fc7d31e8f7ffdbe62
Bug 29172: Make CustomCoverImagesURL compatible with control fields

Bug 22445 added CustomCoverImagesURL that deals with MARC fields, but
control fields were not supported.

Test plan:
Turn CustomCoverImages on
Fill CustomCoverImagesURL with https://covers.openlibrary.org/b/isbn/{006}-M.jpg
Add an isbn in 006 (0596001738 will work)
Go to the detail page of the bibliographic record and confirm that you
see a cover image.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 931ef856f9bf1ed1bdba828a66af5e099b792c3c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Biblio.pm
t/db_dependent/Koha/Biblios.t