dash_mp_components.CrossrefCard

class dash_mp_components.CrossrefCard(id: str | dict | None = None, className: str | None = None, crossrefEntry: Any | None = None, identifier: str | None = None, errorMessage: str | None = None, preventOpenAccessFetch: bool | None = None, **kwargs)[source]

Bases: Component

A CrossrefCard component. Parses a crossref entry or fetches a reference from the crossref API and renders a BibCard.

Keyword arguments:

  • id (string; optional):

    The ID used to identify this component in Dash callbacks.

  • className (string; optional):

    Class name(s) to append to the component’s default class.

  • crossrefEntry (boolean | number | string | dict | list; optional):

    A single bib object in crossref format. If a crossEntry is supplied, a request will not be made to the crossref API. The following bib values are parsed from a Crossref API response: title, authors, year, doi, journal.

  • errorMessage (string; optional):

    Error message to show inside the card if the crossref request fails @default ‘Could not find reference’.

  • identifier (string; optional):

    Either a DOI or bibtex string to use to search against the Crossref /works endpoint. An identifier must be supplied if you are not supplying the crossrefEntry directly.

  • preventOpenAccessFetch (boolean; optional):

    Set to True to prevent dynamically fetching a link to a free PDF of each reference (using the “doi” field for individual bib entry). NOTE: the open access URL can also be included in a bib entry in the “openAccessUrl” property. If set, the URL will not be fetched. @default False.

__init__(id: str | dict | None = None, className: str | None = None, crossrefEntry: Any | None = None, identifier: str | None = None, errorMessage: str | None = None, preventOpenAccessFetch: bool | None = None, **kwargs)

Methods

__init__([id, className, crossrefEntry, ...])

to_plotly_json()

Attributes

REQUIRED

UNDEFINED

available_wildcard_properties