Handle cross-references to missing objects when importing JATS XML
When creating new IDs while importing JATS XML, in the rewriteIDs
function in src/transformer/jats-importer.ts
, the referencedObject
property of AuxiliaryObjectReference
will still contain the original ID if the referenced object isn't found, which will cause it to fail syncing.
If the referenced object isn't found, the AuxiliaryObjectReference
object should probably be removed, and the model that points to it should be updated.