add SID to generated openurl 0.1 URLs
This commit is contained in:
parent
395833b940
commit
3b0ee0285b
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue