www

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

commit 59f3caa7180a12f20cd217ce1e84859fcf52f992
parent 18fb9008554bbcc9712b74c18b175bd44ee92744
Author: Avram Lyon <ajlyon@gmail.com>
Date:   Thu, 24 Feb 2011 21:27:13 +0000

Trans: ACM fixes on saving multiple items. Kudos to Michael Unterkalmsteiner.


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

diff --git a/translators/ACM.js b/translators/ACM.js @@ -114,14 +114,13 @@ function scrapeMulti(doc, url, nsResolver, type) { default: var resultPath= doc.evaluate(searchResultX, doc, null, XPathResult.ANY_TYPE, null); } - Zotero.debug("hi"+resultPath.iterateNext().textContent); //Count how mange pages have been scraped var node; var urls = {}; //Iterate through all the results while(node= resultPath.iterateNext()) { - urls[node.href] = node.textContent; + urls[node.href + '&preflayout=flat'] = node.textContent; } var items = Zotero.selectItems(urls); @@ -283,7 +282,7 @@ function scrapeAttachments(doc, url) { */ function scrapeAbstract(doc) { Zotero.debug("Scraping abstract"); - var text = getText('//div[@style="display: inline;"]', doc); + var text = getText('//div[@class="flatbody" or @class="tabbody"]', doc); return text; }