mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 22:03:49 +01:00
Rename class doi to DOI
This commit is contained in:
parent
fe2c0e4c64
commit
1344c94807
@ -125,12 +125,12 @@ 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 el of key) {
|
||||||
var td = $("<td/>", {
|
var td = $("<td/>", {
|
||||||
style: "white-space: nowrap;"
|
style: "white-space: nowrap;"
|
||||||
})
|
})
|
||||||
if (trueTypeOf(el) == "doi") {
|
if (trueTypeOf(el) == "DOI") {
|
||||||
var publi = await window.Cite.async(el.string)
|
var publi = await window.Cite.async(el.string)
|
||||||
$("<a/>", {
|
$("<a/>", {
|
||||||
href: el.url,
|
href: el.url,
|
||||||
@ -227,7 +227,7 @@ draft: false
|
|||||||
})
|
})
|
||||||
for (const el of tableels) {
|
for (const el of tableels) {
|
||||||
td=$(tdtemp).clone()
|
td=$(tdtemp).clone()
|
||||||
if (trueTypeOf(el) == "doi") {
|
if (trueTypeOf(el) == "DOI") {
|
||||||
var publi = await window.Cite.async(el.string)
|
var publi = await window.Cite.async(el.string)
|
||||||
$("<a/>", {
|
$("<a/>", {
|
||||||
href: el.url,
|
href: el.url,
|
||||||
|
@ -99,7 +99,7 @@ draft: false
|
|||||||
case "string":
|
case "string":
|
||||||
$("<h2/>").text(element).appendTo(sec)
|
$("<h2/>").text(element).appendTo(sec)
|
||||||
break;
|
break;
|
||||||
case "doi":
|
case "DOI":
|
||||||
var publi = await Cite.async(element.string)
|
var publi = await Cite.async(element.string)
|
||||||
var output = publi.format('bibliography', {
|
var output = publi.format('bibliography', {
|
||||||
format: 'html',
|
format: 'html',
|
||||||
|
@ -57,7 +57,7 @@ class state {
|
|||||||
return tex;
|
return tex;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
class doi {
|
class DOI {
|
||||||
constructor(doistring) {
|
constructor(doistring) {
|
||||||
this.string = doistring
|
this.string = doistring
|
||||||
};
|
};
|
||||||
@ -139,7 +139,7 @@ class dataFileBase {
|
|||||||
dat.method = method.fromString(value)
|
dat.method = method.fromString(value)
|
||||||
break;
|
break;
|
||||||
case "doi":
|
case "doi":
|
||||||
dat.DOI = new doi(value);
|
dat.DOI = new DOI(value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user