10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 13:13:55 +01:00

Use ul for affiliation

This commit is contained in:
Mickaël Véril 2019-10-06 20:43:31 +02:00
parent 8fd73709d7
commit 6ec1945234
2 changed files with 17 additions and 7 deletions

View File

@ -33,6 +33,7 @@ draft: false
ulauths.className="authors-list" ulauths.className="authors-list"
for(const author of authors){ for(const author of authors){
const liauth=document.createElement("li") const liauth=document.createElement("li")
liauth.className="author-item"
const spanAuth=document.createElement("span") const spanAuth=document.createElement("span")
spanAuth.innerText=String.raw`${author.given} ${author.family}` spanAuth.innerText=String.raw`${author.given} ${author.family}`
liauth.appendChild(spanAuth) liauth.appendChild(spanAuth)
@ -43,10 +44,13 @@ draft: false
} }
var notifycontent=document.createElement("div") var notifycontent=document.createElement("div")
notifycontent.className="author-info" notifycontent.className="author-info"
const ulaff=document.createElement("ul")
ulaff.className="affiliation-list"
notifycontent.appendChild(ulaff)
for(const a of author.affiliation){ for(const a of author.affiliation){
var div=document.createElement("div") const liaff=document.createElement("li")
div.innerText=a.name liaff.innerText=a.name
notifycontent.appendChild(div) ulaff.appendChild(liaff)
} }
if(author["authenticated-orcid"]){ if(author["authenticated-orcid"]){
const html=$.parseHTML(String.raw`<div class="orcid-id"><a href="https://orcid.org" target="_blank"><img alt="ORCID logo" src="https://orcid.org/sites/default/files/images/orcid_16x16.png" width="16" height="16"/></a> <a href="${author.ORCID}" target="_blank">${author.ORCID} </a></div>`) const html=$.parseHTML(String.raw`<div class="orcid-id"><a href="https://orcid.org" target="_blank"><img alt="ORCID logo" src="https://orcid.org/sites/default/files/images/orcid_16x16.png" width="16" height="16"/></a> <a href="${author.ORCID}" target="_blank">${author.ORCID} </a></div>`)

View File

@ -9,21 +9,21 @@
border: 0 border: 0
} }
.paper ul.authors-list li{ .paper ul.authors-list li.author-item{
display: inline display: inline
} }
.paper ul.authors-list li:after .paper ul.authors-list li.author-item:after
{ {
content: ", " content: ", "
} }
.paper ul.authors-list li:nth-last-child(2):after .paper ul.authors-list li.author-item:nth-last-child(2):after
{ {
content: " and " content: " and "
} }
.paper ul.authors-list li:last-child:after .paper ul.authors-list li.author-item:last-child:after
{ {
content: "" content: ""
} }
@ -41,3 +41,9 @@
.author-info { .author-info {
font-size: 18x font-size: 18x
} }
.author-info ul.affiliation-list{
list-style: none;
margin: 0;
padding: 0;
border: 0
}