commit f38edb12a2f03bd8f7d2d83f884b50a9beca05a7
parent c8cca792179604ebd84ed15a57ff3dba382ee3d2
Author: Avram Lyon <ajlyon@gmail.com>
Date: Thu, 23 Dec 2010 07:00:18 +0000
Trans: Commit fix for Highwire 2.0 (http://forums.zotero.org/discussion/15667/, http://forums.zotero.org/discussion/15140/)
Diffstat:
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/translators/Highwire 2.0.js b/translators/Highwire 2.0.js
@@ -1,14 +1,14 @@
{
- "translatorID":"8c1f42d5-02fa-437b-b2b2-73afc768eb07",
- "label":"Highwire 2.0",
- "creator":"Matt Burton",
- "target":"(content/([0-9]+/[0-9]+|current|firstcite|early)|search\\?submit=|search\\?fulltext=|cgi/collection/.+)",
- "minVersion":"1.0.0b4.r5",
- "maxVersion":"",
- "priority":100,
- "inRepository":"1",
- "translatorType":4,
- "lastUpdated":"2010-12-13 17:05:00"
+ "translatorID":"8c1f42d5-02fa-437b-b2b2-73afc768eb07",
+ "label":"Highwire 2.0",
+ "creator":"Matt Burton",
+ "target":"(content/([0-9]+/[0-9]+|current|firstcite|early)|search\\?submit=|search\\?fulltext=|cgi/collection/.+)",
+ "minVersion":"1.0.0b4.r5",
+ "maxVersion":"",
+ "priority":100,
+ "inRepository":"1",
+ "translatorType":4,
+ "lastUpdated":"2010-12-23 09:58:55"
}
/*
@@ -103,8 +103,9 @@ function doWeb(doc, url) {
Zotero.Utilities.HTTP.doGet(arts, function(text) {
var id, match, newurl, pdfurl, get;
/* Here, we have to use three phrasings because they all occur, depending on
- the journal.*/
- match = text.match(/=([^=]+)\">\s*Download citation/);
+ the journal.
+ TODO We should rewrite this to not use regex! */
+ match = text.match(/=([^=]+)\">\s*Download (C|c)itation/);
if (!match || match.length < 1) {
match = text.match(/=([^=]+)\">\s*Download to citation manager/);
if (!match || match.length < 1) {