mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Fix presentation when publication are not published in issue
This commit is contained in:
parent
ac0c970962
commit
1e6f71f58f
@ -20,7 +20,7 @@ draft: false
|
|||||||
const Cite = require("citation-js")
|
const Cite = require("citation-js")
|
||||||
const dois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string))
|
const dois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string))
|
||||||
const publiscite = await Cite.async(dois)
|
const publiscite = await Cite.async(dois)
|
||||||
const sets= await getSets()
|
const sets = await getSets()
|
||||||
console.log(sets)
|
console.log(sets)
|
||||||
const publis = publiscite.format('data', { format: 'object' })
|
const publis = publiscite.format('data', { format: 'object' })
|
||||||
for (const publi of publis) {
|
for (const publi of publis) {
|
||||||
@ -59,7 +59,7 @@ draft: false
|
|||||||
}
|
}
|
||||||
journaldiv = $("<div/>").appendTo(art)
|
journaldiv = $("<div/>").appendTo(art)
|
||||||
if ("container-title-short" in publi) {
|
if ("container-title-short" in publi) {
|
||||||
var title_short=$("<span/>").text(publi["container-title-short"])
|
var title_short = $("<span/>").text(publi["container-title-short"])
|
||||||
journaldiv.append(title_short)
|
journaldiv.append(title_short)
|
||||||
tippy(title_short[0], {
|
tippy(title_short[0], {
|
||||||
content: publi["container-title"],
|
content: publi["container-title"],
|
||||||
@ -74,9 +74,11 @@ draft: false
|
|||||||
$("<span/>").text(date.getFullYear().toString()).appendTo(journaldiv)
|
$("<span/>").text(date.getFullYear().toString()).appendTo(journaldiv)
|
||||||
journaldiv.append(" ")
|
journaldiv.append(" ")
|
||||||
$("<span/>").text(publi.volume).appendTo(journaldiv)
|
$("<span/>").text(publi.volume).appendTo(journaldiv)
|
||||||
|
if (publi.issue) {
|
||||||
$("<span/>").addClass("issue").text(publi.issue).appendTo(journaldiv)
|
$("<span/>").addClass("issue").text(publi.issue).appendTo(journaldiv)
|
||||||
journaldiv.append(", ")
|
journaldiv.append(", ")
|
||||||
$("<span/>").text(publi.page).appendTo(journaldiv)
|
$("<span/>").text(publi.page).appendTo(journaldiv)
|
||||||
|
}
|
||||||
$("<a/>", {
|
$("<a/>", {
|
||||||
href: publi.URL,
|
href: publi.URL,
|
||||||
target: "_blank"
|
target: "_blank"
|
||||||
|
Loading…
Reference in New Issue
Block a user