Skip to content

Ruby gem addon to access Argot for a Sierra (or TRLN Discovery) bib

Notifications You must be signed in to change notification settings

UNC-Libraries/sierra-postgres-utilities-argot

Repository files navigation

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

About

Ruby gem addon to access Argot for a Sierra (or TRLN Discovery) bib

Resources

Stars

Watchers

Forks

Packages

No packages published