10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 06:14:38 +01:00
QUESTDB_website/content/publications.html
2020-09-04 14:59:55 +02:00

58 lines
2.3 KiB
HTML

---
title: "Publications"
date: 2019-09-30 11:30
draft: false
---
<link rel="stylesheet" type="text/css" href="/css/publi.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>
<script src="/js/numberUtils.js"></script>
<script src="/js/DebugMode.js"></script>
<script src="/js/createPubliUI.js"></script>
<script src="/js/PubliDB.js"></script>
{{< getDataFilesName >}}
<script>
window.onload = async function () {
var div = document.getElementById("publis_div")
const Cite = require("citation-js")
const sdois = uniq(Object.values(await loadAllData()).flat().filter(d => d.DOI !== null).map(d => d.DOI))
const spubliscite = await Cite.async(sdois)
const uospublis = spubliscite.format('data', { format: 'object' })
const spublis = uospublis.sort((puba, pubb) => pubUtils.getIssuedDate(puba) - pubUtils.getIssuedDate(pubb))
var myDB = await publiDB.loadAsync()
for (const publi of spublis) {
var art = await createPubliUI(publi, true, true)
var setName = myDB.findSetNameFromDOI(publi.DOI, true)
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)
}
const odois = myDB.others
const opubliscite = await Cite.async(odois)
const uoopublis = opubliscite.format('data', { format: 'object' })
const opublis = uoopublis.sort((puba, pubb) => pubUtils.getIssuedDate(puba) - pubUtils.getIssuedDate(pubb))
for (const publi of opublis) {
art = await createPubliUI(publi, true, true)
$(art).appendTo("#publis_others")
}
}
</script>
<section class="publis-list" id="publis_sets">
<header>
<h1>Sets</h2>
</header>
</section>
<section class="publis" id="publis_others">
<header>
<h1>Others</h2>
</header>
</section>