From 2415518503d9c628d557446344c2bdc7c3dbfc39 Mon Sep 17 00:00:00 2001
From: Joe TS Dell <thunyathep.s@outlook.com>
Date: Thu, 20 May 2021 01:50:38 +0200
Subject: [PATCH] up

---
 public/content/content.json | 21 ++++++++++++++-------
 public/js/add_content.js    |  2 +-
 2 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/public/content/content.json b/public/content/content.json
index 6995d38..7f8b260 100644
--- a/public/content/content.json
+++ b/public/content/content.json
@@ -5,7 +5,8 @@
       "project": "Hackathon",
       "author": {
         "firstName": "Joe",
-        "lastName": "T. Santhanavanich"
+        "lastName": "T. Santhanavanich",
+        "hftURL": "https://www.hft-stuttgart.de/p/thunyathep-santhanavanich"
       },
       "project_year_start": "2019",
       "project_year_end": "2019",
@@ -27,7 +28,8 @@
       "project": "ICity Project",
       "author": {
         "firstName": "Joe",
-        "lastName": "T. Santhanavanich"
+        "lastName": "T. Santhanavanich",
+        "hftURL": "https://www.hft-stuttgart.de/p/thunyathep-santhanavanich"
       },
       "project_year_start": "2018",
       "project_year_end": "2021",
@@ -49,7 +51,8 @@
       "project": "iCity Project",
       "author": {
         "firstName": "Joe",
-        "lastName": "T. Santhanavanich"
+        "lastName": "T. Santhanavanich",
+        "hftURL": "https://www.hft-stuttgart.de/p/thunyathep-santhanavanich"
       },
       "project_year_start": "2020",
       "project_year_end": "2022",
@@ -70,7 +73,8 @@
       "project": "iCity Project",
       "author": {
         "firstName": "Sven",
-        "lastName": "Schneider"
+        "lastName": "Schneider",
+        "hftURL": "https://www.hft-stuttgart.de/p/Sven-Schneider"
       },
       "project_year_start": "2018",
       "project_year_end": "2021",
@@ -91,7 +95,8 @@
       "project": "Master Thesis",
       "author": {
         "firstName": "Justin ",
-        "lastName": "Jing Hui"
+        "lastName": "Jing Hui",
+        "hftURL": "#"
       },
       "project_year_start": "2020",
       "project_year_end": "2021",
@@ -112,7 +117,8 @@
       "project": "M4_Lab",
       "author": {
         "firstName": "Patrick",
-        "lastName": "Würstle"
+        "lastName": "Würstle",
+        "hftURL": "https://www.hft-stuttgart.de/p/patrick-wuerstle"
       },
       "project_year_start": "2018",
       "project_year_end": "2024",
@@ -133,7 +139,8 @@
       "project": "SmartVillages",
       "author": {
         "firstName": "Patrick",
-        "lastName": "Würstle"
+        "lastName": "Würstle",
+        "hftURL": "https://www.hft-stuttgart.de/p/patrick-wuerstle"
       },
       "project_year_start": "2018",
       "project_year_end": "2020",
diff --git a/public/js/add_content.js b/public/js/add_content.js
index 1337884..651d0d2 100644
--- a/public/js/add_content.js
+++ b/public/js/add_content.js
@@ -41,7 +41,7 @@ function addcontent(item){
           description +
           '<br>' +
           '<b><i class="fas fa-user"></i>' + lang_cont_person + '</b>: <a ' +
-          ' href="https://www.hft-stuttgart.de/p/'+ replaceUmlauts(item.item.author.firstName) +'-' + replaceUmlauts(item.item.author.lastName) + ' "> ' + item.item.author.firstName +
+          ' 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 + '&nbsp;' +
-- 
GitLab