]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 17 Jan 2014 15:26:35 +0000 (15:26 +0000)
commit80bcbd798991eaa57bcc7b5ac8906b276fbed5bf
tree97c151b555d4d04c66ef6799f1cab7f8e45739ba
parent8c648bddf15f25973a361439f0842d89318e2a81
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>
opac/opac-showmarc.pl