From 6006b597b16bebbcfda6f5d5d6fc5eb18fc5e431 Mon Sep 17 00:00:00 2001 From: Matt Burton Date: Tue, 19 May 2009 01:49:48 +0000 Subject: [PATCH] quick fix for EBSCOhost, no PDF support and there are async issues...but it works --- translators/EBSCOhost.js | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/translators/EBSCOhost.js b/translators/EBSCOhost.js index 1cad9e0ce9..8c02c2a5e3 100644 --- a/translators/EBSCOhost.js +++ b/translators/EBSCOhost.js @@ -53,7 +53,7 @@ function fullEscape(text) { } function generateDeliverString(nsResolver, doc){ - var hiddenInputs = doc.evaluate('//input[@type="hidden" and not(contains(@name, "folderHas"))]', doc, nsResolver, XPathResult.ANY_TYPE, null); + var hiddenInputs = doc.evaluate('//input[@type="hidden" and not(contains(@name, "folderHas")) and not(@name ="ajax")]', doc, nsResolver, XPathResult.ANY_TYPE, null); var hiddenInput; var deliverString =""; while(hiddenInput = hiddenInputs.iterateNext()) { @@ -72,15 +72,17 @@ function generateDeliverString(nsResolver, doc){ return deliverString; } + /* * given the text of the delivery page, downloads an item */ function downloadFunction(text) { + Zotero.debug("POSTTEXT="+text); var postLocation = /