Trans: Fix for DOI as JID handling in JSTOR

This commit is contained in:
Avram Lyon 2011-01-22 10:32:40 +00:00
parent 2d57f0ae73
commit c9bd1b015b

View File

@ -76,8 +76,8 @@ 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)) {
// Sometimes JSTOR uses DOIs as JID; here we exclude "?" characters, since it's a URL
else if (/(?:pss|stable)\/(10\.\d+\/.+)(?:\?.*)/.test(url)) {
Zotero.debug("URL " + url);
jid = RegExp.$1;
allJids.push(jid);