bondjimbond / islandora_badges

Adds badges to Islandora objects showing citation counts from Crossref, Web of Science, and Scopus; Altmetric social media interactions; and oaDOI fulltext links.
http://arcabc.ca
2 stars 1 forks source link

Error handling for "not found" or invalid DOIs #14

Closed bondjimbond closed 7 years ago

bondjimbond commented 8 years ago

When a DOI is invalid or just not found by the service, Scopus resolves fine with no block at all. But Altmetric responds with an empty block, and Web of Science responds with an empty set that results in "0" citations and a bad link.

WOS should be easy enough to resolve when there's time.

Altmetric could be resolved after finding out what the callback response is. Here's the Altmetric API callback data: http://api.altmetric.com/v1/doi/65465?callback=my_callback (where 65465 is a random non-DOI number) results in "Not Found" as results - as opposed to a nice set of results with a valid DOI.

bondjimbond commented 7 years ago

Web of Science piece addressed in #20 .. still need to work on Altmetric.

bondjimbond commented 7 years ago

Altmetric is complex; haven't figured out how to identify a blank result from the javascript call.

Looks like it has to do with JS "altmetric:hide" when no mentions.