diff --git a/public/js/add_content.js b/public/js/add_content.js index 4daef46b852189768efca1bca02fdfcc1b2d7f93..6930af87f291b4c6baf4b962175649d9ab8cb35d 100644 --- a/public/js/add_content.js +++ b/public/js/add_content.js @@ -80,9 +80,11 @@ function addcontent(item) { '<p class="card-text-lg small">' + description + '<br>' + - '<b><i class="fas fa-user"></i>' + lang_cont_person + '</b>: <a ' + - ' href="' + item.item.author.hftURL + '" target ="_blank"> ' + item.item.author.firstName + - ' ' + item.item.author.lastName + '</a> <br>' + + '<b><i class="fas fa-user"></i>' + lang_cont_person + '</b>: ' + + (item.item.author.map(author => + '<a href="' + author.hftURL + '" target ="_blank"> ' + + author.firstName + ' ' + author.lastName + '</a>' + ).join(', ')) + '<br>' + '<b><i class="fas fa-star"></i>' + lang_keywords + '</b>: ' + item.item.keywords.join(', ') + '</br>' + ExploreHTML + YouTubeHTML + @@ -157,4 +159,4 @@ function addTeam(item) { ` new_row.innerHTML = new_row.innerHTML + html_team } -} \ No newline at end of file +}