2019-09-30 13:29:44 +02:00
|
|
|
---
|
2019-10-10 09:53:04 +02:00
|
|
|
title: "Publications"
|
2019-09-30 13:29:44 +02:00
|
|
|
date: 2019-09-30 11:30
|
|
|
|
draft: false
|
|
|
|
---
|
2019-10-10 12:17:34 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="/css/publi.css" />
|
2019-10-07 10:23:21 +02:00
|
|
|
<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>
|
2019-11-27 18:29:29 +01:00
|
|
|
<script src="/js/getSets.js"></script>
|
2019-10-07 10:23:21 +02:00
|
|
|
<script src="/js/websiteFile.js"></script>
|
2020-02-07 10:16:33 +01:00
|
|
|
<script src="/js/numberUtils.js"></script>
|
2019-09-30 13:29:44 +02:00
|
|
|
{{< getDataFilesName >}}
|
|
|
|
<script>
|
|
|
|
window.onload = async function () {
|
2019-10-10 12:17:34 +02:00
|
|
|
var div = document.getElementById("publis_div")
|
2019-10-06 17:31:40 +02:00
|
|
|
const Cite = require("citation-js")
|
2019-10-10 09:38:19 +02:00
|
|
|
const dois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string))
|
2019-10-06 17:31:40 +02:00
|
|
|
const publiscite = await Cite.async(dois)
|
2019-11-27 18:29:29 +01:00
|
|
|
const sets= await getSets()
|
|
|
|
console.log(sets)
|
2019-10-10 09:38:19 +02:00
|
|
|
const publis = publiscite.format('data', { format: 'object' })
|
|
|
|
for (const publi of publis) {
|
2019-10-10 12:17:34 +02:00
|
|
|
const art = $("<article/>").addClass("publi")
|
|
|
|
art.className = "publi"
|
2019-11-27 18:29:29 +01:00
|
|
|
console.log(sets.get(publi.DOI))
|
|
|
|
$("<h1/>").text(sets.get(publi.DOI)).appendTo(art)
|
2019-10-10 09:38:19 +02:00
|
|
|
$("<a/>", {
|
|
|
|
href: publi.URL,
|
|
|
|
target: "_blank"
|
2019-11-27 18:29:29 +01:00
|
|
|
}).html($("<h2/>").text(publi.title)).appendTo(art)
|
2019-10-10 09:38:19 +02:00
|
|
|
const authors = publi.author
|
|
|
|
const ulauthors = $("<ul/>").addClass("authors-list").appendTo(art)
|
|
|
|
for (const author of authors) {
|
|
|
|
const liauth = $("<li/>").addClass("author-item")
|
|
|
|
const spanAuth = $("<span/>").text(String.raw`${author.given} ${author.family}`).appendTo(liauth)
|
|
|
|
if (author.sequence === "first") {
|
2019-10-09 17:53:10 +02:00
|
|
|
$(spanAuth).after($("<strong/>").text("*"))
|
2019-10-06 17:31:40 +02:00
|
|
|
}
|
2019-10-10 09:38:19 +02:00
|
|
|
var notifycontent = $("<div/>").addClass("author-info")
|
2019-10-09 17:53:10 +02:00
|
|
|
$("<h1/>").text(String.raw`${author.given} ${author.family}`).appendTo(notifycontent)
|
2019-10-10 09:38:19 +02:00
|
|
|
ulaff = $("<ul/>").addClass("affiliation-list").appendTo(notifycontent)
|
|
|
|
for (const a of author.affiliation) {
|
2019-10-09 17:53:10 +02:00
|
|
|
$("<li/>").text(a.name).appendTo(ulaff)
|
2019-10-06 17:31:40 +02:00
|
|
|
}
|
2019-10-10 09:38:19 +02:00
|
|
|
if (author["authenticated-orcid"]) {
|
|
|
|
const html = 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>`
|
2019-10-09 17:53:10 +02:00
|
|
|
notifycontent.append(html)
|
2019-10-06 17:31:40 +02:00
|
|
|
}
|
2019-10-09 17:53:10 +02:00
|
|
|
tippy(spanAuth[0], {
|
2019-10-10 09:38:19 +02:00
|
|
|
content: notifycontent[0],
|
|
|
|
theme: 'light',
|
|
|
|
interactive: true,
|
2019-10-06 17:31:40 +02:00
|
|
|
});
|
2019-10-09 17:53:10 +02:00
|
|
|
ulauthors.append(liauth)
|
2019-10-06 17:31:40 +02:00
|
|
|
}
|
2019-10-10 09:38:19 +02:00
|
|
|
journaldiv = $("<div/>").appendTo(art)
|
|
|
|
if ("container-title-short" in publi) {
|
|
|
|
var title_short=$("<span/>").text(publi["container-title-short"])
|
|
|
|
journaldiv.append(title_short)
|
|
|
|
tippy(title_short[0], {
|
|
|
|
content: publi["container-title"],
|
|
|
|
theme: 'light',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$("<span/>").text(publi["container-title"]).appendTo(journaldiv)
|
|
|
|
}
|
|
|
|
var datArr = publi.issued["date-parts"][0]
|
|
|
|
var date = new Date(datArr[0], datArr[1] - 1, datArr[2])
|
|
|
|
$("<span/>").text(date.getFullYear().toString()).appendTo(journaldiv)
|
|
|
|
journaldiv.append(" ")
|
|
|
|
$("<span/>").text(publi.volume).appendTo(journaldiv)
|
|
|
|
$("<span/>").addClass("issue").text(publi.issue).appendTo(journaldiv)
|
|
|
|
journaldiv.append(", ")
|
|
|
|
$("<span/>").text(publi.page).appendTo(journaldiv)
|
|
|
|
$("<a/>", {
|
|
|
|
href: publi.URL,
|
|
|
|
target: "_blank"
|
2019-10-09 17:53:10 +02:00
|
|
|
}).text(String.raw`DOI: ${publi.DOI}`).appendTo(art)
|
2019-10-10 09:38:19 +02:00
|
|
|
$("<p/>").append("Published on ").append($("<time/>", {
|
|
|
|
datetime: JSON.stringify(date)
|
|
|
|
}).text(date.toLocaleDateString("en-us", {
|
|
|
|
day: "numeric",
|
|
|
|
month: "short",
|
|
|
|
year: "numeric"
|
2019-10-09 18:23:56 +02:00
|
|
|
}))).appendTo(art)
|
2019-10-10 12:17:34 +02:00
|
|
|
$(art).appendTo("<li/>").appendTo("#publis_ul")
|
2019-10-10 09:38:19 +02:00
|
|
|
}
|
2019-09-30 13:29:44 +02:00
|
|
|
}
|
|
|
|
</script>
|
2019-10-10 12:17:34 +02:00
|
|
|
<ul class="publis-list" id="publis_ul">
|
2019-09-30 13:29:44 +02:00
|
|
|
|
2019-10-07 08:53:04 +02:00
|
|
|
</ul>
|