Montague
Wrapper for the SHERPA/RoMEO API.
Status
Installation
Add this line to your application's Gemfile:
gem 'montague'
And then execute:
$ bundle
Or install it yourself as:
$ gem install montague
Usage
Discover a publisher's copyright and archiving policies by searching for a publisher directly or by searching for a publisher indirectly via a journal.
Journal search
journals = Montague::API::Journal.new
journals = Montague::API::Journal.new api_key: 'YOUR_API_KEY'
Find by journal ISSN
report = journals.find_by_issn '1550-7998'
report.journal
report.publisher
report.publisher.name
report.publisher.conditions
report.publisher.pre_prints
report.publisher.romeo_colour
report.publisher.mandates
report = journals.find_by_issn '1552-3535,0013-1245'
report.journal
report.publisher
Find by journal title
report = journals.find_by_title text: 'modern language', filter: :contains
report.journals.size
report.journals
report.publisher
report = journals.find_by_title text: 'Man', filter: :exact
report.journals.size
report.publisher
Publisher search
publishers = Montague::API::Publisher.new
publishers = Montague::API::Publisher.new api_key: 'YOUR_API_KEY'
Find by publisher name
report = publishers.find_by_name text: 'institute', filter: :exact
report.publishers.size
Find by publisher ID (RoMEO)
report = publishers.find_by_id 10
report.publisher
Search client
client = Montague::API::Client.new
client = Montague::API::Client.new api_key: 'YOUR_API_KEY'
report = client.journals.find_by_issn '1550-7998'
report.publisher
Inspecting reports
report.header
report.http_response