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

METS file with uppercase PHYSICAL and LOGICAL structMap #92

Open kwon-young opened 2 years ago

kwon-young commented 2 years ago

Hello,

I'm trying to parse METS file from the bnf (the French national library) and they use uppercase PHYSICAL and LOGICAL type for structMap.

This library fails to read such a file, saying no structmap were found.

I suppose the easy fix would be to modify the METS files and lowercase all PHYSICAL and LOGICAL attributes, but I was wondering if metsrw could be improved to take into account this corner case ?

Thank you for your help.

PS: here is the file https://pastebin.com/DT6grTEe