pybliometrics-dev / pybliometrics

Python-based API-Wrapper to access Scopus
https://pybliometrics.readthedocs.io/en/stable/
Other
420 stars 129 forks source link

Add ORCiD ID in AbstractRetrieval #217

Closed astrochun closed 2 years ago

astrochun commented 2 years ago

A query by PID for a publication returns an author list. However, that author list does not contain ORCID.

from pybliometrics.scopus import abstract_retrieval
ab = abstract_retrieval.AbstractRetrieval('10.1016/j.physleta.2020.126262', view='FULL')
ab.authors
[Author(auid=57192676604, indexed_name='Kolmes E.J.', surname='Kolmes', given_name='E. J.', affiliation='60003269'),
 Author(auid=56809243300, indexed_name='Ochs I.E.', surname='Ochs', given_name='I. E.', affiliation='60003269'),
 Author(auid=57210964512, indexed_name='Mlodik M.E.', surname='Mlodik', given_name='M. E.', affiliation='60003269'),
 Author(auid=55944266200, indexed_name='Fisch N.J.', surname='Fisch', given_name='N. J.', affiliation='60003269')]
astrochun commented 2 years ago

It seems that @orcid is stored elsewhere and not within self._json?

Michael-E-Rose commented 2 years ago

It's in ab._json["item"]["bibrecord"]["head"]["author-group"]. Wanna cast a PR? Should be a quick one.

astrochun commented 2 years ago

It's in ab._json["item"]["bibrecord"]["head"]["author-group"]. Wanna cast a PR? Should be a quick one.

Hmm, so I've been mostly using AbstractRetrieval.authors, which does not use the author-group record. It would seem that I would need to use authorgroup property instead.

astrochun commented 2 years ago

Follow-up: I should be able to make a PR, thought probably sometime mid-December.