Get all links to any of the DSpace 7 (or later) installations in
.dspace7_hosts() – see the note at the top of this file for how
they were found and why they need a separate implementation from
dspace_links() (legacy DSpace, archive-psycharchives.R). Real
hyperlinks from the paper's own url table, plus a body-text
fallback for a bare mention that still carries one of these hosts (a bare
handle prefix with no host at all cannot be attributed to a specific
installation – see .dspace7_parse()).
Details
A DOI mentioned in the text is also looked up, and kept when it leads to
one of these installations. The paper's own DOI, and DOIs under a prefix
that another detector handles and no DSpace 7 installation uses (see
.dspace7_skip_doi_prefixes()), are not looked up. The lookup reads the
URL registered for the DOI from doi.org's handle API rather than visiting
the landing page, and each DOI is looked up once per R session.
Examples
paper <- demopaper()
dspace7_links(paper)
#> # A tibble: 0 × 4
#> # ℹ 4 variables: href <chr>, link_text <chr>, text_id <int>, paper_id <chr>
