Trans: ACM fixes on saving multiple items. Kudos to Michael Unterkalmsteiner.
This commit is contained in:
parent
18fb900855
commit
59f3caa718
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue