1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-08-16 13:09:53 +02:00

🧹 MODS: Handle mods:languageTerm with authority=iso639-2/rfc3066

This commit is contained in:
Gerber, Mike 2025-08-07 20:29:40 +02:00
parent 5f1c1f68a7
commit 64aafbb88c
2 changed files with 13 additions and 0 deletions

View file

@ -255,6 +255,7 @@ def mods_to_dict(mods, raise_errors=True):
elif tag == "{http://www.loc.gov/mods/v3}languageTerm":
value["languageTerm"] = (
TagGroup(tag, group)
.fix_language_term()
.has_attributes({"authority": "iso639-2b", "type": "code"})
.text_set()
)