10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-24 13:23:40 +01:00

Replace the word paper by publi or publication on all the website

This commit is contained in:
Mickaël Véril 2019-10-10 12:17:34 +02:00
parent 4ecbacba77
commit 0614fa8695
3 changed files with 19 additions and 19 deletions

View File

@ -263,7 +263,7 @@ draft: false
<ul>
<li>Molecule</li>
<li>Method</li>
<li>Paper</li>
<li>Publication</li>
</ul>
<li>Select a reference from already selected data (by default the first is already selected)</li>
<li>Now you can see the list of selected data and some statistics about these data</li>
@ -295,7 +295,7 @@ draft: false
<select multiple id="method_select" name="method"></select>
</div>
<div>
<label for="DOI_select">Paper</label>
<label for="DOI_select">Publication</label>
<select multiple id="DOI_select" name="DOI"></select>
</div>
</fieldset>
@ -315,7 +315,7 @@ draft: false
<th id="GSGeom_th" hidden=true>Ground state geometry</th>
<th id="ESGeom_th" hidden=true>Excited state geometry</th>
<th>Method</th>
<th>Paper</th>
<th>Publication</th>
<th>File</th>
</thead>
<tbody>
@ -326,7 +326,7 @@ draft: false
<table id="stat_table">
<thead>
<th>Method</th>
<th>Paper</th>
<th>Publication</th>
<th>Min</th>
<th>Max</th>
<th>Mean</th>

View File

@ -3,7 +3,7 @@ title: "Publications"
date: 2019-09-30 11:30
draft: false
---
<link rel="stylesheet" type="text/css" href="/css/paper.css" />
<link rel="stylesheet" type="text/css" href="/css/publi.css" />
<script src="/js/data.js" type="text/javascript"></script>
<script src="/js/loadAllData.js" type="text/javascript"></script>
<script src="/js/getFullDataPath.js" type="text/javascript"></script>
@ -14,14 +14,14 @@ draft: false
{{< getDataFilesName >}}
<script>
window.onload = async function () {
var div = document.getElementById("papers_div")
var div = document.getElementById("publis_div")
const Cite = require("citation-js")
const dois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string))
const publiscite = await Cite.async(dois)
const publis = publiscite.format('data', { format: 'object' })
for (const publi of publis) {
const art = $("<article/>").addClass("paper")
art.className = "paper"
const art = $("<article/>").addClass("publi")
art.className = "publi"
$("<a/>", {
href: publi.URL,
target: "_blank"
@ -82,10 +82,10 @@ draft: false
month: "short",
year: "numeric"
}))).appendTo(art)
$(art).appendTo("<li/>").appendTo("#papers_ul")
$(art).appendTo("<li/>").appendTo("#publis_ul")
}
}
</script>
<ul class="papers-list" id="papers_ul">
<ul class="publis-list" id="publis_ul">
</ul>

View File

@ -1,43 +1,43 @@
.paper h1 {
.publi h1 {
font-size: 20pt
}
ul.papers-list{
ul.publis-list{
list-style: none
}
.paper ul.authors-list {
.publi ul.authors-list {
list-style: none;
margin: 0;
padding: 0;
border: 0
}
.paper ul.authors-list li.author-item{
.publi ul.authors-list li.author-item{
display: inline;
cursor: default
}
.paper ul.authors-list li.author-item:after
.publi ul.authors-list li.author-item:after
{
content: ", "
}
.paper ul.authors-list li.author-item:nth-last-child(2):after
.publi ul.authors-list li.author-item:nth-last-child(2):after
{
content: " and "
}
.paper ul.authors-list li.author-item:last-child:after
.publi ul.authors-list li.author-item:last-child:after
{
content: ""
}
.paper .issue::before{
.publi .issue::before{
content: "("
}
.paper .issue::after{
.publi .issue::after{
content: ")"
}