Skip to contents

For each record with a DOI, attempts to retrieve the full acknowledgment section from the article's full text via the Elsevier TDM API (https://api.elsevier.com/content/article/doi/), which returns structured XML including a <ce:acknowledgment> element. Requires a Scopus API key; an institutional token (SCOPUS_INSTTOKEN) extends access to off-campus subscriptions. Returns NULL for non-Elsevier DOIs or non-subscribed content.

Usage

pc_fetch_acknowledgments(pubs, api_key = NULL, ...)

Arguments

pubs

A tibble::tibble() returned by any pc_search_*() function, conforming to the standard pubclassify schema.

api_key

Character. Scopus/Elsevier API key used for the TDM API. Falls back to the value set with pc_configure(), then the SCOPUS_API_KEY environment variable. If no key is found, the Elsevier TDM step is skipped and only Europe PMC is tried.

...

Reserved for future use.

Value

The input tibble with an acknowledgment character column appended. Values are NA where acknowledgment text could not be retrieved.

Details

Records for which the Elsevier TDM API returns no text are left as NA.

Examples

if (FALSE) { # \dontrun{
pubs <- pc_search_scopus("California Natural Resources Agency",
                         field = "funder")
pubs <- pc_fetch_acknowledgments(pubs)
pubs[!is.na(pubs$acknowledgment), c("doi", "acknowledgment")]
} # }