let buildOptionalTreeSrc=function(node) {
if ( node == null ) return [];
- let parentList = node.getParentList(false,false); // default : (false,false)==(rootNode exclus, not self)
- if ( parentList.length > 0 ) { parentList=parentList.slice(1);}; // The first node is the code node
+ let parentList = node.getParentList(false,true); // default : (false,false)==(rootNode exclus, not self)
+ if ( parentList.length > 0 ) { parentList=parentList.slice(1);}; // The first node is the current dataset name node
// La construction des optionals en suivant les parents fonctionnent car les SIMP ne portent pas les optionnals
// [ {title: "Node 1"}, {title: "Folder 2", children: [ {title: "Node 2.1"}, {title: "Node 2.2"} ]} ]
// [ {title: "Node 1"} ] + [ {title: "Folder 2", children: [ {title: "Node 2.1"}, {title: "Node 2.2"} ]} ]