]> git.koha-community.org Git - koha.git/commit
Bug 35558: Do not retrieve the local image if none exists
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 13 Dec 2023 10:10:24 +0000 (11:10 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 24 May 2024 08:00:43 +0000 (10:00 +0200)
commit1ac5466bc234ac1f668dff655fe7c68bd797f904
treee6667ebe4138bce4aaa2a9b160efc0d707c1f5c8
parent813d06de274ed243ba38220e2b9e9f03372baddf
Bug 35558: Do not retrieve the local image if none exists

On the search results we are fetching the thumbnails of the local cover
images using catalogue/image.pl
Which means 1 GET per results on the page.

This patch suggests to have this information beforehand in order to
reduce the number of hits and network traffic?

However the page load will be slightly slower ofc.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 8cde45e0723a4b34bdf26c7ef4cfd2d8e767c837)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
catalogue/search.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt