commit 04660acbd109b8edb26d3391a1629ecf9e130c07
parent d55f8748812b83fc810cb1ac12ddf9bdf71b544f
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 22 Jul 2009 08:05:19 +0000
Don't trigger error in Google Scholar if called with no items (since the PDF recognition process does this)
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/translators/Google Scholar.js b/translators/Google Scholar.js
@@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
- "lastUpdated":"2009-07-13 19:15:00"
+ "lastUpdated":"2009-07-22 08:05:00"
}
function detectWeb(doc, url) {
@@ -47,6 +47,10 @@ function scrape(doc) {
i++;
}
+ if (!items.length) {
+ if(Zotero.done) Zotero.done(true);
+ return;
+ }
items = Zotero.selectItems(items);
if(!items) {