{"action":"created","issue":{"url":"https://api.github.com/repos/zotero/translators/issues/984","labels_url":"https://api.github.com/repos/zotero/translators/issues/984/labels{/name}","comments_url":"https://api.github.com/repos/zotero/translators/issues/984/comments","events_url":"https://api.github.com/repos/zotero/translators/issues/984/events","html_url":"https://github.com/zotero/translators/pull/984","id":124139928,"number":984,"title":"DOI translator checks DataCite as well (test)","user":{"login":"zuphilip","id":5199995,"avatar_url":"https://avatars.githubusercontent.com/u/5199995?v=3","gravatar_id":"","url":"https://api.github.com/users/zuphilip","html_url":"https://github.com/zuphilip","followers_url":"https://api.github.com/users/zuphilip/followers","following_url":"https://api.github.com/users/zuphilip/following{/other_user}","gists_url":"https://api.github.com/users/zuphilip/gists{/gist_id}","starred_url":"https://api.github.com/users/zuphilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuphilip/subscriptions","organizations_url":"https://api.github.com/users/zuphilip/orgs","repos_url":"https://api.github.com/users/zuphilip/repos","events_url":"https://api.github.com/users/zuphilip/events{/privacy}","received_events_url":"https://api.github.com/users/zuphilip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-12-28T23:18:17Z","updated_at":"2016-01-23T09:18:17Z","closed_at":"2016-01-18T23:27:38Z","pull_request":{"url":"https://api.github.com/repos/zotero/translators/pulls/984","html_url":"https://github.com/zotero/translators/pull/984","diff_url":"https://github.com/zotero/translators/pull/984.diff","patch_url":"https://github.com/zotero/translators/pull/984.patch"},"body":"I tried to expand the DOI translator to handle calling besides the CrossRef translator also the DataCite translator. I know that there is an old PR #632 and much more discussion how this could be achieved...\r\n\r\nMy approach in the `retrieveDOIs` function is just before calling the `completeDOIs` function to recursively call the `retrieveDOIs` function again but using the DataCite translator with the `remainingDOIs` (and make sure we don't create an infinite loop). Actually, this seemed to work pretty well, but maybe I am missing some things here.\r\n\r\nMy test case is the webpage: http://www.egms.de/static/de/journals/mbi/2015-15/mbi000336.shtml with 6 CrossRef doi's and 1 DataCite doi. Actually, the DataCite doi works as expected, but only the last CrossRef doi is recognized. However, I think that this behaviour is not a new bug but it is the same with the current translator. (Check). I tried to code another (non-asynchronous) version `retrieveDOIs2` which works fine for several CrossRef/DataCite doi's.\r\n\r\nI am looking forward for your comments. Is this some idea which is worth to continue? Is it working for you?"},"comment":{"url":"https://api.github.com/repos/zotero/translators/issues/comments/174165268","html_url":"https://github.com/zotero/translators/pull/984#issuecomment-174165268","issue_url":"https://api.github.com/repos/zotero/translators/issues/984","id":174165268,"user":{"login":"zuphilip","id":5199995,"avatar_url":"https://avatars.githubusercontent.com/u/5199995?v=3","gravatar_id":"","url":"https://api.github.com/users/zuphilip","html_url":"https://github.com/zuphilip","followers_url":"https://api.github.com/users/zuphilip/followers","following_url":"https://api.github.com/users/zuphilip/following{/other_user}","gists_url":"https://api.github.com/users/zuphilip/gists{/gist_id}","starred_url":"https://api.github.com/users/zuphilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuphilip/subscriptions","organizations_url":"https://api.github.com/users/zuphilip/orgs","repos_url":"https://api.github.com/users/zuphilip/repos","events_url":"https://api.github.com/users/zuphilip/events{/privacy}","received_events_url":"https://api.github.com/users/zuphilip/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T09:18:17Z","updated_at":"2016-01-23T09:18:17Z","body":"The doi errors are decreasing further down. Currently, we are at 80+6 errors from the new doi translator. I don't know what the error message in Chrome would look like if it is connected to the DataCite/CSL JSON problem."}}