add_archive_url: Add archive URLs from "Robust Link" attachments

View source: R/items.R

add_archive_urlR Documentation

Add archive URLs from "Robust Link" attachments

Description

Adds a top-level column archiveUrl extracted from the item's corresponding Zotero Robust Links attachment.

Usage

add_archive_url(items)

Arguments

items

A list or data frame of Zotero library items as returned by items(). Must include all of the fields/columns parentItem, itemType and title.

Details

An example of a "Robust Link" attachment can be viewed via this link.

Value

A tibble.

See Also

Other Zotero items functions: as_item_tibble(), items(), write_bib()

Examples

library(magrittr)

# fetch some demo entry
items(key = "AZBJE3R8", user = zotero_group_id(4603023)) %>%
  # add archive link
  add_archive_url() %>%
  # drop "Robust Link" attachment
  dplyr::filter(!(itemType == "attachment" & title == "Robust Link")) %>%
  # show columns
  dplyr::select(key, url, archiveUrl)

mbojan/zoterro documentation built on Oct. 18, 2023, 12:10 p.m.