ALTO: Support more ALTO versions

master
Gerber, Mike 3 years ago
parent 4bb3379ab1
commit 937e7d74eb

@ -228,8 +228,9 @@ def _to_dict(root, raise_errors):
elif root_name.namespace == "http://www.loc.gov/METS/": elif root_name.namespace == "http://www.loc.gov/METS/":
return mets_to_dict(root, raise_errors) return mets_to_dict(root, raise_errors)
elif root_name.namespace in [ 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/",
"http://www.loc.gov/standards/alto/ns-v2#",
]: ]:
return alto_to_dict(root, raise_errors) return alto_to_dict(root, raise_errors)
else: else:

Loading…
Cancel
Save