﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
591	ScienceDirect broken for single items	stakats	stakats	"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."	defect	closed	major	1.0 RC 1	ingester	1.0	fixed		simon
