mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 13:13:55 +01:00
36 lines
1.1 KiB
HTML
36 lines
1.1 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>
|
|
{{< 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> |