]> git.koha-community.org Git - koha.git/commit
Bug 11329: Check for MARC record existence in opac-showmarc
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 2 Dec 2013 08:30:13 +0000 (09:30 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 25 Mar 2014 11:16:59 +0000 (12:16 +0100)
commit5d4a6bb712fe2d4b6179cc15eaf29cda2676b547
treeda66841b7af42408517dfec07cdc777ce5253e0c
parent6c6a9ada72451f74d79cc458a081e23c3da07963
Bug 11329: Check for MARC record existence in opac-showmarc

Instead of just running as_formatted, check if GetMarcBiblio returned
a reference. If you e.g. did not pass an id, return 404 instead of 500.
Consistent with opac-export.pl

Test plan:
[1] Run opac-showmarc.pl with valid biblionumber in id parameter.
[2] Remove id parameter from URL. You should get a 404 now.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 80bcbd798991eaa57bcc7b5ac8906b276fbed5bf)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-showmarc.pl