@@ -, +, @@ --- Koha/Import/Oaipmh.pm | 3 +++ Koha/REST/V1/Import/Oaipmh/Biblios.pm | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/Koha/Import/Oaipmh.pm +++ a/Koha/Import/Oaipmh.pm @@ -124,6 +124,7 @@ sub process_metadata { $skipped++; } }; + warn $@ if $@; } elsif ($deleted){ eval { C4::Biblio::DelBiblio($record->biblionumber); @@ -134,6 +135,7 @@ sub process_metadata { #}); $deleted++; }; + warn $@ if $@; } } else { #NOTE: Having metadata and being deleted should be mutually exclusive, @@ -154,6 +156,7 @@ sub process_metadata { })->store; $added++; }; + warn $@ if $@; } } } --- a/Koha/REST/V1/Import/Oaipmh/Biblios.pm +++ a/Koha/REST/V1/Import/Oaipmh/Biblios.pm @@ -55,8 +55,6 @@ sub import_biblios { records => $records, frameworkcode => $frameworkcode, }); - use Data::Dumper; - warn Dumper($results); } else { return $c->render( status => 400, openapi => { error => "Records not found." } ); } --