commit 5c5a5be884cc85461c1a1d9c713441ce224a5f38
parent 9feadb8f42a8b0b0afbeac182b8c836e246b93ea
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 9 Aug 2009 07:12:42 +0000
Fix Google Scholar translator to again throw error if no items, which allows PDF recognition to work again when there are no matches
Diffstat:
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/translators/Google Scholar.js b/translators/Google Scholar.js
@@ -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);
}
\ No newline at end of file