Rintze's Google Scholar fix
This commit is contained in:
parent
a39a5ca892
commit
a3bfd8a878
|
@ -1 +1 @@
|
||||||
2009-12-17 09:35:00
|
2009-12-22 08:00:00
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"maxVersion":"",
|
"maxVersion":"",
|
||||||
"priority":100,
|
"priority":100,
|
||||||
"inRepository":true,
|
"inRepository":true,
|
||||||
"lastUpdated":"2009-08-09 07:15:00"
|
"lastUpdated":"2009-12-22 08:00:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectWeb(doc, url) {
|
function detectWeb(doc, url) {
|
||||||
|
@ -29,8 +29,8 @@ function scrape(doc) {
|
||||||
var itemTypes = new Array();
|
var itemTypes = new Array();
|
||||||
var attachments = new Array();
|
var attachments = new Array();
|
||||||
|
|
||||||
var titles = doc.evaluate('//h3[@class="r"]', doc, nsResolver,
|
var titles = doc.evaluate('//div[@class="gs_r"]/h3', doc, nsResolver, XPathResult.ANY_TYPE, null);
|
||||||
XPathResult.ANY_TYPE, null);
|
|
||||||
// changing .enw to .bib
|
// changing .enw to .bib
|
||||||
var elmts = doc.evaluate('//a[contains(@href, ".bib")]',
|
var elmts = doc.evaluate('//a[contains(@href, ".bib")]',
|
||||||
doc, nsResolver, XPathResult.ANY_TYPE, null);
|
doc, nsResolver, XPathResult.ANY_TYPE, null);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user