commit d0675e7a5ecaacdf3b14e867e53c3658e39bd983
parent 0f2ad9bed91487ada2db3c679c39759dbb5ec95e
Author: Matt Burton <mcburton@gmail.com>
Date: Tue, 19 May 2009 02:54:43 +0000
comment debug, fixed lastUpdated and temp stop gap on item.attachments, RIS tries to grab the UR and attaches a login page
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/translators/EBSCOhost.js b/translators/EBSCOhost.js
@@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
- "lastUpdated":"2009-01-05 21:20:00"
+ "lastUpdated":"2009-05-18 21:20:00"
}
function detectWeb(doc, url) {
@@ -77,7 +77,7 @@ function generateDeliverString(nsResolver, doc){
* given the text of the delivery page, downloads an item
*/
function downloadFunction(text) {
- Zotero.debug("POSTTEXT="+text);
+ //Zotero.debug("POSTTEXT="+text);
var postLocation = /<form (?:autocomplete="o(?:ff|n)" )?name="aspnetForm" method="post" action="([^"]+)"/
var postMatch = postLocation.exec(text);
var deliveryURL = postMatch[1].replace(/&/g, "&");
@@ -98,6 +98,8 @@ function downloadFunction(text) {
item.DOI = text.match(/L3\s+\-\s*(.*)/)[1];
}
item.itemType = "journalArticle";
+ // RIS translator tries to download the link in "UR" this leads to unhappyness
+ item.attachments = [];
item.complete();
});
translator.translate();