mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +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=[];
|
||||
md.push(["Title",dat.title]);
|
||||
md.push(["Code",dat.code]);
|
||||
md.push(["Method",dat.method])
|
||||
md.push(["Basis",dat.basis]);
|
||||
md.push(["DOI",dat.doi]);
|
||||
md.forEach(function(element){
|
||||
|
@ -66,6 +66,7 @@ class data {
|
||||
constructor(){
|
||||
this.title='';
|
||||
this.code=null;
|
||||
this.method=null;
|
||||
this.basis=null;
|
||||
this.doi=null;
|
||||
this.excitations=[];
|
||||
@ -99,6 +100,9 @@ class data {
|
||||
dat.code=new code(vals[0],null);
|
||||
}
|
||||
break;
|
||||
case "method":
|
||||
dat.method=val;
|
||||
break;
|
||||
case "basis":
|
||||
var vals=val.split(",")
|
||||
if(vals.length>=2){
|
||||
@ -106,7 +110,7 @@ class data {
|
||||
} else {
|
||||
dat.basis=new basis(vals[0],null);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case "doi":
|
||||
dat.doi=new doi(val);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user