10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00
This commit is contained in:
Mickaël Véril 2019-12-09 15:12:09 +01:00
parent e92def5e02
commit 9415856b98
2 changed files with 16 additions and 2 deletions

View File

@ -221,7 +221,21 @@ draft: false
dtb.empty() dtb.empty()
sel_ref = $("#sel_ref") sel_ref = $("#sel_ref")
await doiCache.addRange(window.filt.map((x)=>x.DOI.string)) await doiCache.addRange(window.filt.map((x)=>x.DOI.string))
for (const el of uniq(window.filt.map(d=>[d.code,d.method,d.DOI]))){ for (const el of uniq(window.filt.map(d=>[d.code,d.method,d.DOI])).sort((a,b)=>{
if (a[1].method.name==b[1].name) {
return 0
}
else{
if(a.method.name=="TBE"){
return -1
}
else if(b.method.name=="TBE){
return 1
}
}
return 0
}
{
$("<option/>", { $("<option/>", {
value: JSON.stringify(el) value: JSON.stringify(el)
}).text(el[1]).appendTo(sel_ref) }).text(el[1]).appendTo(sel_ref)

View File

@ -161,7 +161,7 @@ class dataFileBase {
this.sourceFile=null this.sourceFile=null
} }
get isTBE(){ get isTBE(){
return this.method.name="TBE" return this.method.name=="TBE"
} }
static async loadAsync(file) { static async loadAsync(file) {
switch (trueTypeOf(file)) { switch (trueTypeOf(file)) {