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 Bug 34478: Rename action with op - catalogue/search-history 2024-03-01 10:56:38 +01:00
search.pl Bug 37425: Check for existence of biblio object before fetching cover images 2024-07-25 11:01:29 +01:00
showelastic.pl Bug 35618: Remove deprecated parameter "type" from showelastic.pl page 2023-12-28 12:16:12 +01:00
showmarc.pl
stockrotation.pl Bug 36193: cud- treatment for catalogue/stockrotation.pl 2024-03-12 17:47:32 +01:00
updateitem.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00