hathi_bib: HathiTrust bibliographic API

View source: R/hathi_bib.r

hathi_bibR Documentation

HathiTrust bibliographic API

Description

HathiTrust bibliographic API

Usage

hathi_bib(oclc = NULL, lccn = NULL, issn = NULL, isbn = NULL,
  htid = NULL, recordnumber = NULL, ids = list(), which = "brief",
  searchfor = "single", ...)

Arguments

oclc

OCLC Number. Will be normalized to just digits.

lccn

Will be normalized as recommended

issn

Will be normalized to just digits

isbn

Will be normalized to just digits (and possible trailing X). ISBN-13s will be left alone; ISBN-10s will search against both the ISBN-10 and the ISBN-13

htid

The HathiTrust Volume ID of a particular volume (e.g., mdp.39015058510069)

recordnumber

The 9-digit HathiTrust record number, as described above.

ids

A list of length 1 or more, with lists or vectors inside with many ids to search for

which

(character) One of brief or full.

searchfor

(character) One of single or many.

...

Further args passed on to httr::GET, see examples

See Also

hathi for description of the output of this function.

Examples

## Not run: 
# Search for a sinlge item by single identifier
hathi_bib(oclc=424023)
hathi_bib(oclc=424023, which='full')
hathi_bib(htid='mdp.39015058510069')
hathi_bib(lccn='21019671')
hathi_bib(recordnumber='009585561')
hathi_bib(issn='9781149102480')

# Search for a single item by many identifiers
hathi_bib(htid='BJD1', oclc=424023, isbn='0030110408')
hathi_bib(htid='BJD1', oclc=424023, isbn='0030110408', which='full')

# Search for many items by a single identifier each
hathi_bib(lccn='70628581', isbn='0030110408', searchfor='many')

# Search for many items by many identifiers each
hathi_bib(ids=list(list(htid='BJD1', oclc=424023, isbn='0030110408'),
                   list(lccn='70628581', isbn='0030110408')), searchfor='many')

# Curl debugging
hathi_bib(oclc=424023, config=verbose())

## End(Not run)

ropensci/rmetadata documentation built on May 18, 2022, 6:41 p.m.