% Auto-generated: do not edit by hand
\name{crossrefCard}

\alias{crossrefCard}

\title{CrossrefCard component}

\description{
Parses a crossref entry or fetches a reference from the crossref API and renders a BibCard.
}

\usage{
crossrefCard(id=NULL, className=NULL, crossrefEntry=NULL,
errorMessage=NULL, identifier=NULL,
preventOpenAccessFetch=NULL)
}

\arguments{
\item{id}{Character. The ID used to identify this component in Dash callbacks}

\item{className}{Character. Class name(s) to append to the component's default class}

\item{crossrefEntry}{Logical | numeric | character | named list | unnamed list. 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.}

\item{errorMessage}{Character. Error message to show inside the card if the crossref request fails
@default 'Could not find reference'}

\item{identifier}{Character. 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.}

\item{preventOpenAccessFetch}{Logical. 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}
}

\value{named list of JSON elements corresponding to React.js properties and their values}

