This commit is contained in:
Avram Lyon 2011-06-04 11:44:51 +00:00
parent 6981df1eaf
commit b1dc24b3e1

View file

@ -8,7 +8,7 @@
"maxVersion":"", "maxVersion":"",
"priority":100, "priority":100,
"inRepository":true, "inRepository":true,
"lastUpdated":"2009-07-21 19:20:00" "lastUpdated":"2011-06-04 19:20:00"
} }
function detectWeb(doc, url) { function detectWeb(doc, url) {
@ -39,7 +39,7 @@ function doWeb(doc, url){
var doi; var doi;
var title; var title;
var availableItems = new Array(); var availableItems = new Array();
var xpath = '//div[@class="articleBox"]'; var xpath = '//div[@class="articleBox" or @class="articleBox "]';
if (doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) { if (doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) {
elmts = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null); elmts = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null);
var elmt = elmts.iterateNext(); var elmt = elmts.iterateNext();
@ -114,4 +114,4 @@ function doWeb(doc, url){
} }
setupCallback(); setupCallback();
Zotero.wait(); Zotero.wait();
} }