This is a gem to extract BibTeX information for URIs which refer to bibliographic resources, such as DOIs, Biodiversity Heritage Library links, and others.
Currently, BibURI supports the following types of data:
- DOIs (via CrossRef)
- Any web page containing one or more COinS spans.
Add this line to your application's Gemfile:
gem 'biburi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install biburi
BibURI mainly works out of a single method:
require 'biburi'
entry = BibURI::lookup('doi:10.1038/171737a0')
# => [#<BibTeX::Entry identifiers = info:doi/http://dx.doi.org/10.1038/171737a0 http://dx.doi.org/10.1038/171737a0, journal = Nature, pages = 737--738, author = WATSON, J. D. and CRICK, F. H. C., date = 1953, year = 1953, title = Molecular Structure of Nucleic Acids: A Structure for Deoxyribose Nucleic Acid, volume = 171, number = 4356, url = http://dx.doi.org/10.1038/171737a0, doi = 10.1038/171737a0>]
Full documentation is available online at RubyDoc.org.
- Fork it
- 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 new pull request
Use Git Flow to manage releases, and rake build
to build a gem.