{"action":"opened","issue":{"url":"https://api.github.com/repos/zotero/zotero/issues/859","labels_url":"https://api.github.com/repos/zotero/zotero/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/zotero/zotero/issues/859/comments","events_url":"https://api.github.com/repos/zotero/zotero/issues/859/events","html_url":"https://github.com/zotero/zotero/issues/859","id":112798622,"number":859,"title":"Document is not passed correctly to child translator","user":{"login":"aurimasv","id":1381759,"avatar_url":"https://avatars.githubusercontent.com/u/1381759?v=3","gravatar_id":"","url":"https://api.github.com/users/aurimasv","html_url":"https://github.com/aurimasv","followers_url":"https://api.github.com/users/aurimasv/followers","following_url":"https://api.github.com/users/aurimasv/following{/other_user}","gists_url":"https://api.github.com/users/aurimasv/gists{/gist_id}","starred_url":"https://api.github.com/users/aurimasv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurimasv/subscriptions","organizations_url":"https://api.github.com/users/aurimasv/orgs","repos_url":"https://api.github.com/users/aurimasv/repos","events_url":"https://api.github.com/users/aurimasv/events{/privacy}","received_events_url":"https://api.github.com/users/aurimasv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-22T13:07:15Z","updated_at":"2015-10-22T13:07:15Z","closed_at":null,"body":"Calling `translator.translate()` from a parent translator after setting `translator.setDocument(doc)` is not passing the document object correctly to the child translator (*need reference to original forum thread where this was discussed. I can't find it right now*). The current workaround is to use `translator.getTranslatorObject` and then invoke `translObj.doWeb` directly with the document object. Three translators are currently using this workaround:\r\nUbiquity Joirnals: https://github.com/zotero/translators/commit/f7792b93b62731a9f405c9dbe6aa5f0fa31a485d\r\nSAE Papers: https://github.com/zotero/translators/commit/f712da1921d24571847c9c6f6be33f2068a1384c\r\nHighwire 2.0: https://github.com/zotero/translators/commit/2c8885b50efc40ead3f42d81b44eb31b79ed1a7c\r\n\r\nWe have a lot more translators that call EM translator and this is not a good solution, so we need to fix this sooner rather than later. Some translators have a legitimate reason to use `.getTranslatorObject` when calling EM and those should not be affected.\r\n\r\nI don't think we have other web translators that are being called by web translators, though we do call Google Scholar from Retrieve Metadata for PDFs. I'm assuming that is not affected, since we would have a lot more reports of this. (Maybe DOI/ISBN methods work sufficiently often for people to not be reporting this though).\r\n\r\nSplit off from #858"}}