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

This commit is contained in:
Avram Lyon 2011-01-14 05:43:45 +00:00
parent 823a9b08f2
commit f9b4b83f18

View file

@ -76,6 +76,13 @@ function doWeb(doc, url) {
var jid = RegExp.$1; var jid = RegExp.$1;
Zotero.debug("JID found 1 " + jid); 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)) { else if (/(?:pss|stable)\/(\d+)/.test(url)) {
Zotero.debug("URL " + url); Zotero.debug("URL " + url);
jid = RegExp.$1; jid = RegExp.$1;