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:
Christian Tacke 2022-09-02 13:01:12 +02:00 committed by Dennis Klein
parent 4b31ea3332
commit 99443d6b13
2 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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':