Skip to content

Commit

Permalink
update debug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoranzhou committed Jul 12, 2024
1 parent 720735d commit 7005984
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,16 @@
//console.log("csv will be: "+ label+", "+ mandatory+", "+ units+", "+fieldType+", "+fieldValidate );
let ontid = "ENACL:" + (100+parseInt(number)).toString()+ (1000+parseInt(index)).toString();
let xrefOnt = ontId ? `
xref: `+ ontId : {};
xref: `+ ontId : "";

text += `
[Term]
id: `+ontid+`
name: `+label+`
comment: `+ "\t mandatory: "+ mandatory+".\t unit:"+ units+".\t field type: "+fieldType+".\t validation: "+fieldValidate.replaceAll(/(?:\r\n|\r|\n)/g, "").replace(/(?:\r\n|\r|\n)/g, "").replaceAll("{","\\{").replaceAll("}","\\}")+`
subset: samples
def: " `+description.replaceAll('"','\\"')+`"`+xrefOnt+`
def: " `+description.replaceAll('"','\\"')+`"
`+xrefOnt+`
relationship: `+mandatoryDict[mandatory] + ` ENACL:0`+checklistNo.slice(2)+"\n";

// label+"\t"+ mandatory+"\t"+ units+"\t"+fieldType+"\t"+fieldValidate.replace(/(?:\r\n|\r|\n)/g, "").replace(/(?:\r\n|\r|\n)/g, "")+"\n"
Expand Down

0 comments on commit 7005984

Please sign in to comment.