]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 17 Nov 2023 07:04:23 +0000 (21:04 -1000)
commit7628952f426db8804ef41fbefc336831dcbcb288
tree6a2e5a9af2ebb2ab66dd68c3d3edf67f0c334b24
parentc8685d088aa03b0e64b073b2db001a2df5335819
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>
(cherry picked from commit 54bdcaef66ef6b121918b8922020a50d1d0177c8)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-MARCdetail.pl