mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Combine supporting and not for statistics
This commit is contained in:
parent
5bb19399f3
commit
c166b3555d
@ -156,7 +156,7 @@ draft: false
|
|||||||
var refstr = $("#sel_ref option:selected").val()
|
var refstr = $("#sel_ref option:selected").val()
|
||||||
var sdatdic = new Map()
|
var sdatdic = new Map()
|
||||||
for (const d of window.filtData) {
|
for (const d of window.filtData) {
|
||||||
const key = JSON.stringify([d.code, d.method, d.DOI])
|
const key = JSON.stringify([d.code, d.method, d.DOI.string])
|
||||||
if (!(sdatdic.has(key))) {
|
if (!(sdatdic.has(key))) {
|
||||||
sdatdic.set(key, new Map())
|
sdatdic.set(key, new Map())
|
||||||
}
|
}
|
||||||
@ -187,21 +187,18 @@ draft: false
|
|||||||
key = JSON.parse(keystr)
|
key = JSON.parse(keystr)
|
||||||
key.shift()
|
key.shift()
|
||||||
Reflect.setPrototypeOf(key[0], method.prototype)
|
Reflect.setPrototypeOf(key[0], method.prototype)
|
||||||
Reflect.setPrototypeOf(key[1], DOI.prototype)
|
//Reflect.setPrototypeOf(key[1], DOI.prototype)
|
||||||
for (const el of key) {
|
for (const [i,el] of key.entries()) {
|
||||||
var td = $("<td/>")
|
var td = $("<td/>")
|
||||||
if (trueTypeOf(el) == DOI.name) {
|
if (i===1) {
|
||||||
var publi = doiCache.get(el.string, true)
|
var publi = doiCache.get(el, true)
|
||||||
const sets = await getSets()
|
const sets = await getSets()
|
||||||
if (sets.has(el.string)) {
|
if (sets.has(el)) {
|
||||||
var str=sets.get(el.string)
|
var str=sets.get(el)
|
||||||
if(el.IsSupporting){
|
|
||||||
str+=" (SI)"
|
|
||||||
}
|
|
||||||
$(td).append(str)
|
$(td).append(str)
|
||||||
}
|
}
|
||||||
$("<a/>", {
|
$("<a/>", {
|
||||||
href: el.url,
|
href: new DOI(el).url,
|
||||||
target: "_blank"
|
target: "_blank"
|
||||||
}).html(publi.format('citation', {
|
}).html(publi.format('citation', {
|
||||||
format: 'html',
|
format: 'html',
|
||||||
@ -274,7 +271,7 @@ draft: false
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
await window.doiCache.addRange(window.filtData.map((d) => d.DOI.string))
|
await window.doiCache.addRange(window.filtData.map((d) => d.DOI.string))
|
||||||
for (const el of uniq(window.filtData.map(d => [d.code, d.method, d.DOI]))) {
|
for (const el of uniq(window.filtData.map(d => [d.code, d.method, d.DOI.string]))) {
|
||||||
op = $("<option/>", {
|
op = $("<option/>", {
|
||||||
value: JSON.stringify(el)
|
value: JSON.stringify(el)
|
||||||
}).text(el[1])
|
}).text(el[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user