mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-26 06:01:49 +02:00
Fix TBE first
This commit is contained in:
parent
9415856b98
commit
5b3fccb4a6
@ -221,25 +221,20 @@ 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])).sort((a,b)=>{
|
for (const el of uniq(window.filt.map(d=>[d.code,d.method,d.DOI])))
|
||||||
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/>", {
|
op=$("<option/>", {
|
||||||
value: JSON.stringify(el)
|
value: JSON.stringify(el)
|
||||||
}).text(el[1]).appendTo(sel_ref)
|
}).text(el[1])
|
||||||
|
if(el[1].name=="TBE"){
|
||||||
|
$(sel_ref).prepend(op)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$(sel_ref).append(op)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
sel_ref.selectedIndex=0;
|
||||||
for (const d of window.filt) {
|
for (const d of window.filt) {
|
||||||
var row = $("<tr/>")
|
var row = $("<tr/>")
|
||||||
var rowd = []
|
var rowd = []
|
||||||
|
Loading…
Reference in New Issue
Block a user