10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 22:03:49 +01:00
QUESTDB_website/content/papers.html

36 lines
1.1 KiB
HTML
Raw Normal View History

2019-09-30 13:29:44 +02:00
---
title: "Papers"
date: 2019-09-30 11:30
draft: false
---
<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")
var Cite = require("citation-js")
var dois =uniq(Object.values(await loadAllData()).flat().map(d => d.DOI))
for (doi of dois) {
var publi = await Cite.async(doi.string)
var output = publi.format('bibliography', {
format: 'html',
template: 'apa',
lang: 'en-US'
})
lnk = document.createElement("a")
lnk.innerHTML = output
lnk.target = '_blank'
lnk.href = doi.url
div.appendChild(lnk)
}
}
</script>
<div id="papers_div">
</div>