From e1b798e979a3291c549534b74e9789ed99e94708 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 8 Jul 2024 15:26:56 -0700 Subject: [PATCH] Update site.js --- site.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site.js b/site.js index f3bfcf9..84c0f92 100644 --- a/site.js +++ b/site.js @@ -253,7 +253,6 @@ let ctri = { }, generateHTMLforChild: (data) => { - console.log(data) let authors = [] data.author.forEach((el) => { authors.push(typeof el == "string" ? el : ((el[2] || "").trim() + " " + (el[0][0] || "").trim() + (el[1][0] || "").trim()).trim()) @@ -274,7 +273,7 @@ let ctri = { let page = data.pages ? `: ${data.pages}.` : "." let issue = data.issue ? `No. ${data.issue}` : "" let primaryTopic = data.topic.length ? `${data.topic[0]}. ` : "" - let topics = data.topic.length > 1 ? data.topic.join(', ') : "" + let topics = data.topic.join(', ') let apa = "" if (journal) { apa = `${authors.join(', ')} ${year} ${data.title}.${journal}${volume}${issue}${page}`