artefactual-labs / mets-reader-writer

Library to parse and create METS files, especially for Archivematica.
https://mets-reader-writer.readthedocs.io
GNU Affero General Public License v3.0
20 stars 13 forks source link

MDWrap constructable with etree._Element or list #26

Closed jrwdunham closed 7 years ago

jrwdunham commented 7 years ago

Prior to this, metsrw was unable to handle mets:mdWrap/mets:smlData elements containing multiple children: it expected a single child or else it failed. However, this is problematic because namespace-less metadata (i.e., from a metadata.csv file) can result in many such children. This breaks re-ingest of AIPs with such descriptive metadata (refs issue #11100).