Skip to content

Quick Start

bmckinney edited this page Mar 1, 2017 · 1 revision

Install and load ebsco-eds in an IRB session:

$ [sudo] gem install ebsco-eds
$ irb
>> require 'ebsco/eds'

Create a session:

session = EBSCO::EDS::Session.new({:user=>'user', :pass=>'secret', :profile=>'edsapi'})

Perform a simple search:

results = session.simple_search('volcano')
results.stat_total_hits
 => 1519176 

Get a search result:

record = results.records.first
record.title
 => "Turmoil at Turrialba Volcano (Costa Rica): Degassing and eruptive processes inferred from high-frequency gas monitoring" 
record.plink
 => "http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsswe&AN=edsswe.oai.publications.lib.chalmers.se.245269" 

Retrieve a record by database ID and accession number:

record = session.retrieve({dbid: 'asn', an: '112761583'})
record.title
 => "What Makes a Story."