comment debug, fixed lastUpdated and temp stop gap on item.attachments, RIS tries to grab the UR and attaches a login page

This commit is contained in:
Matt Burton 2009-05-19 02:54:43 +00:00
parent 0f2ad9bed9
commit d0675e7a5e

View file

@ -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(/&amp;/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();