Koha/catalogue
Jonathan Druart 5f43478512
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>
2023-07-10 15:43:14 -03:00
..
detail.pl Bug 33497: Don't get host items if the MARC record is invalid 2023-07-07 12:12:43 -03:00
export.pl Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
getitem-ajax.pl
image.pl Bug 33047: Return 404 instead of 500 when biblio does not exist 2023-07-10 15:43:14 -03:00
imageviewer.pl
ISBDdetail.pl
issuehistory.pl
item-export.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
itemsearch.pl Bug 31253: Item search in staff interface should call barcodedecode if the search index is a barcode 2023-07-03 10:35:03 -03:00
labeledMARCdetail.pl
MARCdetail.pl Bug 31535: Fix warning - uninitialized value in string ne (MARCdetail.pl) 2022-09-12 16:16:28 -03:00
moredetail.pl Bug 33788: Limit the number of old issues rows returned 2023-05-30 08:27:55 -03:00
search-history.pl
search.pl Bug 33896: Check whether index is defined before string match 2023-06-23 10:01:03 -03:00
showelastic.pl Bug 18829: (QA follow-up) Replace forbidden indirect syntax 2023-04-17 09:39:42 -03:00
showmarc.pl Bug 30779: Remove _update_import_record_marc and update tests 2022-08-18 09:02:04 -03:00
stockrotation.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
updateitem.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00