Support mods:partName

Fixes gh-6.
master
Gerber, Mike 3 years ago
parent 9227575555
commit 08082d5fe8

@ -294,6 +294,8 @@ def mods_to_dict(mods, raise_errors=True):
.is_singleton().has_no_attributes().descend(raise_errors) .is_singleton().has_no_attributes().descend(raise_errors)
elif tag == '{http://www.loc.gov/mods/v3}title': elif tag == '{http://www.loc.gov/mods/v3}title':
value['title'] = TagGroup(tag, group).is_singleton().has_no_attributes().text() 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': elif tag == '{http://www.loc.gov/mods/v3}subTitle':
value['subTitle'] = TagGroup(tag, group).force_singleton().has_no_attributes().text() value['subTitle'] = TagGroup(tag, group).force_singleton().has_no_attributes().text()
elif tag == '{http://www.loc.gov/mods/v3}note': elif tag == '{http://www.loc.gov/mods/v3}note':

Loading…
Cancel
Save