function addpaper(item){ var new_row = document.getElementById("cont_paper") if(item === undefined) { }else{ var authors = ""; for (var i = 0; i < item.item.authors.length; i++) { console.log(i); authors += item.item.authors[i].lastName + ", " + item.item.authors[i].firstName.substring(0,1) + "., " //Do something } var keywords = ""; for (var i = 0; i < item.item.keywords.length; i++) { console.log(i); keywords += ''+ item.item.keywords[i] +'' //Do something } authors = authors.substring(0, authors.length - 2); // Prepare YouTube Link // var array_contains_youtube = true var YouTubeHTML = '' if ('pdf' 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 = `Link` } // Do Authors and Keywords var doi if ('journal' in item.item){ doi = ' ' + item.item.journal.name + ',' + item.item.journal.volume + ', ' + item.item.journal.pages + ', '+ item.item.DOI } if ('conference' in item.item){ doi = ' ' + item.item.conference.name + ',' + item.item.conference.date + ', '+ item.item.DOI } // Prepare Explore Link // var array_contains_explore_link = true var ExploreHTML = '' if ('demo' in item.links) { // to be replaced by if (item.YouTubelink) or so... var ExploreLink = item.links.demo // to be replaced by item.ExploreLink or so... ExploreHTML = `PDF` } new_row.innerHTML = new_row.innerHTML + '
' + '
' + '
' + '...' + '
'+ '
' + '
' + '
' + ''+ authors +'' + '
' + item.item.title + '
' + '' + keywords + '' + '
' + doi + '
' + ExploreHTML + 'BIB' + YouTubeHTML + '
' + '
@article{santhanavanich20203d,' +
              'title={3D SAFE ROUTING NAVIGATION APPLICATION FOR PEDESTRIANS AND CYCLISTS BASED ON OPEN SOURCE TOOLS.},' +
              'author={Santhanavanich, T and Wuerstle, P and Silberer, J and Loidl, V and Rodrigues, P and Coors, V},' +
              'journal={ISPRS Annals of Photogrammetry, Remote Sensing \& Spatial Information Sciences},' +
              'volume={6},' +
              'year={2020}' +
            '}' +
          '}
' + '
' + '
' + '
' + '
' } }