www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c0b97e339a05bbebbb088a5df4f48bdf149e5284
parent 99d19f35f794b5921444d883cdc56165356bc8a5
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 28 Nov 2009 16:37:11 +0000

Apply modified version of Frank's OpenURL patch: Append '&' if OpenURL resolver URL already has '?' in it


Diffstat:
Mchrome/content/zotero/xpcom/ingester.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/ingester.js b/chrome/content/zotero/xpcom/ingester.js @@ -76,7 +76,10 @@ Zotero.OpenURL = new function() { function resolve(itemObject) { var co = createContextObject(itemObject, Zotero.Prefs.get("openURL.version")); if(co) { - return Zotero.Prefs.get("openURL.resolver")+"?"+co; + var base = Zotero.Prefs.get("openURL.resolver"); + // Add & if there's already a ? + var splice = base.indexOf("?") == -1 ? "?" : "&"; + return base + splice + co; } return false; }