Addresses 1412, yet again. Full text pages don't have citation link, load abstract from processDocuments...there seems to be a bug with the dialog box when processDocuments has only one item

This commit is contained in:
Matt Burton 2009-03-19 18:15:57 +00:00
parent 287c72c0dd
commit 303ba34554

View file

@ -42,8 +42,15 @@ function doWeb(doc, url) {
Zotero.wait();
} else {
// no need for a processDocuments request for single items
grabCitation(doc);
if (url.indexOf("article.aspx") == -1 ) {
// no need for a processDocuments request for single item abstrac
grabCitation(doc);
} else { // html fulltext page doesn't include citation link, load abstract and grab RIS
url = url.substring(0,url.indexOf("article.aspx"));
Zotero.Utilities.processDocuments([url], grabCitation, function() {Zotero.done();});
Zotero.wait();
}
}
}