caltechlibrary / irdmtools

A Go and Python package for working with InvenioRDM repositories.
https://caltechlibrary.github.io/irdmtools
Other
1 stars 1 forks source link

doi2rdm: move up affiliations #27

Closed tmorrell closed 1 year ago

tmorrell commented 1 year ago

I always miss this one..affiliations needs to be moved up one level so it's the same as person_or_org

 {
                "person_or_org": {
                    "type": "personal",
                    "given_name": "Samuel",
                    "family_name": "Loke",
                    "name": "Lake, Samuel"
                },
                "affiliations": [
                    {
                    "id": "05dxps055",
                    "name": "California Institute of Technology"
                    }
                    ]
            },
rsdoiel commented 1 year ago

On Issue twenty 27, this has gone back and forth a few times. Just want to make sure I’m correct in understanding what is needed. Example is a “creator” object, would the layout be right?

{
    "person_or_org": { ... },
    "role": { ... },
    "affiliations": [  ... ]
}
tmorrell commented 1 year ago

Yup!

rsdoiel commented 1 year ago

Fixed in upcoming v0.0.17 release. NOTE: the "Person" struct still exists for using with people2vocabulary where the affiliation is attached inside the Person object.