Trans: Commit fix for Highwire 2.0 (http://forums.zotero.org/discussion/15667/, http://forums.zotero.org/discussion/15140/)
This commit is contained in:
parent
c8cca79217
commit
f38edb12a2
1 changed files with 13 additions and 12 deletions
|
@ -8,7 +8,7 @@
|
||||||
"priority":100,
|
"priority":100,
|
||||||
"inRepository":"1",
|
"inRepository":"1",
|
||||||
"translatorType":4,
|
"translatorType":4,
|
||||||
"lastUpdated":"2010-12-13 17:05:00"
|
"lastUpdated":"2010-12-23 09:58:55"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -103,8 +103,9 @@ function doWeb(doc, url) {
|
||||||
Zotero.Utilities.HTTP.doGet(arts, function(text) {
|
Zotero.Utilities.HTTP.doGet(arts, function(text) {
|
||||||
var id, match, newurl, pdfurl, get;
|
var id, match, newurl, pdfurl, get;
|
||||||
/* Here, we have to use three phrasings because they all occur, depending on
|
/* Here, we have to use three phrasings because they all occur, depending on
|
||||||
the journal.*/
|
the journal.
|
||||||
match = text.match(/=([^=]+)\">\s*Download citation/);
|
TODO We should rewrite this to not use regex! */
|
||||||
|
match = text.match(/=([^=]+)\">\s*Download (C|c)itation/);
|
||||||
if (!match || match.length < 1) {
|
if (!match || match.length < 1) {
|
||||||
match = text.match(/=([^=]+)\">\s*Download to citation manager/);
|
match = text.match(/=([^=]+)\">\s*Download to citation manager/);
|
||||||
if (!match || match.length < 1) {
|
if (!match || match.length < 1) {
|
||||||
|
|
Loading…
Reference in a new issue