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:
parent
0f2ad9bed9
commit
d0675e7a5e
1 changed files with 4 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
"maxVersion":"",
|
"maxVersion":"",
|
||||||
"priority":100,
|
"priority":100,
|
||||||
"inRepository":true,
|
"inRepository":true,
|
||||||
"lastUpdated":"2009-01-05 21:20:00"
|
"lastUpdated":"2009-05-18 21:20:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectWeb(doc, url) {
|
function detectWeb(doc, url) {
|
||||||
|
@ -77,7 +77,7 @@ function generateDeliverString(nsResolver, doc){
|
||||||
* given the text of the delivery page, downloads an item
|
* given the text of the delivery page, downloads an item
|
||||||
*/
|
*/
|
||||||
function downloadFunction(text) {
|
function downloadFunction(text) {
|
||||||
Zotero.debug("POSTTEXT="+text);
|
//Zotero.debug("POSTTEXT="+text);
|
||||||
var postLocation = /<form (?:autocomplete="o(?:ff|n)" )?name="aspnetForm" method="post" action="([^"]+)"/
|
var postLocation = /<form (?:autocomplete="o(?:ff|n)" )?name="aspnetForm" method="post" action="([^"]+)"/
|
||||||
var postMatch = postLocation.exec(text);
|
var postMatch = postLocation.exec(text);
|
||||||
var deliveryURL = postMatch[1].replace(/&/g, "&");
|
var deliveryURL = postMatch[1].replace(/&/g, "&");
|
||||||
|
@ -98,6 +98,8 @@ function downloadFunction(text) {
|
||||||
item.DOI = text.match(/L3\s+\-\s*(.*)/)[1];
|
item.DOI = text.match(/L3\s+\-\s*(.*)/)[1];
|
||||||
}
|
}
|
||||||
item.itemType = "journalArticle";
|
item.itemType = "journalArticle";
|
||||||
|
// RIS translator tries to download the link in "UR" this leads to unhappyness
|
||||||
|
item.attachments = [];
|
||||||
item.complete();
|
item.complete();
|
||||||
});
|
});
|
||||||
translator.translate();
|
translator.translate();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue