A client and set of convenience methods for retrieving metadata from PUL.
Add this line to your application's Gemfile:
gem 'pul_metadata_services'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pul_metadata_services
2.2.1 :001 > require 'pul_metadata_services'
=> true
2.2.1 :002 > record = PulMetadataServices::Client.retrieve('4609321')
=> #<PulMetadataServices::BibRecord:0x00000000eca950 @source="<record [...]
2.2.1 :003 > record.class
=> PulMetadataServices::BibRecord
2.2.1 :004 > record.source
=> "<record xmlns='http://www.loc.gov/MARC21/slim'><leader>01890cam a22 " [...]
2.2.1 :006 > record.title
=> ["Biblia Latina."]
- Fork it ( https://github.com/[my-github-username]/pul_metadata_services/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request