10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Fix publication not shown in select when it's not in sets

This commit is contained in:
Mickaël Véril 2020-01-09 10:55:24 +01:00
parent 13f775a03c
commit abae66d2b3
2 changed files with 10 additions and 4 deletions

View File

@ -125,10 +125,15 @@ draft: false
var op = $("<option/>", {
value: JSON.stringify(val)
})
if ($(this).attr("name") == "DOI" && sets.has(val.string)) {
str=sets.get(val.string)
if(val.IsSupporting){
str+=" (SI)"
if ($(this).attr("name") == "DOI") {
if (sets.has(val.string)) {
str=sets.get(val.string)
if(val.IsSupporting){
str+=" (SI)"
}
}
else{
str=val.toString()
}
$(op).text(str)
}

View File

@ -118,6 +118,7 @@ class DOI {
if (this.IsSupporting) {
str+=" "+"(SI)"
}
return str
};
get url() {
return new URL(this.string, 'https://doi.org').toString()