fabiobatalha / crossrefapi

A python library that implements the Crossref API.
BSD 2-Clause "Simplified" License
265 stars 44 forks source link

Affiliation missing #26

Closed raffaem closed 4 years ago

raffaem commented 4 years ago

When I search for a DOI, the affiliations for the authors are missing. Example

from crossref.restful import Works
import json

doi = "10.1016/j.jbusvent.2019.105970"
works = Works()
res = works.doi(doi)

with open("doi.json","w", encoding="utf8") as fileh:
    json.dump(res, fileh, ensure_ascii=False, indent=4, sort_keys=True)

The relevant rows in the output file doi.json are:

"author": [
        {
            "affiliation": [],
            "family": "Douglas",
            "given": "Evan J.",
            "sequence": "first"
        },
        {
            "affiliation": [],
            "family": "Shepherd",
            "given": "Dean A.",
            "sequence": "additional"
        },
        {
            "affiliation": [],
            "family": "Prentice",
            "given": "Catherine",
            "sequence": "additional"
        }
    ],

with the affiliation of the authors missing

fabiobatalha commented 4 years ago

Hello @raffaem

The quality of the metadata depends on the data source in charge of this DOI registry.