worldcat_permalink_from_isbn: Get WorldCat catalog permalinks from ISBNs

View source: R/the-web.R

worldcat_permalink_from_isbnR Documentation

Get WorldCat catalog permalinks from ISBNs

Description

Takes a string representation of ISBNs. Returns permalinks to the WorldCat catalog entries using those ISBNs.

Usage

worldcat_permalink_from_isbn(x, normalize = TRUE)

Arguments

x

A string (or vector of strings) of ISBNs

normalize

a logical indicating whether the ISBNs should be normalized prior to creating the permalink (default is TRUE)

Details

If normalize=TRUE and the ISBN is invalid, the permalink is NA. If normalize=FALSE, the permalink may be invalid. No validity check on the URL is performed

Value

Worldcat permalinks using ISBNs.

Examples


worldcat_permalink_from_isbn("1788393724")
# http://www.worldcat.org/isbn/1788393724

worldcat_permalink_from_isbn("0-124-91540-X")
# http://www.worldcat.org/isbn/012491540X

worldcat_permalink_from_isbn("0-124-91540-X", normalize=FALSE)
# http://www.worldcat.org/isbn/0-124-91540-X

# vectorized
worldcat_permalink_from_isbn(c("1788393724", NA, "0-124-91540-X"))


libbib documentation built on Nov. 10, 2022, 6:16 p.m.