10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 14:23:42 +01:00
QUESTDB_website/content/papers.html

77 lines
3.2 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" />
2019-09-30 13:29:44 +02:00
<script src="/scripts/data.js" type="text/javascript"></script>
<script src="/scripts/loadAllData.js" type="text/javascript"></script>
<script src="/scripts/getFullDataPath.js" type="text/javascript"></script>
<script src="/scripts/getTextFromFile.js" type="text/javascript"></script>
<script src="/scripts/trueTypeOf.js" type="text/javascript"></script>
<script src="/scripts/uniq.js"></script>
<script src="/scripts/websiteFile.js"></script>
{{< 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")
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 17:31:40 +02:00
for(const a of author.affiliation){
var div=document.createElement("div")
div.innerText=a.name
notifycontent.appendChild(div)
}
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
doilink.innerText=String.raw`DOI: ${publi.URL}`
document.getElementById("papers_div").appendChild(art)
}
2019-09-30 13:29:44 +02:00
}
</script>
<div id="papers_div">
</div>