Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API documentation - described affiliation doesn't match observed metadata #573

Open
adam-rehin opened this issue May 16, 2022 · 0 comments

Comments

@adam-rehin
Copy link

Documentation of affiliation: https://github.com/CrossRef/rest-api-doc/blob/master/api_format.md#affiliation describes ONLY the 'name' field.

However, I have observed more complex results - for example (for 'DOI': '10.14232/ejqtde.2022.1.14'):

            'affiliation': [{
                    'name': 'Changsha University of Science and Technology'
                }, {
                    'id': [{
                            'id': 'https://ror.org/03yph8055',
                            'id-type': 'ROR',
                            'asserted-by': 'publisher'
                        }
                    ],
                    'department': ['School of Mathematics and Statistics']
                }, {
                    'name': 'Hunan Provincial Key Laboratory of Mathematical Modeling and Analysis in Engineering',
                    'place': ['Changsha, Hunan,   P. R. China']
                }
            ]

One thing I've noticed (from a relatively small result set) is that the 'id' array always seems to be provided in a separate object; however it would be more useful if it could be provided within the same object as the 'name' that it is related to, the same applies to the 'department' and other fields. In this way there would be a single object per affiliation - which would assist in handling true multiple affiliations (i.e. where an author is associated with more than 1 institution).

Please can the documentation be updated to reflect all possible fields in the affiliation object, including a definition of what each field contains.

It would be particularly helpful to understand any relationship between your affiliation data-model and the JATS XML schema, which can provide the granularity of information shown below in a JSON representation of relevant JATS XML elements https://jats.nlm.nih.gov/publishing/tag-library/1.3/element/aff.html:

                   /** JSON representation of JATS <aff> XML structure **/
                    "affiliations": [ {
                        "identifier" : [{
                            "type" : "<institution-id institution-id-type='ROR'>",
                            "id" : "<institution-id institution-id-type='ROR'>id-value"
                        }],
                        "org": "<institution> ",
                        "dept": "<institution  content-type='dept'>",
                        "street": ["<addr-line>"],
                        "city": "<city>",
                        "state": "<state>",
                        "postcode": "<postal-code>",
                        "country": "<country>",
                        "country_code": "<country country="EN">"
                        }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant