]> 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)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 26 Mar 2014 07:12:51 +0000 (20:12 +1300)
commit3e9986ec181604509b3ef596932031c6980449b1
tree4f3f6f93dc292bf2fb58d79f47a9e0a4cce34277
parent72a69633fc15458032153476dde47d0ed3204c1a
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>
(cherry picked from commit 5d4a6bb712fe2d4b6179cc15eaf29cda2676b547)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-showmarc.pl