Opened 10 years ago
Closed 10 years ago
#591 closed defect (fixed)
ScienceDirect broken for single items
| Reported by: | stakats | Owned by: | stakats |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 RC 1 |
| Component: | ingester | Version: | 1.0 |
| Keywords: | Cc: | simon |
Description
Single item save is currently broken (generating a bad POST string from the save citation page). I've got a fix by replacing the end of the single item code with:
Zotero.Utilities.HTTP.doGet(get, function(text) {
var md5 = text.match(/<input type=hidden name=md5 value=([^>]+)>/);
var acct = url.match(/_acct=([^&]+)/);
var userid = url.match(/_userid=([^&]+)/);
var alid = url.match(/_alid=([0-9]+)/);
var udi = text.match(/<input type=hidden name=_uoikey value=([^>]+)>/);
var docIdentifier = "_ArticleListID="+alid[1]+"&_uoikey="+udi[1];
}
var post = "_ob=DownloadURL&_method=finish&_acct="+acct[1]+"&_userid="+userid[1]+"&_docType=FLA&"+docIdentifier+"&md5="+md5[1]+"&JAVASCRIPT_ON=Y&format=cite-abs&citation-type=RIS&x=26&y=17";
Zotero.Utilities.HTTP.doPost("http://www.sciencedirect.com/science", post, function(text) { handleRIS(text, PDFs) });
});
It looks like ScienceDirect now wants both _uoikey and _ArticleListID. Simon, in your initial version of this translator, you checked the article url for _alid and only then used _ArticleListID. If you didn't find it, you used _uoikey. Can you provide me with an example of a result without _alid in the article url for me to test? Thanks.
Change History (1)
comment:1 Changed 10 years ago by stakats
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Fixed by [1370].