Skip to contents

Get all DataONE links: real hyperlinks from the paper's own url table, plus a body-text fallback for a BARE DOI mention (routinely cited without any URL scheme at all) using the DOI prefixes of known hosts (see .dataone_hosts()) – the url table only ever contains links the source document itself made clickable. Same two-tier approach zenodo_links() uses.

Usage

dataone_links(paper)

Arguments

paper

a paper object or paperlist object

Value

a table with the DataONE url in the first (text) column

Details

Unlike the single-host archive modules, a DataONE citation only resolves to a specific member node's own API (see the file-level note in archive-dataone.R) – a host neither listed by domain nor identifiable by its DOI prefix is not one this package can currently query, even if it is a real DataONE member node.

Examples

paper <- demopaper()
dataone_links(paper)
#> # A tibble: 0 × 7
#> # ℹ 7 variables: href <chr>, link_text <chr>, text_id <int>, paper_id <chr>,
#> #   dataone_url <chr>, dataone_host <chr>, dataone_pid <chr>