mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2025-01-12 05:58:23 +01:00
rename journalpar to journaldiv to reflet element type and add journal full name as tooltip
This commit is contained in:
parent
521e085290
commit
d76d9217da
@ -51,16 +51,26 @@ draft: false
|
||||
});
|
||||
ulauthors.append(liauth)
|
||||
}
|
||||
journalpar=$("<div/>").appendTo(art)
|
||||
$("<span/>").text((("container-title-short" in publi) ? publi["container-title-short"] : publi["container-title"])).appendTo(journalpar)
|
||||
journaldiv = $("<div/>").appendTo(art)
|
||||
if ("container-title-short" in publi) {
|
||||
var title_short=$("<span/>").text(publi["container-title-short"])
|
||||
journaldiv.append(title_short)
|
||||
tippy(title_short[0], {
|
||||
content: publi["container-title"],
|
||||
theme: 'light',
|
||||
});
|
||||
}
|
||||
else {
|
||||
$("<span/>").text(publi["container-title"]).appendTo(journaldiv)
|
||||
}
|
||||
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(" ")
|
||||
$("<span/>").text(publi.volume).appendTo(journalpar)
|
||||
$("<span/>").addClass("issue").text(publi.issue).appendTo(journalpar)
|
||||
journalpar.append(", ")
|
||||
$("<span/>").text(publi.page).appendTo(journalpar)
|
||||
$("<span/>").text(date.getFullYear().toString()).appendTo(journaldiv)
|
||||
journaldiv.append(" ")
|
||||
$("<span/>").text(publi.volume).appendTo(journaldiv)
|
||||
$("<span/>").addClass("issue").text(publi.issue).appendTo(journaldiv)
|
||||
journaldiv.append(", ")
|
||||
$("<span/>").text(publi.page).appendTo(journaldiv)
|
||||
$("<a/>", {
|
||||
href: publi.URL,
|
||||
target: "_blank"
|
||||
|
Loading…
Reference in New Issue
Block a user