Trans: Add support for early edition in Highwire 2.0, per http://forums.zotero.org/discussion/15429

This commit is contained in:
Avram Lyon 2010-12-02 20:51:42 +00:00
parent 24fc8d1292
commit 0e90e8efe7

View file

@ -2,7 +2,7 @@
"translatorID":"8c1f42d5-02fa-437b-b2b2-73afc768eb07", "translatorID":"8c1f42d5-02fa-437b-b2b2-73afc768eb07",
"label":"Highwire 2.0", "label":"Highwire 2.0",
"creator":"Matt Burton", "creator":"Matt Burton",
"target":"(content/([0-9]+/[0-9]+|current|firstcite)|search\\?submit=|search\\?fulltext=|cgi/collection/.+)", "target":"(content/([0-9]+/[0-9]+|current|firstcite|early)|search\\?submit=|search\\?fulltext=|cgi/collection/.+)",
"minVersion":"1.0.0b4.r5", "minVersion":"1.0.0b4.r5",
"maxVersion":"", "maxVersion":"",
"priority":100, "priority":100,
@ -47,7 +47,7 @@ function detectWeb(doc, url) {
url.match("content/firstcite") url.match("content/firstcite")
) { ) {
return "multiple"; return "multiple";
} else if (url.match("content/[0-9]+")) { } else if (url.match("content/(early/)?[0-9]+")) {
return "journalArticle"; return "journalArticle";
} }
} }