]> git.koha-community.org Git - koha.git/commit
Bug 35266: Fix biblio check in opac-MARCdetail
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 6 Nov 2023 13:11:49 +0000 (13:11 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 15 Nov 2023 19:07:04 +0000 (16:07 -0300)
commit54bdcaef66ef6b121918b8922020a50d1d0177c8
treef61ba44bdbd96b2582c8a61305d79f9afa267061
parent6a9b6a2e001c481aba79d4a16a4fd8af3712250d
Bug 35266: Fix biblio check in opac-MARCdetail

We should check before retrieving metadata.

Test plan;
Try /cgi-bin/koha/opac-MARCdetail?biblionumber=X
Replace X by a not-existing biblionumber.
Verify that you get a 404 error page.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
JD amended patch: Use ternary op

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/opac-MARCdetail.pl