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:
parent
64aafbb88c
commit
91502c519d
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue