www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8b5fbe7e96672148c8ca201c7a307976cb960f29
parent dc852d8ace1a4945ce0605d276786b107bed9e58
Author: Matt Burton <mcburton@gmail.com>
Date:   Wed, 29 Apr 2009 18:05:48 +0000

Fixed conditional for pages with multiple DOIs

Diffstat:
Mtranslators/DOI.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/translators/DOI.js b/translators/DOI.js @@ -11,14 +11,16 @@ "lastUpdated":"2009-04-07 15:48:00" } +//var DOIre = /(doi:)?\s*(10\.[\w.]+\/[^\/\s]+)/ig; var DOIre = /doi:\s*(10\.[\w.]+\/[^\/\s]+)/ig; + var items = {}; var selectArray = {}; function detectWeb(doc, url) { var m1 = DOIre.exec(doc.documentElement.textContent); var m2 = DOIre.exec(doc.documentElement.textContent); - if(m1 & m2) { + if(m1 && m2) { return "multiple"; } else if(m1) { return "journalArticle";