]> git.koha-community.org Git - koha.git/commit
Bug 35558: Do not retrieve the local image if none exists - OPAC
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 14 Mar 2024 14:01:39 +0000 (15:01 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 26 Apr 2024 16:06:08 +0000 (18:06 +0200)
commit747c9b573b828ee6d38f5085ac6bdbb82f0e3305
treec06839f80e65dce5d9e1e1469108695633075fd3
parent8cde45e0723a4b34bdf26c7ef4cfd2d8e767c837
Bug 35558: Do not retrieve the local image if none exists - OPAC

Test plan:
 1 - Enable system preferences:
     LocalCoverImages
     OPACLocalCoverImages
 2 - open browser tools network page
 3 - Perform an intranet search
 4 - Note a request for each bib like:
    http://localhost:8081/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=35
 5 - Repeat on opac, same requests
 6 - Apply patches
 7 - Restart all
 8 - Repeat searches, note no fetches
 9 - Add local cover images to several biblios in the results
10 - Repeat searches
11 - Note the fetches are only for those records with images
12 - Confirm images still load correctly

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
opac/opac-search.pl