www

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

commit f9b4b83f18cdd79595636553ef2b3c48c1e50f3e
parent 823a9b08f272c4abe460f232e48469afeaaf503c
Author: Avram Lyon <ajlyon@gmail.com>
Date:   Fri, 14 Jan 2011 05:43:45 +0000

Trans: Add support for DOIs as JIDs in JSTOR (per http://forums.zotero.org/discussion/15827/)


Diffstat:
Mtranslators/JSTOR.js | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/translators/JSTOR.js b/translators/JSTOR.js @@ -76,6 +76,13 @@ function doWeb(doc, url) { var jid = RegExp.$1; Zotero.debug("JID found 1 " + jid); } + // Sometimes JSTOR uses DOIs as JID + else if (/(?:pss|stable)\/(10\.\d+\/.+)/.test(url)) { + Zotero.debug("URL " + url); + jid = RegExp.$1; + allJids.push(jid); + Zotero.debug("JID found 2 " + jid); + } else if (/(?:pss|stable)\/(\d+)/.test(url)) { Zotero.debug("URL " + url); jid = RegExp.$1; @@ -192,4 +199,4 @@ function doWeb(doc, url) { var callbacks = [first, second]; Zotero.Utilities.processAsync(sets, callbacks, function () { Zotero.done(); }); Zotero.wait(); -} -\ No newline at end of file +}