10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Avoid issue with empty DOI

This commit is contained in:
Mickaël Véril 2020-08-24 13:49:01 +02:00
parent a6dd840faf
commit e8c39f0970

View File

@ -494,8 +494,10 @@ draft: false
if (PreviousSetName !== CurrentsetName) { if (PreviousSetName !== CurrentsetName) {
$("<h1/>").text(CurrentsetName).appendTo(div) $("<h1/>").text(CurrentsetName).appendTo(div)
} }
const doiDat = doiCache.get(doi).format('data', { format: 'object' })[0] if (doi!=="") {
$("<h2/>").append($("<a>",{href:doiDat.URL,target:"_blank"}).text(doiDat.title)).appendTo(div) const doiDat = doiCache.get(doi).format('data', { format: 'object' })[0]
$("<h2/>").append($("<a>",{href:doiDat.URL,target"_blank"}).text(doiDat.title)).appendTo(div)
}
var table = $("<table/>").addClass("datatable").appendTo(div) var table = $("<table/>").addClass("datatable").appendTo(div)
var head = $("<tr/>") var head = $("<tr/>")
$("<thead/>").addClass("sticky").append(head).appendTo(table) $("<thead/>").addClass("sticky").append(head).appendTo(table)