We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb4fcac commit 3b38629Copy full SHA for 3b38629
caltech_thesis.py
@@ -79,7 +79,12 @@ def epxml_to_datacite(eprint):
79
new['familyName'] = name['family']
80
newc.append(new)
81
if 'local_group' in eprint:
82
- newc.append({'contributorName':eprint['local_group']['item'],'contributorType':'ResearchGroup'})
+ group_field = eprint['local_group']['item']
83
+ if type(group_field) is str:
84
+ newc.append({'contributorName':group_field,'contributorType':'ResearchGroup'})
85
+ else:
86
+ for group in group_field:
87
+ newc.append({'contributorName':group,'contributorType':'ResearchGroup'})
88
metadata['contributors'] = newc
89
90
metadata['creators'] = newa
0 commit comments