Open phochste opened 7 years ago
Also other errors in the leader will generate illegal ISO ouput. E.g. leader ^^^^^nam^^22^^^^^^a^^4500
(too many positions before nam
)
We are getting this error when converting data from MARC/XML to ISO MARC.
Is there a way to make Catmandu ignore the records with errors and continue processing other records?
In Catmandu we are very dependent on the capabilities of the underlying parser. For, MARC/XML skipping of records needs to be supported by MARC::File::XML, which is by itself dependent on XML::LibXML. As far as I know, XML parsers can't skip XML with syntax errors. These errors can't be recovered.
I don't know if MARC::File::XML supports skipping records that are syntactically valid XML, but not valid MARC/XML.
Errors in the field length of the leader will crash the Catmandu::Exporter::MARC::ISO with an error message
There could be a more informative message given.