Koha/catalogue
Nick Clemens 8fdddccffb
Bug 37425: Check for existence of biblio object before fetching cover images
This patch simply adds a conditional to ensure the biblio object has been retrieved and assumes no cover images otherwise

To test:
 1 - Enable system preference LocalCoverImages
 2 - Perform a search in staff interface
 3 - Find the biblionumebr for one of the results and delete it via the SQL backend:
     DELETE FROM biblio WHERE biblionumber=3;
 4 - Search again.
 5 - KO!
     Can't call method "cover_images" on an undefined value at /usr/share/koha/intranet/cgi-bin/catalogue/search.pl line 671.
 6 - Reindex, confirm error is gone
 7 - Apply patch
 8 - Search again
 9 - Delete a record from the results via SQL
10 - Reload and confirm no error
11 - Reindex and repeat search and confirm no error

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-07-25 11:01:29 +01:00
..
detail.pl Bug 37383: Use libraries_where_can_edit_items to check if items are editable 2024-07-25 10:58:38 +01:00
export.pl Bug 36336: (bug 34478 follow-up) Fix export from catalogue detail 2024-03-22 10:35:20 +01:00
getitem-ajax.pl
image.pl Bug 36511: Some scripts missing a dependency following Bug 24879 2024-04-10 09:09:50 +02:00
imageviewer.pl
ISBDdetail.pl
issuehistory.pl
item-export.pl
itemsearch.pl Bug 35294: Fix typos in catalogue code comments 2024-06-13 14:26:22 +01:00
labeledMARCdetail.pl Bug 36834: (Bug 29697 follow-up) Koha explodes when trying to open in Labeled MARC view a bibliographic record with an invalid biblionumber 2024-05-21 13:39:49 +02:00
MARCdetail.pl Bug 36438: Check object for calling metadata 2024-04-12 11:25:59 +02:00
moredetail.pl
search-history.pl
search.pl Bug 37425: Check for existence of biblio object before fetching cover images 2024-07-25 11:01:29 +01:00
showelastic.pl
showmarc.pl
stockrotation.pl Bug 36193: cud- treatment for catalogue/stockrotation.pl 2024-03-12 17:47:32 +01:00
updateitem.pl