From 829bccf667baa99ce9b1c123b424f017064c2941 Mon Sep 17 00:00:00 2001
From: Traboulsi <salam.traboulsi@hft-stuttgart.de>
Date: Thu, 26 Oct 2023 07:54:19 +0000
Subject: [PATCH] Update public/js/add_content.js

---
 public/js/add_content.js | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/public/js/add_content.js b/public/js/add_content.js
index 6930af8..50c81f7 100644
--- a/public/js/add_content.js
+++ b/public/js/add_content.js
@@ -80,11 +80,9 @@ function addcontent(item) {
       '<p class="card-text-lg small">' +
       description +
       '<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-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-star"></i>' + lang_keywords + '</b>: ' + item.item.keywords.join(', ') + '</br>' +
       ExploreHTML + 
       YouTubeHTML + 
-- 
GitLab