From d842e6e41f9f3391fede365341f7adc67112874b Mon Sep 17 00:00:00 2001 From: Matt Burton Date: Thu, 19 Mar 2009 17:32:07 +0000 Subject: [PATCH] Some entries the AUTHOR meta tag content is empty, this makes zotero unhappy, adding a default --- translators/Cornell LII.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/translators/Cornell LII.js b/translators/Cornell LII.js index d834fa37f..3cb857e4f 100644 --- a/translators/Cornell LII.js +++ b/translators/Cornell LII.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":100, "inRepository":true, - "lastUpdated":"2007-06-18 18:15:00" + "lastUpdated":"2009-03-19 13:45:00" } function detectWeb(doc, url) { @@ -77,7 +77,8 @@ function scrape(doc) { // judge var j = metaTags.namedItem("AUTHOR"); if(j) { - newItem.creators.push({lastName:j.getAttribute("content"), creatorType:"judge", fieldMode:true}); + // Some entries the AUTHOR meta tag content is empty, this makes zotero unhappy, adding a default + newItem.creators.push({lastName:j.getAttribute("content") ? j.getAttribute("content") : "Author Not Provided", creatorType:"judge", fieldMode:true}); } // group meta tags