jst_get_book: Extract meta information for books

View source: R/books.R

jst_get_bookR Documentation

Extract meta information for books

Description

jst_get_book() extracts meta-data from JSTOR-XML files for book chapters.

Usage

jst_get_book(file_path)

Arguments

file_path

A .xml-file for a book or research report.

Value

A tibble containing the extracted meta-data with the following columns:

  • file_name (chr): The filename of the original .xml-file. Can be used for joining with other data for the same file.

  • discipline (chr): The discipline from the discipline names used on JSTOR.

  • book_id (chr): The book id of type "jstor", which is not a registered DOI.

  • book_title (chr): The title of the book.

  • book_subtitle (chr): The subtitle of the book.

  • pub_day (int): Publication day, if specified.

  • pub_month (int): Publication month, if specified.

  • pub_year (int): Year of publication.

  • isbn (chr): One or more entries for the book's ISBN. If two or more, separated by "; ".

  • publisher_name (chr): The name of the publisher.

  • publisher_loc (chr): The location of the publisher.

  • n_pages (int): The number of pages.

  • language (chr): The language of the book.

A note about publication dates: always the first entry is being extracted, which should correspond to the oldest date, in case there is more than one date.

Examples

jst_get_book(jst_example("book.xml"))

jstor documentation built on Aug. 16, 2023, 5:09 p.m.