Make 909b4b31c8 apply to search translators too, and fix tests

Addresses https://github.com/zotero/translators/issues/1353
This commit is contained in:
Dan Stillman 2017-07-05 09:15:12 -04:00
parent 909b4b31c8
commit 198bd70b59
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ Zotero.Translate.Sandbox = {
*/
_itemDone: function (translate, item) {
// https://github.com/zotero/translators/issues/1353
var asyncTranslator = translate instanceof Zotero.Translate.Import
var asyncTranslator = !(translate instanceof Zotero.Translate.Web)
&& translate.translator[0].lastUpdated > '2017-07-05';
var run = function (resolve) {

View file

@ -850,7 +850,7 @@ describe("Zotero.Translate", function() {
+ " });"
+ "}",
{
minVersion: "5.0"
lastUpdated: "2017-07-05 00:00:00"
}
));
var e = yield getPromiseError(translation.translate());
@ -906,7 +906,7 @@ describe("Zotero.Translate", function() {
+ " });"
+ "}",
{
minVersion: "5.0"
lastUpdated: "2017-07-05 00:00:00"
}
));
translation.setSearch({ itemType: "journalArticle", DOI: "10.111/Test"});