Skip to content

Commit

Permalink
Update site.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aanunez authored Jul 8, 2024
1 parent 82108dd commit e1b798e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions site.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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}`
Expand Down

0 comments on commit e1b798e

Please sign in to comment.