10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 22:03:49 +01:00

Better design for publication page

This commit is contained in:
Mickaël Véril 2020-03-19 18:06:29 +01:00
parent 655a30d78f
commit 9bce112b27
3 changed files with 13 additions and 10 deletions

View File

@ -26,17 +26,24 @@ draft: false
const spublis = spubliscite.format('data', { format: 'object' }) const spublis = spubliscite.format('data', { format: 'object' })
for (const publi of spublis) { 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("#publis_sets")
} }
const odois=Array.from(pubs.others.keys()) const odois=Array.from(pubs.others.keys())
const opubliscite = await Cite.async(odois) const opubliscite = await Cite.async(odois)
const opublis = opubliscite.format('data', { format: 'object' }) const opublis = opubliscite.format('data', { format: 'object' })
for (const publi of opublis) { 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("#publis_others")
} }
} }
</script> </script>
<ul class="publis-list" id="publis_ul"> <section class="publis-list" id="publis_sets">
<header>
</ul> <h2>Sets</h2>
</header>
</section>
<section class="publis" id="publis_others">
<header>
<h2>Others</h2>
</header>
</section>

View File

@ -5,10 +5,6 @@
font-size: 20pt font-size: 20pt
} }
ul.publis-list{
list-style: none
}
.publi ul.authors-list { .publi ul.authors-list {
list-style: none; list-style: none;
margin: 0; margin: 0;

View File

@ -2,7 +2,7 @@ function createPubliUI(publi,sets=new Map(),toolTips=false) {
const art = $("<article/>").addClass("publi") const art = $("<article/>").addClass("publi")
art.className = "publi" art.className = "publi"
if (sets.has(publi.DOI) && sets.get(publi.DOI)!==null) { if (sets.has(publi.DOI) && sets.get(publi.DOI)!==null) {
$("<h1/>").text(sets.get(publi.DOI)).appendTo(art) $("<header/>").append($("<h1/>").text(sets.get(publi.DOI))).appendTo(art)
} }
$("<a/>", { $("<a/>", {
href: publi.URL, href: publi.URL,