Trans: Add support for DOIs as JIDs in JSTOR (per http://forums.zotero.org/discussion/15827/)
This commit is contained in:
parent
823a9b08f2
commit
f9b4b83f18
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue