]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 24 May 2024 08:00:43 +0000 (10:00 +0200)
commit7e834c095adf30a409c50253ccfad00997abf291
tree4ece20cd06229904b4cfeb0e6dd42a988faca057
parent1ac5466bc234ac1f668dff655fe7c68bd797f904
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>
(cherry picked from commit 747c9b573b828ee6d38f5085ac6bdbb82f0e3305)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
opac/opac-search.pl