From 42338e0650b5ec52e4d94c0e5985bf2d82b35c9e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 2 May 2010 21:02:58 +0000 Subject: [PATCH] Pushed Google Scholar fix --- translators/Google Scholar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translators/Google Scholar.js b/translators/Google Scholar.js index f9e7207a19..ecf179f013 100644 --- 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 +}