mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 05:03:53 +01:00
87 lines
3.6 KiB
HTML
87 lines
3.6 KiB
HTML
---
|
|
title: "Papers"
|
|
date: 2019-09-30 11:30
|
|
draft: false
|
|
---
|
|
<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>
|
|
{{< getDataFilesName >}}
|
|
<script>
|
|
window.onload = async function () {
|
|
var div=document.getElementById("papers_div")
|
|
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")
|
|
liauth.className="author-item"
|
|
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")
|
|
notifycontent.className="author-info"
|
|
const notifyhead=document.createElement("h1")
|
|
notifyhead.innerText=String.raw`${author.given} ${author.family}`
|
|
notifycontent.appendChild(notifyhead)
|
|
const ulaff=document.createElement("ul")
|
|
ulaff.className="affiliation-list"
|
|
notifycontent.appendChild(ulaff)
|
|
for(const a of author.affiliation){
|
|
const liaff=document.createElement("li")
|
|
liaff.innerText=a.name
|
|
ulaff.appendChild(liaff)
|
|
}
|
|
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.DOI}`
|
|
art.appendChild(doilink)
|
|
const lipub=document.createElement("li")
|
|
lipub.appendChild(art)
|
|
document.getElementById("papers_ul").appendChild(lipub)
|
|
}
|
|
}
|
|
</script>
|
|
<ul class="papers-list" id="papers_ul">
|
|
|
|
</ul> |