1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-08-14 12:09:52 +02:00

🧹 MODS: Warn if we see the incorrect tag 'mods:origininfo'

This commit is contained in:
Gerber, Mike 2025-08-07 20:48:13 +02:00
parent 64aafbb88c
commit 91502c519d

View file

@ -331,6 +331,8 @@ def mods_to_dict(mods, raise_errors=True):
value["issuance"] = (
TagGroup(tag, group).is_singleton().has_no_attributes().text()
)
elif tag == "{http://www.loc.gov/mods/v3}origininfo":
warnings.warn("Ignoring invalid tag origininfo (should be originInfo)")
else:
if raise_errors:
raise ValueError('Unknown tag "{}"'.format(tag))