add SID to generated openurl 0.1 URLs

This commit is contained in:
Simon Kornblith 2010-07-11 08:02:28 +00:00
parent 395833b940
commit 3b0ee0285b

View file

@ -152,7 +152,7 @@ Zotero.OpenURL = new function() {
// rft_id=info:doi/<the-url-encoded-doi>
// rft_id=http://<the-rest-of-the-url-encoded-url>
if(version == "0.1") {
var co = "";
var co = "sid=Zotero:"+encodeURIComponent(Zotero.version);
for each(identifier in identifiers) {
co += "&id="+encodeURIComponent(identifier);
@ -246,11 +246,6 @@ Zotero.OpenURL = new function() {
if(item.ISBN) co += _mapTag(item.ISBN, "isbn", version);
if(item.ISSN) co += _mapTag(item.ISSN, "issn", version);
if(version == "0.1") {
// chop off leading & sign if version is 0.1
co = co.substr(1);
}
return co;
}