Skip to content

Files

Latest commit

478b2c2 · Jul 17, 2019

History

History
28 lines (21 loc) · 800 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 800 Bytes

SierraPostgresUtilities::Argot

sierra_postgres_utilities gem addon to allow programmatic access to Argot for a Sierra bib record (or TRLN Discovery bib).

Installation

bundle install
bundle exec rake install

Usage

require 'sierra_postgres_utilities/argot'

bib = Sierra::Data::Bib.first
bib.argot
  #=> {"record_data_source"=>["ILSMARC"], "publication_year"=>[1976],
  #    "date_cataloged"=>["2004-10-01T04:00:00Z"], "language"=>["English"],
  #    "lang_code"=>["eng"], "publisher"=>[{"value"=>"Black Sparrow Press"}],
  #    "names"=>[{"name"=>"Kelly, Robert, 1935-", "type"=>"creator"}], ...

trln = bib.trln_discovery_record
trln.argot
  #=> same as above