mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Fix method missing in data class
This commit is contained in:
parent
f690de40d3
commit
f72186fed3
@ -40,6 +40,7 @@ draft: false
|
|||||||
var els=[];
|
var els=[];
|
||||||
md.push(["Title",dat.title]);
|
md.push(["Title",dat.title]);
|
||||||
md.push(["Code",dat.code]);
|
md.push(["Code",dat.code]);
|
||||||
|
md.push(["Method",dat.method])
|
||||||
md.push(["Basis",dat.basis]);
|
md.push(["Basis",dat.basis]);
|
||||||
md.push(["DOI",dat.doi]);
|
md.push(["DOI",dat.doi]);
|
||||||
md.forEach(function(element){
|
md.forEach(function(element){
|
||||||
|
@ -66,6 +66,7 @@ class data {
|
|||||||
constructor(){
|
constructor(){
|
||||||
this.title='';
|
this.title='';
|
||||||
this.code=null;
|
this.code=null;
|
||||||
|
this.method=null;
|
||||||
this.basis=null;
|
this.basis=null;
|
||||||
this.doi=null;
|
this.doi=null;
|
||||||
this.excitations=[];
|
this.excitations=[];
|
||||||
@ -99,6 +100,9 @@ class data {
|
|||||||
dat.code=new code(vals[0],null);
|
dat.code=new code(vals[0],null);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "method":
|
||||||
|
dat.method=val;
|
||||||
|
break;
|
||||||
case "basis":
|
case "basis":
|
||||||
var vals=val.split(",")
|
var vals=val.split(",")
|
||||||
if(vals.length>=2){
|
if(vals.length>=2){
|
||||||
@ -106,7 +110,7 @@ class data {
|
|||||||
} else {
|
} else {
|
||||||
dat.basis=new basis(vals[0],null);
|
dat.basis=new basis(vals[0],null);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "doi":
|
case "doi":
|
||||||
dat.doi=new doi(val);
|
dat.doi=new doi(val);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user