@@ -, +, @@ file --- tools/export.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/tools/export.pl +++ a/tools/export.pl @@ -416,9 +416,8 @@ if ( $op eq "export" ) { print "\n"; } else { - my (@result_build_tag) = MARC::File::USMARC::_build_tag_directory($record); - if ($result_build_tag[2] > 99999) { - warn "record (number $recordid) length ".$result_build_tag[2]." is larger than the MARC spec allows (99999 bytes)"; + if (scalar(MARC::File::USMARC->decode( $record->as_usmarc )->warnings())){ + warn "record (number $recordid) is invalid and therefore not exported because its reopening generates warnings above"; next; } print $record->as_usmarc(); --