Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

gaurav/biburi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BibURI

Gem Version Continuous Integration Status Coverage Status CodeClimate Dependency Status

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.

Installation

Add this line to your application's Gemfile:

gem 'biburi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install biburi

Usage

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.

Contributing

  1. Fork it
  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 new pull request

Release

Use Git Flow to manage releases, and rake build to build a gem.

About

URI to BibTeX lookup

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages