10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +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> <ul>
<li>Molecule</li> <li>Molecule</li>
<li>Method</li> <li>Method</li>
<li>Paper</li> <li>Publication</li>
</ul> </ul>
<li>Select a reference from already selected data (by default the first is already selected)</li> <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> <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> <select multiple id="method_select" name="method"></select>
</div> </div>
<div> <div>
<label for="DOI_select">Paper</label> <label for="DOI_select">Publication</label>
<select multiple id="DOI_select" name="DOI"></select> <select multiple id="DOI_select" name="DOI"></select>
</div> </div>
</fieldset> </fieldset>
@ -315,7 +315,7 @@ draft: false
<th id="GSGeom_th" hidden=true>Ground state geometry</th> <th id="GSGeom_th" hidden=true>Ground state geometry</th>
<th id="ESGeom_th" hidden=true>Excited state geometry</th> <th id="ESGeom_th" hidden=true>Excited state geometry</th>
<th>Method</th> <th>Method</th>
<th>Paper</th> <th>Publication</th>
<th>File</th> <th>File</th>
</thead> </thead>
<tbody> <tbody>
@ -326,7 +326,7 @@ draft: false
<table id="stat_table"> <table id="stat_table">
<thead> <thead>
<th>Method</th> <th>Method</th>
<th>Paper</th> <th>Publication</th>
<th>Min</th> <th>Min</th>
<th>Max</th> <th>Max</th>
<th>Mean</th> <th>Mean</th>

View File

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

View File

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