Rintze's Google Scholar fix

This commit is contained in:
Dan Stillman 2009-12-22 18:30:31 +00:00
parent a39a5ca892
commit a3bfd8a878
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
2009-12-17 09:35:00
2009-12-22 08:00:00

View File

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