loc_permalink_from_lccn | R Documentation |
Takes a string representation of an LCCNs. Returns permalinks to the Library of Congress catalog entries using those LCCNs.
loc_permalink_from_lccn(x, normalize = TRUE, format = "")
x |
A string (or vector of strings) of LCCNs |
normalize |
a logical indicating whether the LCCN should be
normalized prior to creating the permalink
(default is |
format |
One of "", "marcxml", "mods", "mads", or "dublin" to return the link to the main permalink page, or the link directly to the record's MARCXml, MODS, MADS, or Dublin Core representation, respectively. |
If normalize=TRUE and the LCCN is invalid, the permalink is NA. If normalize=FALSE, the permalink may be invalid. No validity check on the URL is performed
Library of Congress permalinks using LCCNs.
loc_permalink_from_lccn("n78-890351") # "https://lccn.loc.gov/n78890351"
loc_permalink_from_lccn("85-2 ") # "https://lccn.loc.gov/85000002"
loc_permalink_from_lccn("75-425165//r75") # "https://lccn.loc.gov/75425165"
# vectorized
loc_permalink_from_lccn(c("###78890351#", NA, "n78-890351"))
# MARCXML metadata format
loc_permalink_from_lccn("73167510", format="marcxml")
# "https://lccn.loc.gov/73167510/marcxml"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.