larsgw / citation.js

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.
https://citation.js.org/
MIT License
222 stars 30 forks source link

Wikidata input broken in browser #156

Closed larsgw closed 6 years ago

larsgw commented 6 years ago

Wikidata input seems to be broken in browser only, specifically recognising the API url. On top of that, it doesn't seem to interpret the JSON result correctly. It works fine in Node.js. It probably has been broken for a while, but I never thought of the test case failing as an indication. Another reason to remove all the places where Citation.js just silently fails (e.g. #130).

Reproduce

  1. Go to https://citation.js.org/demo
  2. Input Q30000000 in any field or type Cite('Q30000000') in the DevTools console
  3. There should now be warnings that this input type isn't recognised