sierra_postgres_utilities gem addon to allow programmatic access to Argot for a Sierra bib record (or TRLN Discovery bib).
bundle install
bundle exec rake install
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