From eb3e4b8c904099edd0702ecf3d07fa88a7b520b7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 9 Jan 2011 18:20:06 +0000 Subject: [PATCH] Push updated CrossRef translator with fallback to null namespace -- won't work in 2.1b2 due to security error (to be fixed in 2.1b3) --- translators/CrossRef.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translators/CrossRef.js b/translators/CrossRef.js index b72f24fa63..6f1bbcf0de 100644 --- a/translators/CrossRef.js +++ b/translators/CrossRef.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":90, "inRepository":true, - "lastUpdated":"2010-01-06 09:25:00" + "lastUpdated":"2011-01-09 18:20:00" } function detectSearch(item) { @@ -46,7 +46,7 @@ function processCrossRef(xmlOutput) { // Fall back to older namespace default xml namespace = "http://www.crossref.org/xschema/1.0"; if(!xml.doi_record.length()) { - return false; + default xml namespace = ""; } } // ensure this isn't an error @@ -60,7 +60,7 @@ function processCrossRef(xmlOutput) { var refXML = itemXML.journal_article; var metadataXML = itemXML.journal_metadata; - item.ISSN = itemXML.journal_metadata.issn.toString(); + item.ISSN = itemXML.journal_metadata.issn[0].toString(); item.publicationTitle = itemXML.journal_metadata.full_title.toString(); if (itemXML.journal_metadata.abbrev_title.length()) { item.journalAbbreviation = itemXML.journal_metadata.abbrev_title[0].toString();