www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a3bfd8a878ad7ed4dee7ff86ba6783e97ccb131c
parent a39a5ca8924c427f534cf5cec8eeb0f761dc477b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 22 Dec 2009 18:30:31 +0000

Rintze's Google Scholar fix


Diffstat:
Mrepotime.txt | 2+-
Mtranslators/Google Scholar.js | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 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 @@ -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);