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

This commit is contained in:
Matt Burton 2009-03-19 17:32:07 +00:00
parent d03625c271
commit d842e6e41f

View File

@ -8,7 +8,7 @@
"maxVersion":"", "maxVersion":"",
"priority":100, "priority":100,
"inRepository":true, "inRepository":true,
"lastUpdated":"2007-06-18 18:15:00" "lastUpdated":"2009-03-19 13:45:00"
} }
function detectWeb(doc, url) { function detectWeb(doc, url) {
@ -77,7 +77,8 @@ function scrape(doc) {
// judge // judge
var j = metaTags.namedItem("AUTHOR"); var j = metaTags.namedItem("AUTHOR");
if(j) { 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 // group meta tags