mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Add publication date
This commit is contained in:
parent
6b121d459e
commit
b40223f149
@ -53,7 +53,9 @@ draft: false
|
|||||||
}
|
}
|
||||||
journalpar=$("<div/>").appendTo(art)
|
journalpar=$("<div/>").appendTo(art)
|
||||||
$("<span/>").text((("container-title-short" in publi) ? publi["container-title-short"] : publi["container-title"])).appendTo(journalpar)
|
$("<span/>").text((("container-title-short" in publi) ? publi["container-title-short"] : publi["container-title"])).appendTo(journalpar)
|
||||||
$("<span/>").text(publi.issued["date-parts"][0][0]).appendTo(journalpar)
|
var datArr=publi.issued["date-parts"][0]
|
||||||
|
var date=new Date(datArr[0],datArr[1]-1,datArr[2])
|
||||||
|
$("<span/>").text(date.getFullYear().toString()).appendTo(journalpar)
|
||||||
journalpar.append(" ")
|
journalpar.append(" ")
|
||||||
$("<span/>").text(publi.volume).appendTo(journalpar)
|
$("<span/>").text(publi.volume).appendTo(journalpar)
|
||||||
$("<span/>").addClass("issue").text(publi.issue).appendTo(journalpar)
|
$("<span/>").addClass("issue").text(publi.issue).appendTo(journalpar)
|
||||||
@ -63,6 +65,13 @@ draft: false
|
|||||||
href:publi.URL,
|
href:publi.URL,
|
||||||
target:"_blank"
|
target:"_blank"
|
||||||
}).text(String.raw`DOI: ${publi.DOI}`).appendTo(art)
|
}).text(String.raw`DOI: ${publi.DOI}`).appendTo(art)
|
||||||
|
$("<p/>").append("Published on ").append($("<time/>",{
|
||||||
|
datetime:JSON.stringify(date)
|
||||||
|
}).text(date.toLocaleDateString("en-us",{
|
||||||
|
day:"numeric",
|
||||||
|
month:"short",
|
||||||
|
year:"numeric"
|
||||||
|
}))).appendTo(art)
|
||||||
$(art).appendTo("<li/>").appendTo("#papers_ul")
|
$(art).appendTo("<li/>").appendTo("#papers_ul")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user