10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-27 06:43:47 +01:00
QUESTDB_website/content/papers.html

84 lines
3.5 KiB
HTML
Raw Normal View History

2019-09-30 13:29:44 +02:00
---
title: "Papers"
date: 2019-09-30 11:30
draft: false
---
2019-10-06 17:31:40 +02:00
<link rel="stylesheet" type="text/css" href="/css/paper.css" />
<script src="/js/data.js" type="text/javascript"></script>
<script src="/js/loadAllData.js" type="text/javascript"></script>
<script src="/js/getFullDataPath.js" type="text/javascript"></script>
<script src="/js/getTextFromFile.js" type="text/javascript"></script>
<script src="/js/trueTypeOf.js" type="text/javascript"></script>
<script src="/js/uniq.js"></script>
<script src="/js/websiteFile.js"></script>
2019-09-30 13:29:44 +02:00
{{< getDataFilesName >}}
<script>
window.onload = async function () {
var div=document.getElementById("papers_div")
2019-10-06 17:31:40 +02:00
const Cite = require("citation-js")
const dois =uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string))
const publiscite = await Cite.async(dois)
const publis=publiscite.format('data', {format: 'object'})
for (const publi of publis){
const art=document.createElement("article")
art.className="paper"
const titlelink=document.createElement("a")
const titleh=document.createElement("h1")
titleh.innerText=publi.title
titlelink.appendChild(titleh)
titlelink.href=publi.URL
art.appendChild(titlelink)
const authors=publi.author
const ulauths=document.createElement("ul")
ulauths.className="authors-list"
for(const author of authors){
const liauth=document.createElement("li")
2019-10-06 20:43:31 +02:00
liauth.className="author-item"
2019-10-06 17:31:40 +02:00
const spanAuth=document.createElement("span")
spanAuth.innerText=String.raw`${author.given} ${author.family}`
liauth.appendChild(spanAuth)
if(author.sequence==="first"){
star=document.createElement("strong")
star.innerText="*"
liauth.appendChild(star)
}
var notifycontent=document.createElement("div")
2019-10-06 20:27:27 +02:00
notifycontent.className="author-info"
2019-10-06 20:43:31 +02:00
const ulaff=document.createElement("ul")
ulaff.className="affiliation-list"
notifycontent.appendChild(ulaff)
2019-10-06 17:31:40 +02:00
for(const a of author.affiliation){
2019-10-06 20:43:31 +02:00
const liaff=document.createElement("li")
liaff.innerText=a.name
ulaff.appendChild(liaff)
2019-10-06 17:31:40 +02:00
}
if(author["authenticated-orcid"]){
const html=$.parseHTML(String.raw`<div class="orcid-id"><a href="https://orcid.org" target="_blank"><img alt="ORCID logo" src="https://orcid.org/sites/default/files/images/orcid_16x16.png" width="16" height="16"/></a> <a href="${author.ORCID}" target="_blank">${author.ORCID} </a></div>`)
notifycontent.appendChild(html[0])
}
tippy(spanAuth, {
content: notifycontent,
theme: 'light',
interactive: true,
});
ulauths.appendChild(liauth)
}
art.appendChild(ulauths)
const journaldiv=document.createElement("div")
journaldiv.innerText=(("container-title-short" in publi) ? publi["container-title-short"] : publi["container-title"])
journaldiv.innerText+=publi.issued["date-parts"][0][0]
journaldiv.innerHTML+=String.raw` ${publi.volume}(${publi.issue}), ${publi.page}`
art.appendChild(journaldiv)
const doilink=document.createElement("a")
doilink.href=publi.URL
2019-10-06 20:46:09 +02:00
doilink.innerText=String.raw`DOI: ${publi.DOI}`
art.appendChild(doilink)
2019-10-07 08:53:04 +02:00
const lipub=document.createElement("li")
lipub.appendChild(art)
document.getElementById("papers_ul").appendChild(lipub)
2019-10-06 17:31:40 +02:00
}
2019-09-30 13:29:44 +02:00
}
</script>
2019-10-07 08:53:04 +02:00
<ul class="papers-list" id="papers_ul">
2019-09-30 13:29:44 +02:00
2019-10-07 08:53:04 +02:00
</ul>