mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-25 05:31:51 +02: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.shift()
|
||||
Reflect.setPrototypeOf(key[0], method.prototype)
|
||||
Reflect.setPrototypeOf(key[1], doi.prototype)
|
||||
Reflect.setPrototypeOf(key[1], DOI.prototype)
|
||||
for (const el of key) {
|
||||
var td = $("<td/>", {
|
||||
style: "white-space: nowrap;"
|
||||
})
|
||||
if (trueTypeOf(el) == "doi") {
|
||||
if (trueTypeOf(el) == "DOI") {
|
||||
var publi = await window.Cite.async(el.string)
|
||||
$("<a/>", {
|
||||
href: el.url,
|
||||
@ -227,7 +227,7 @@ draft: false
|
||||
})
|
||||
for (const el of tableels) {
|
||||
td=$(tdtemp).clone()
|
||||
if (trueTypeOf(el) == "doi") {
|
||||
if (trueTypeOf(el) == "DOI") {
|
||||
var publi = await window.Cite.async(el.string)
|
||||
$("<a/>", {
|
||||
href: el.url,
|
||||
|
@ -99,7 +99,7 @@ draft: false
|
||||
case "string":
|
||||
$("<h2/>").text(element).appendTo(sec)
|
||||
break;
|
||||
case "doi":
|
||||
case "DOI":
|
||||
var publi = await Cite.async(element.string)
|
||||
var output = publi.format('bibliography', {
|
||||
format: 'html',
|
||||
|
@ -57,7 +57,7 @@ class state {
|
||||
return tex;
|
||||
};
|
||||
}
|
||||
class doi {
|
||||
class DOI {
|
||||
constructor(doistring) {
|
||||
this.string = doistring
|
||||
};
|
||||
@ -139,7 +139,7 @@ class dataFileBase {
|
||||
dat.method = method.fromString(value)
|
||||
break;
|
||||
case "doi":
|
||||
dat.DOI = new doi(value);
|
||||
dat.DOI = new DOI(value);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user