From cff5a5461cf50f1d6d6717b44513c8f3a2db7262 Mon Sep 17 00:00:00 2001 From: Matt Burton Date: Mon, 1 Jun 2009 03:39:52 +0000 Subject: [PATCH] Fixes #1492, using santawort's xpath check. --- translators/ScienceDirect.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/translators/ScienceDirect.js b/translators/ScienceDirect.js index 66bd846f54..f6b7a2bfec 100644 --- a/translators/ScienceDirect.js +++ b/translators/ScienceDirect.js @@ -8,7 +8,7 @@ "maxVersion":null, "priority":100, "inRepository":true, - "lastUpdated":"2009-01-08 08:19:07" + "lastUpdated":"2009-05-31 23:36:07" } function detectWeb(doc, url) { @@ -28,7 +28,8 @@ function doWeb(doc, url) { if (prefix == 'x') return namespace; else return null; } : null; - if (!doc.evaluate('//div[@title = "Advertisement."]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) { + if (doc.evaluate('//*[contains(@src, "exportarticle_a.gif")]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) { + Zotero.debug("SPEACIAL"); var articles = new Array(); if(detectWeb(doc, url) == "multiple") { //search page