Fixes #1526, tweaking DOI regex to not capture URL parameters
This commit is contained in:
parent
520a89a330
commit
db7db3ce02
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
"maxVersion":"",
|
"maxVersion":"",
|
||||||
"priority":100,
|
"priority":100,
|
||||||
"inRepository":true,
|
"inRepository":true,
|
||||||
"lastUpdated":"2009-01-28 18:10:00"
|
"lastUpdated":"2009-07-20 13:46:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectWeb(doc, url) {
|
function detectWeb(doc, url) {
|
||||||
|
@ -32,8 +32,8 @@ function doWeb(doc, url){
|
||||||
if (prefix == 'x') return namespace; else return null;
|
if (prefix == 'x') return namespace; else return null;
|
||||||
} : null;
|
} : null;
|
||||||
var host = 'http://' + doc.location.host + "/";
|
var host = 'http://' + doc.location.host + "/";
|
||||||
//Zotero.debug(host);
|
Zotero.debug(host);
|
||||||
var m = url.match(/https?:\/\/[^\/]*\/doi\/(abs|full)\/(.+)/);
|
var m = url.match(/https?:\/\/[^\/]*\/doi\/(abs|full)\/([^\?]+)/);
|
||||||
var dois = new Array();
|
var dois = new Array();
|
||||||
if(detectWeb(doc, url) == "multiple") { //search
|
if(detectWeb(doc, url) == "multiple") { //search
|
||||||
var doi;
|
var doi;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue