citation-file-format / cff-initializer-javascript

Web form to initialize CITATION.cff files.
https://citation-file-format.github.io/cff-initializer-javascript/
Apache License 2.0
21 stars 8 forks source link

Consider collecting information from DOI/crossref API to populate preferred citation #642

Open abelsiqueira opened 2 years ago

abelsiqueira commented 2 years ago

Would it be possible to collect all information about the preferred citation out of crossref API so that users only have to enter the doi and get all information automatically ?

Originally posted by @jcolomb in https://github.com/citation-file-format/cff-initializer-javascript/issues/174#issuecomment-983412228

abelsiqueira commented 2 years ago

@sckott said in https://github.com/citation-file-format/cff-initializer-javascript/issues/174#issuecomment-1219625096

I don't have time to write code/etc. but I can answer questions. I maintain python and ruby clients for the crossref api, if those are of any help

abelsiqueira commented 2 years ago

@sckott, that will be very helpful, although we don't have a timeline of when we will start working on this yet.

jcolomb commented 2 years ago

see https://discuss.ropensci.org/t/using-handlr-to-convert-bibtex-citation-to-cff/3107

hexylena commented 1 year ago

Discussed on the fediverse recently, this would be quite useful for me as well.

Obtaining the information from crossref is quite easy, however they have CORS in place so, will require either some agreement with CrossRef to use their API or a backend that does nothing but doi2cff (which I guess gets easier than ever these days with lambda &co)

fetch("https://doi.org/10.1371/journal.pcbi.1010752", headers={"Accept": "application/json"})
  .then((response) => response.json())
  .then((data) => console.log(data));