METS: Last mets node is always skipped
When trying to import something like
METS Sample
<div ID="DIV.14" TYPE="TITLESECTION" ORDER="1">
<div ID="DIV.15" TYPE="HEADLINE" ORDER="1">
<fptr>
<seq>
<area BETYPE="IDREF" FILEID="ocr.1" BEGIN="PAG_1_TB000001"/></seq>
</fptr>
</div>
</div>
The DIV.15
element will be skipped. The Element referencing "PAG_1_TB000001" will be linked to the one referencing "DIV.14".
Offending lines are in METS parsing. In the end, we publish on element.parent_id
and link the ALTO element to this one. We should instead get_or_create the element of DIV.15
and link the ALTO element to it.