commit 3b0ee0285b049c375548882c3895d7303f9dc976
parent 395833b940faa3a8272e84a2e3521f6ae6dcecc0
Author: Simon Kornblith <simon@simonster.com>
Date: Sun, 11 Jul 2010 08:02:28 +0000
add SID to generated openurl 0.1 URLs
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/chrome/content/zotero/xpcom/ingester.js b/chrome/content/zotero/xpcom/ingester.js
@@ -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;
}