commit 42338e0650b5ec52e4d94c0e5985bf2d82b35c9e
parent 268f37194ff357123017408c016ab47d09327fd4
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 2 May 2010 21:02:58 +0000
Pushed Google Scholar fix
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/translators/Google Scholar.js b/translators/Google Scholar.js
@@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
- "lastUpdated":"2009-12-23 18:00:00"
+ "lastUpdated":"2010-05-02 15:55:00"
}
function detectWeb(doc, url) {
@@ -29,7 +29,7 @@ function scrape(doc) {
var itemTypes = new Array();
var attachments = new Array();
- var titles = doc.evaluate('//div[@class="gs_r"]/h3', doc, nsResolver, XPathResult.ANY_TYPE, null);
+ var titles = doc.evaluate('//div[@class="gs_r"]//h3', doc, nsResolver, XPathResult.ANY_TYPE, null);
// changing .enw to .bib
var elmts = doc.evaluate('//a[contains(@href, "scholar.bib")]',
@@ -112,4 +112,4 @@ function doWeb(doc, url) {
Zotero.wait();
scrape(doc, url);
-}
-\ No newline at end of file
+}