From 7ed3339e651d547405a5c89b24295e11c77daa80 Mon Sep 17 00:00:00 2001 From: bolkun <bolkun@BDV092.slub-dresden.de> Date: Fri, 30 Apr 2021 13:36:38 +0200 Subject: [PATCH] Fix fallback to k10plusPPN --- bin/slubsipbuilderbagit.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/slubsipbuilderbagit.pl b/bin/slubsipbuilderbagit.pl index bf52e09..b26ea61 100644 --- a/bin/slubsipbuilderbagit.pl +++ b/bin/slubsipbuilderbagit.pl @@ -205,10 +205,7 @@ package SLUB::LZA::SIPBuilderBagIt; SLUB::LZA::SIPBuilderBagIt::write_file("DEBUG_${ppn}_catalog_response.xml", $response->decoded_content); } my $recordData = $xp->findnodes_as_string('/*[local-name()="searchRetrieveResponse"]/*[local-name()="records"]/*[local-name()="record"]/*[local-name()="recordData"]/*'); - if (!$recordData) { - print_scalar_data("", "ERROR: did not get any <recordData/> for PPN '$ppn' using '$sru'", "", "red"); - die(); - } + if (!$recordData) { croak("ERROR: Did not get any <recordData/> for PPN '$ppn' using '$sru'");} my $marc_doc = $parser->parse_string($recordData); add_marc21_schema_location($marc_doc); if ($with_debug) { -- GitLab