10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 06:14:38 +01:00

Fix method missing in data class

This commit is contained in:
Mickaël Véril 2019-09-16 09:47:57 +02:00
parent f690de40d3
commit f72186fed3
2 changed files with 6 additions and 1 deletions

View File

@ -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){

View File

@ -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){