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:
|
default:
|
||||||
var resultPath= doc.evaluate(searchResultX, doc, null, XPathResult.ANY_TYPE, null);
|
var resultPath= doc.evaluate(searchResultX, doc, null, XPathResult.ANY_TYPE, null);
|
||||||
}
|
}
|
||||||
Zotero.debug("hi"+resultPath.iterateNext().textContent);
|
|
||||||
|
|
||||||
//Count how mange pages have been scraped
|
//Count how mange pages have been scraped
|
||||||
var node;
|
var node;
|
||||||
var urls = {};
|
var urls = {};
|
||||||
//Iterate through all the results
|
//Iterate through all the results
|
||||||
while(node= resultPath.iterateNext()) {
|
while(node= resultPath.iterateNext()) {
|
||||||
urls[node.href] = node.textContent;
|
urls[node.href + '&preflayout=flat'] = node.textContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
var items = Zotero.selectItems(urls);
|
var items = Zotero.selectItems(urls);
|
||||||
|
@ -283,7 +282,7 @@ function scrapeAttachments(doc, url) {
|
||||||
*/
|
*/
|
||||||
function scrapeAbstract(doc) {
|
function scrapeAbstract(doc) {
|
||||||
Zotero.debug("Scraping abstract");
|
Zotero.debug("Scraping abstract");
|
||||||
var text = getText('//div[@style="display: inline;"]', doc);
|
var text = getText('//div[@class="flatbody" or @class="tabbody"]', doc);
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue