10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 22:33:56 +01:00
QUESTDB_website/content/papers.html
2019-09-30 13:29:44 +02:00

37 lines
1.2 KiB
HTML

---
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>
<script src="https://cdn.rawgit.com/larsgw/citation.js/archive/citation.js/citation-0.4.0-9.js" type="text/javascript"></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>