displayItem(node) {
    // Clear details
    this.clear()

    let language = this.widget.jsTreePanel.getSelectedLanguage()
    let translatedData = node.data[language]
    if (!translatedData) {
      let otherLanguage = Object.getOwnPropertyNames(node.data)[0]
      if (node.type != 'ontology' && node.type != 'traitClass') {
        let languageName = LangUtils.getLanguageName(language).toLowerCase()
        let otherLanguageName = LangUtils.getLanguageName(otherLanguage).toLowerCase()
        let nodeType = parseCamelCase(node.type)
        let message = `
          This ${nodeType} description was not translated in ${languageName}
          (the following description remains in ${otherLanguageName}).
        `
        this.displayMessage('warning', message)
      }

      translatedData = node.data[otherLanguage]
      language = otherLanguage
    }

    // Change detail view title
    this.$title
      .addClass(`labeled ${node.type}`)
      .text(getNodeText(node, language))

    // Generate detail view content
    let rows = sectionView(node.type, translatedData)
    this.$table.append(...rows)

    this.currentDisplayedNode = node
  }
/**
  * Display details for an item (<li>) of the jstree
  */
Display details for an item () of the jstree
Display details for an item () of the jstree
displayItem(node) {
    this.clear()
    let language = this.widget.jsTreePanel.getSelectedLanguage()
    let translatedData = node.data[language]
    if (!translatedData) {
      let otherLanguage = Object.getOwnPropertyNames(node.data)[0]
      if (node.type != 'ontology' && node.type != 'traitClass') {
        let languageName = LangUtils.getLanguageName(language).toLowerCase()
        let otherLanguageName = LangUtils.getLanguageName(otherLanguage).toLowerCase()
        let nodeType = parseCamelCase(node.type)
        let message = `
          This ${nodeType} description was not translated in ${languageName}
          (the following description remains in ${otherLanguageName}).
        `
        this.displayMessage('warning', message)
      }
      translatedData = node.data[otherLanguage]
      language = otherLanguage
    }
    this.$title
      .addClass(`labeled ${node.type}`)
      .text(getNodeText(node, language))
    let rows = sectionView(node.type, translatedData)
    this.$table.append(...rows)
    this.currentDisplayedNode = node
  }
displayItem ( node ) { this . clear ( ) let language = this . widget . jsTreePanel . getSelectedLanguage ( ) let translatedData = node . data [ language ] if ( ! translatedData ) { let otherLanguage = Object . getOwnPropertyNames ( node . data ) [ 0 ] if ( node . type != 'ontology' && node . type != 'traitClass' ) { let languageName = LangUtils . getLanguageName ( language ) . toLowerCase ( ) let otherLanguageName = LangUtils . getLanguageName ( otherLanguage ) . toLowerCase ( ) let nodeType = parseCamelCase ( node . type ) let message = ` ${ nodeType } ${ languageName } ${ otherLanguageName } ` this . displayMessage ( 'warning' , message ) } translatedData = node . data [ otherLanguage ] language = otherLanguage } this . $title . addClass ( ` ${ node . type } ` ) . text ( getNodeText ( node , language ) ) let rows = sectionView ( node . type , translatedData ) this . $table . append ( ... rows ) this . currentDisplayedNode = node }
Display details for an item (<li>) of the jstree
Display details for an item ( <li > ) of the jstree
// Clear details // Change detail view title // Generate detail view content