www

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

commit d714d51ee195658a2286f6223581253940eee197
parent 433ab89a8dd935de0ed5046ef9253694dc1ca39c
Author: Avram Lyon <ajlyon@gmail.com>
Date:   Wed, 30 Mar 2011 16:23:09 +0000

Trans: Fix for ACM's PDF-saving aggressiveness, per http://forums.zotero.org/discussion/16713/


Diffstat:
Mtranslators/ACM.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/translators/ACM.js b/translators/ACM.js @@ -8,7 +8,7 @@ "priority":100, "inRepository":"1", "translatorType":4, - "lastUpdated":"2011-02-24 23:30:00" + "lastUpdated":"2011-03-24 23:30:00" } /** @@ -254,7 +254,7 @@ function scrapeAttachments(doc, url) { attachments.push({title:"ACM Snapshot", mimeType:"text/html", url:url}); //XPath for the full text links - var textPath = doc.evaluate('//a[@name="FullTextPdf" or @name="FullTextHtml" or @name="FullText Html"]', doc, null, XPathResult.ANY_TYPE, null); + var textPath = doc.evaluate('//a[@name="FullTextPdf" or @name="FullTextHtml" or @name="FullText Html"][not(ancestor::div[@class="flatbody"])]', doc, null, XPathResult.ANY_TYPE, null); var textNode; //Iterate through all the links