diff --git a/content/multipledataset.html b/content/multipledataset.html index 35fa81db..e82570c5 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -16,7 +16,7 @@ draft: false - + @@ -24,6 +24,7 @@ draft: false + + - + @@ -19,16 +20,30 @@ draft: false window.onload = async function () { var div = document.getElementById("publis_div") const Cite = require("citation-js") - const dois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string)) - const publiscite = await Cite.async(dois) - const sets = await getSets() - const publis = publiscite.format('data', { format: 'object' }) - for (const publi of publis) { - art=createPubliUI(publi,sets,true) - $(art).appendTo("
").appendTo("#publis_ul") + const sdois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string)) + const spubliscite = await Cite.async(sdois) + const pubs = await getPublis() + const spublis = spubliscite.format('data', { format: 'object' }) + for (const publi of spublis) { + art=createPubliUI(publi,pubs.sets,true) + $(art).appendTo("#publis_sets") + } + const odois=Array.from(pubs.others.keys()) + const opubliscite = await Cite.async(odois) + const opublis = opubliscite.format('data', { format: 'object' }) + for (const publi of opublis) { + art=createPubliUI(publi,pubs.others,true) + $(art).appendTo("#publis_others") } } -