Skip to content

IU-Libraries-Joint-Development/pul_metadata_services

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PUL Metadata Services

Circle CI Apache 2.0 License

A client and set of convenience methods for retrieving metadata from PUL.

Installation

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

Usage

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."]

Contributing

  1. Fork it ( https://github.com/[my-github-username]/pul_metadata_services/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%