File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ def customize_schema(json_record):
6666 if 'nameIdentifiers' in a :
6767 for n in a ['nameIdentifiers' ]:
6868 if n ['nameIdentifierScheme' ]== "ORCID" :
69- new ['authorIdentifiers' ]= {"authorIdentifier" :n ["nameIdentifier" ],
70- "authorIdentifierScheme" : "ORCID" }
69+ new ['authorIdentifiers' ]= [ {"authorIdentifier" :n ["nameIdentifier" ],
70+ "authorIdentifierScheme" : "ORCID" }]
7171 newa .append (new )
7272 json_record ['authors' ]= newa
7373
@@ -79,8 +79,8 @@ def customize_schema(json_record):
7979 if 'nameIdentifiers' in c :
8080 for n in c ['nameIdentifiers' ]:
8181 if n ['nameIdentifierScheme' ]== "ORCID" :
82- new ['contributorIdentifiers' ]= {"contributorIdentifier" :n ["nameIdentifier" ],
83- "contributorIdentifierScheme" :"ORCID" }
82+ new ['contributorIdentifiers' ]= [ {"contributorIdentifier" :n ["nameIdentifier" ],
83+ "contributorIdentifierScheme" :"ORCID" }]
8484 if 'affiliations' in c :
8585 astr = ''
8686 for afname in c ['affiliations' ]:
You can’t perform that action at this time.
0 commit comments