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

This commit is contained in:
Avram Lyon 2011-02-24 21:27:13 +00:00
parent 18fb900855
commit 59f3caa718

View file

@ -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;
}