Intranet counterpart patch. Same check as in opac/opac-showmarc.
Test plan:
[1] Run 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>
Passes koha-qa.pl, works as advertised.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
else {
$record =GetMarcBiblio($biblionumber);
}
+if(!ref $record) {
+ print $input->redirect("/cgi-bin/koha/errors/404.pl");
+ exit;
+}
if($view eq 'card') {
my $themelang = '/' . C4::Templates::_current_language();