Fix Google Scholar translator to again throw error if no items, which allows PDF recognition to work again when there are no matches

This commit is contained in:
Dan Stillman 2009-08-09 07:12:42 +00:00
parent 9feadb8f42
commit 5c5a5be884

View file

@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2009-07-22 08:05:00"
"lastUpdated":"2009-08-09 07:15:00"
}
function detectWeb(doc, url) {
@ -47,14 +47,10 @@ function scrape(doc) {
i++;
}
if (!items.length) {
if(Zotero.done) Zotero.done(true);
return;
}
items = Zotero.selectItems(items);
if(!items) {
if(Zotero.done) Zotero.done(true);
Zotero.done(true);
return true;
}
@ -114,6 +110,6 @@ function doWeb(doc, url) {
//}
}
scrape(doc, url);
Zotero.wait();
scrape(doc, url);
}