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++) {
authors += item.item.authors[i].lastName + ", " + item.item.authors[i].firstName.substring(0, 1) + "., "
//Do something
}
var keywords = "";
// check if there is keywords in item
if (item.item.keywords !== undefined) {
for (var i = 0; i < item.item.keywords.length; i++) {
keywords += '' + item.item.keywords[i] + ''
//Do something
}
}
authors = authors.substring(0, authors.length - 2);
last_item = item
var PDF_HTML = ''
if ('pdf' in item.links) { // to be replaced by if (item.YouTubelink) or so...
var pdf_link = item.links.pdf // to be replaced by item.pdf_link or so...
PDF_HTML = ` PDF `
}
var UrlHTML = ''
if ('url' in item.links) { // to be replaced by if (item.YouTubelink) or so...
var url = item.links.url // to be replaced by item.pdf or so...
UrlHTML = ` 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
}
new_row.innerHTML = new_row.innerHTML + '
@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}' +
// '}' +
// '}