www

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

commit d842e6e41f9f3391fede365341f7adc67112874b
parent d03625c2713ea04d0a52a8e7ee52eefc213581ae
Author: Matt Burton <mcburton@gmail.com>
Date:   Thu, 19 Mar 2009 17:32:07 +0000

Some entries the AUTHOR meta tag content is empty, this makes zotero unhappy, adding a default

Diffstat:
Mtranslators/Cornell LII.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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