From a3bfd8a878ad7ed4dee7ff86ba6783e97ccb131c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 22 Dec 2009 18:30:31 +0000 Subject: [PATCH] Rintze's Google Scholar fix --- repotime.txt | 2 +- translators/Google Scholar.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/repotime.txt b/repotime.txt index cc6becc65..9e46bcd5d 100644 --- a/repotime.txt +++ b/repotime.txt @@ -1 +1 @@ -2009-12-17 09:35:00 +2009-12-22 08:00:00 diff --git a/translators/Google Scholar.js b/translators/Google Scholar.js index 3a47d3a6b..c3f544f49 100644 --- a/translators/Google Scholar.js +++ b/translators/Google Scholar.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":100, "inRepository":true, - "lastUpdated":"2009-08-09 07:15:00" + "lastUpdated":"2009-12-22 08:00:00" } function detectWeb(doc, url) { @@ -29,8 +29,8 @@ function scrape(doc) { var itemTypes = new Array(); var attachments = new Array(); - var titles = doc.evaluate('//h3[@class="r"]', 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, ".bib")]', doc, nsResolver, XPathResult.ANY_TYPE, null);