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" />
|
2020-09-09 09:19:36 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="/css/modal.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>
|
|
|
|
<script src="/js/websiteFile.js"></script>
|
2020-02-07 10:16:33 +01:00
|
|
|
<script src="/js/numberUtils.js"></script>
|
2020-06-10 15:18:39 +02:00
|
|
|
<script src="/js/DebugMode.js"></script>
|
2020-02-08 14:48:40 +01:00
|
|
|
<script src="/js/createPubliUI.js"></script>
|
2020-09-09 09:19:36 +02:00
|
|
|
<script src="/js/processingIndicator.js"></script>
|
2020-08-20 15:28:06 +02:00
|
|
|
<script src="/js/PubliDB.js"></script>
|
2019-09-30 13:29:44 +02:00
|
|
|
{{< getDataFilesName >}}
|
|
|
|
<script>
|
|
|
|
window.onload = async function () {
|
2020-09-09 09:19:36 +02:00
|
|
|
processingIndicator.isActive = true
|
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")
|
2020-09-09 14:39:46 +02:00
|
|
|
const sarticles = uniq(Object.values(await loadAllData()).flat().filter(d => d.article !== null).map(d => d.article))
|
|
|
|
const spubliscite = await Cite.async(sarticles)
|
2020-05-04 14:13:25 +02:00
|
|
|
const uospublis = spubliscite.format('data', { format: 'object' })
|
2020-08-20 15:28:06 +02:00
|
|
|
const spublis = uospublis.sort((puba, pubb) => pubUtils.getIssuedDate(puba) - pubUtils.getIssuedDate(pubb))
|
|
|
|
var myDB = await publiDB.loadAsync()
|
2020-03-18 15:34:16 +01:00
|
|
|
for (const publi of spublis) {
|
2020-08-20 15:28:06 +02:00
|
|
|
var art = await createPubliUI(publi, true, true)
|
2020-09-09 14:39:46 +02:00
|
|
|
var setName = myDB.findSetNameFromArticle(publi.DOI, true)
|
2020-08-20 15:28:06 +02:00
|
|
|
setsSec = $('#publis_sets')
|
|
|
|
var mySetSec = setsSec.find(`section.publiSet[data-setName="${setName}"]`)
|
|
|
|
if (mySetSec.length === 0) {
|
|
|
|
mySetSec = $('<section>').addClass('publiSet').attr("data-setName", setName).appendTo(setsSec)
|
|
|
|
$("<h1>").text(setName).appendTo(mySetSec)
|
|
|
|
}
|
|
|
|
$(art).appendTo(mySetSec)
|
2020-02-15 11:19:36 +01:00
|
|
|
}
|
2020-08-20 15:28:06 +02:00
|
|
|
const odois = myDB.others
|
2020-03-18 15:34:16 +01:00
|
|
|
const opubliscite = await Cite.async(odois)
|
2020-05-04 14:13:25 +02:00
|
|
|
const uoopublis = opubliscite.format('data', { format: 'object' })
|
2020-08-20 15:28:06 +02:00
|
|
|
const opublis = uoopublis.sort((puba, pubb) => pubUtils.getIssuedDate(puba) - pubUtils.getIssuedDate(pubb))
|
2020-03-18 15:34:16 +01:00
|
|
|
for (const publi of opublis) {
|
2020-08-20 15:28:06 +02:00
|
|
|
art = await createPubliUI(publi, true, true)
|
2020-03-19 18:06:29 +01:00
|
|
|
$(art).appendTo("#publis_others")
|
2019-10-10 09:38:19 +02:00
|
|
|
}
|
2020-09-09 09:19:36 +02:00
|
|
|
processingIndicator.isActive = false
|
2019-09-30 13:29:44 +02:00
|
|
|
}
|
|
|
|
</script>
|
2020-03-19 18:06:29 +01:00
|
|
|
<section class="publis-list" id="publis_sets">
|
|
|
|
<header>
|
2020-08-20 15:28:06 +02:00
|
|
|
<h1>Sets</h2>
|
2020-03-19 18:06:29 +01:00
|
|
|
</header>
|
|
|
|
</section>
|
|
|
|
<section class="publis" id="publis_others">
|
|
|
|
<header>
|
2020-08-20 15:28:06 +02:00
|
|
|
<h1>Others</h2>
|
2020-03-19 18:06:29 +01:00
|
|
|
</header>
|
2020-09-09 09:19:36 +02:00
|
|
|
</section>
|
|
|
|
{{< waitModal >}}
|