From 08082d5fe8f11bbea0b5b1e83fde672e8a58c33b Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 7 Apr 2022 17:37:08 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Support=20mods:partName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes gh-6. --- qurator/modstool/modstool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qurator/modstool/modstool.py b/qurator/modstool/modstool.py index 6df9ee3..4b035ac 100755 --- a/qurator/modstool/modstool.py +++ b/qurator/modstool/modstool.py @@ -294,6 +294,8 @@ def mods_to_dict(mods, raise_errors=True): .is_singleton().has_no_attributes().descend(raise_errors) elif tag == '{http://www.loc.gov/mods/v3}title': value['title'] = TagGroup(tag, group).is_singleton().has_no_attributes().text() + elif tag == '{http://www.loc.gov/mods/v3}partName': + value['partName'] = TagGroup(tag, group).is_singleton().has_no_attributes().text() elif tag == '{http://www.loc.gov/mods/v3}subTitle': value['subTitle'] = TagGroup(tag, group).force_singleton().has_no_attributes().text() elif tag == '{http://www.loc.gov/mods/v3}note':