mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
Trans: Fix for ACM's PDF-saving aggressiveness, per http://forums.zotero.org/discussion/16713/
This commit is contained in:
parent
433ab89a8d
commit
d714d51ee1
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue