var urlKeyword, urlParams; urlParams = new URLSearchParams(window.location.search); urlKeyword = urlParams.get('keyword'); function addcontent(item) { var lang_cont_person = "" var lang_keywords = "" var new_row = document.getElementById("row_main") if (item === undefined) { } else if (urlKeyword == null || (item.item.keywords.includes(urlKeyword))) { // Prepare YouTube Link // var array_contains_youtube = true var description = "" if (lang_setting == "1") { description = item.item.description_en lang_cont_person = " Contact Person" lang_keywords = " Keywords" } else if (lang_setting == "2") { description = item.item.description_de lang_cont_person = " Kontaktperson" lang_keywords = " Stichworte" } // Prepare Explore Link // var array_contains_explore_link = true var YouTubeHTML = '' if ('youtube' in item.links) { // to be replaced by if (item.YouTubelink) or so... var YouTubelink = item.links.youtube // to be replaced by item.YouTubelink or so... YouTubeHTML = ` YouTube  ` } var ExploreHTML = '' if ('demo' in item.links) { var ExploreLink = item.links.demo ExploreHTML = ` Explore  ` } var publicationHTML = '' if ('publication' in item.links) { var publicationLink = item.links.publication publicationHTML = ` Publication  ` } var reportHTML = '' if ('report' in item.links) { var publicationLink = item.links.report reportHTML = ` Report  ` } var projectHTML = '' if ('project' in item.links) { var projectLink = item.links.project projectHTML = ` Project  ` } var presentationHTML = '' if ('presentation' in item.links) { var presentationLink = item.links.presentation presentationHTML = ` Presentation  ` } var repoHTML = '' if ('repo' in item.links) { var repoLink = item.links.repo repoHTML = ` Git/Repository  ` } if ('internal' in item.item) { if (item.item.internal) { var internal_tag = `Internal Access Only
` description = internal_tag + description } } new_row.innerHTML = new_row.innerHTML + '
' + '
' + '
' + item.item.title + ' ' + item.item.project + '
' + '' + '
' + '

' + description + '
' + '' + lang_cont_person + ': ' + item.item.author.firstName + ' ' + item.item.author.lastName + '
' + '' + lang_keywords + ': ' + item.item.keywords.join(', ') + '
' + ExploreHTML + YouTubeHTML + publicationHTML + reportHTML + projectHTML + presentationHTML + repoHTML + '

' + '
' + '
' + '
' } } function replaceUmlauts(value) { value = value.replace('ä', 'ae'); value = value.replace('ö', 'oe'); value = value.replace('ü', 'ue'); return value; } function addTeam(item) { var new_row = document.getElementById("team-section") if (item === undefined) { } else { var optional_profile_url_link = `` if ('optional' in item) { if ('researchGateURL' in item.optional) { if (item.optional.researchGateURL !== "") { optional_profile_url_link += ` ` } } if ('googleScholarURL' in item.optional) { if (item.optional.googleScholarURL !== "") { optional_profile_url_link += ` ` } } if ('LinkedInURL' in item.optional) { if (item.optional.LinkedInURL !== "") { optional_profile_url_link += ` ` } } if (optional_profile_url_link !== "") { optional_profile_url_link = `` } } var html_team = `
${item.firstName} ${item.lastName}

${item.jobTitle_en}

Research topic: ${item.researchTopics}

${optional_profile_url_link}
` new_row.innerHTML = new_row.innerHTML + html_team } }