relaton / relaton-doi

Relaton-DOI: retrieve bibliographic items using DOI
MIT License
0 stars 0 forks source link

Accept prefixed DOI links with DOI identifier (`doi:...`) #4

Closed ronaldtse closed 1 year ago

ronaldtse commented 1 year ago

DOI links are typically prefixed with the "DOI identifier", doi:....

So we should allow this to work:

RelatonDoi::Crossref.get "doi:10.6028/nist.ir.8245"
[relaton-doi] ["10.6028/nist.ir.8245"] fetching...
[relaton-doi] ["10.6028/nist.ir.8245"] found 10.6028/nist.ir.8245
=> #<RelatonNist::NistBibliographicItem:0x00007f9c813b6a58