mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
build(metaUpdater): Reorder orcid in CodeMeta
`@id` is usually quite at the top of elements in schema.org style json files. It's usually the canonical identifier for that element. So reorder ORCIDs to the top in those entries.
This commit is contained in:
parent
9f06cfe66b
commit
1b796b80dd
|
@ -17,9 +17,9 @@
|
|||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
"@id": "https://orcid.org/0000-0003-3787-1910",
|
||||
"givenName": "Dennis",
|
||||
"familyName": "Klein",
|
||||
"@id": "https://orcid.org/0000-0003-3787-1910"
|
||||
"familyName": "Klein"
|
||||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
|
@ -92,9 +92,9 @@
|
|||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
"@id": "https://orcid.org/0000-0002-5321-8404",
|
||||
"givenName": "Christian",
|
||||
"familyName": "Tacke",
|
||||
"@id": "https://orcid.org/0000-0002-5321-8404"
|
||||
"familyName": "Tacke"
|
||||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
|
|
|
@ -77,7 +77,7 @@ class CodeMetaManipulator(Manipulator):
|
|||
if entry is None:
|
||||
entry = OrderedDict()
|
||||
entry['@type'] = 'Person'
|
||||
for field in ('givenName', 'familyName', 'email', 'orcid'):
|
||||
for field in ('orcid', 'givenName', 'familyName', 'email'):
|
||||
val = matchdict.get(field, None)
|
||||
if val is not None:
|
||||
if field == 'orcid':
|
||||
|
|
Loading…
Reference in New Issue
Block a user