Koha/catalogue
Jonathan Druart cf31471089
Bug 33047: Return 404 instead of 500 when biblio does not exist
If the biblionumber or the itemnumber passed in parameter does not
exist we should return 404 instead of exploding with a 500.

Test plan:
Attach cover images to biblio and items
Notice that the UI is working correctly (staff and OPAC)
Hit catalogue/image.pl and opac/opac-image.pl with non-existent
biblionumber and imagenumber
Notice that you now get 404 instead of 500

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5f43478512)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-07-18 10:28:24 +01:00
..
detail.pl Bug 33497: Don't get host items if the MARC record is invalid 2023-07-18 10:11:33 +01:00
export.pl
getitem-ajax.pl
image.pl Bug 33047: Return 404 instead of 500 when biblio does not exist 2023-07-18 10:28:24 +01:00
imageviewer.pl
ISBDdetail.pl
issuehistory.pl
item-export.pl
itemsearch.pl Bug 31253: Item search in staff interface should call barcodedecode if the search index is a barcode 2023-07-17 15:50:03 +01:00
labeledMARCdetail.pl
MARCdetail.pl
moredetail.pl
search-history.pl
search.pl Bug 33896: Check whether index is defined before string match 2023-07-17 14:50:30 +01:00
showelastic.pl
showmarc.pl
stockrotation.pl
updateitem.pl