commit 303ba345549c89d9ecb33f06ef34300062f463a8
parent 287c72c0dda63787cc541bb42f732e96ed59d147
Author: Matt Burton <mcburton@gmail.com>
Date: Thu, 19 Mar 2009 18:15:57 +0000
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
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/translators/Journal of Vision.js b/translators/Journal of Vision.js
@@ -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();
+ }
}
}