10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-22 18:57:38 +02:00

Rename class doi to DOI

This commit is contained in:
Mickaël Véril 2019-11-02 15:10:57 +01:00
parent fe2c0e4c64
commit 1344c94807
3 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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',

View File

@ -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:
}