From 303ba345549c89d9ecb33f06ef34300062f463a8 Mon Sep 17 00:00:00 2001 From: Matt Burton Date: Thu, 19 Mar 2009 18:15:57 +0000 Subject: [PATCH] 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 --- translators/Journal of Vision.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/translators/Journal of Vision.js b/translators/Journal of Vision.js index 0f7b691db0..e7ebc3bf49 100644 --- 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(); + } } }