1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-06-08 11:20:07 +02:00

ALTO: Support more ALTO versions

This commit is contained in:
Gerber, Mike 2022-05-10 18:15:35 +02:00
parent 4bb3379ab1
commit 937e7d74eb

View file

@ -228,8 +228,9 @@ def _to_dict(root, raise_errors):
elif root_name.namespace == "http://www.loc.gov/METS/":
return mets_to_dict(root, raise_errors)
elif root_name.namespace in [
"http://www.loc.gov/standards/alto/ns-v2#",
"http://schema.ccs-gmbh.com/ALTO",
"http://www.loc.gov/standards/alto/",
"http://www.loc.gov/standards/alto/ns-v2#",
]:
return alto_to_dict(root, raise_errors)
else: