CrossRefOrcid.format_references

CrossRefOrcid.format_references(ref_data, style='APA')[source]

Formats multiple references in a given citation style.

Parameters:
  • ref_data (list | dict | Iterable) – A collection of reference dictionaries or a single reference.

  • style (str) – The citation style to use; defaults to 'APA'.

Returns:

A list of formatted citation strings.

Return type:

list[str]

Examples:

>>> from pyhelpers.ops import CrossRefOrcid
>>> co = CrossRefOrcid()
>>> orcid_id = '0000-0002-6502-9934'
>>> ref_data = co.fetch_orcid_works(orcid_id)  # Past two years
>>> references = co.format_references(ref_data, style='APA')
>>> references[-1]
'Fu, Q., Easton, J.M., Burrow, M.P.N. (2024). Development of an Integrated Computing...