function createOntologyNode(ontology, languageCode=DEFAULT_DATA_LANG) {
  return {
    'id': ontology.ontologyDbId,
    'parent': '#',
    'data': {[languageCode.toLowerCase()]: ontology},
    'type': 'ontology'
  }
}
/**
 * Transforms a Breeding API ontology into a jstree root node
 */
Transforms a Breeding API ontology into a jstree root node
Transforms a Breeding API ontology into a jstree root node
function createOntologyNode(ontology, languageCode=DEFAULT_DATA_LANG) {
  return {
    'id': ontology.ontologyDbId,
    'parent': '#',
    'data': {[languageCode.toLowerCase()]: ontology},
    'type': 'ontology'
  }
}
function createOntologyNode ( ontology , languageCode = DEFAULT_DATA_LANG ) { return { 'id' : ontology . ontologyDbId , 'parent' : '#' , 'data' : { [ languageCode . toLowerCase ( ) ] : ontology } , 'type' : 'ontology' } }
Transforms a Breeding API ontology into a jstree root node
Transforms a Breeding API ontology into a jstree root node