mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 13:13:55 +01:00
FIx code for other publications
This commit is contained in:
parent
ac60bbb978
commit
36eec9e7b2
@ -20,15 +20,18 @@ draft: false
|
|||||||
window.onload = async function () {
|
window.onload = async function () {
|
||||||
var div = document.getElementById("publis_div")
|
var div = document.getElementById("publis_div")
|
||||||
const Cite = require("citation-js")
|
const Cite = require("citation-js")
|
||||||
const dois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string))
|
const sdois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string))
|
||||||
const publiscite = await Cite.async(dois)
|
const spubliscite = await Cite.async(sdois)
|
||||||
const pubs = await getPublis()
|
const pubs = await getPublis()
|
||||||
const publis = publiscite.format('data', { format: 'object' })
|
const spublis = spubliscite.format('data', { format: 'object' })
|
||||||
for (const publi of publis) {
|
for (const publi of spublis) {
|
||||||
art=createPubliUI(publi,pubs.sets,true)
|
art=createPubliUI(publi,pubs.sets,true)
|
||||||
$(art).appendTo("<li/>").appendTo("#publis_ul")
|
$(art).appendTo("<li/>").appendTo("#publis_ul")
|
||||||
}
|
}
|
||||||
for (const publi of pubs.others.keys()) {
|
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=createPubliUI(publi,pubs.others,true)
|
||||||
$(art).appendTo("<li/>").appendTo("#publis_ul")
|
$(art).appendTo("<li/>").appendTo("#publis_ul")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user