From 8b088ea1e79c1717a30c5b3df62a5798412aff17 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Thu, 16 Mar 2023 13:38:59 +0100 Subject: [PATCH] Fix link to tpa page + fix rank display --- src/components/visualizations/SearchTree.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/visualizations/SearchTree.ts b/src/components/visualizations/SearchTree.ts index 6e964ffb..374fdee7 100644 --- a/src/components/visualizations/SearchTree.ts +++ b/src/components/visualizations/SearchTree.ts @@ -11,7 +11,7 @@ function constructSearchtree(t: NcbiTree, il: boolean, rerootCallback = (x: any) let that = {}, dataTree = t, data = t.root, - equateIL = il ? "equateIL" : ""; + equateIL = il ? "true" : "false"; let tree, items; @@ -126,13 +126,12 @@ function constructSearchtree(t: NcbiTree, il: boolean, rerootCallback = (x: any) $("span.clicked").removeClass("clicked"); $(this).addClass("clicked"); - infoPane .html(`

${(d as any).name} - (${(d as any).rank}) + (${(d as any).extra.rank})

`); $("#tree_data").css({ @@ -144,7 +143,7 @@ function constructSearchtree(t: NcbiTree, il: boolean, rerootCallback = (x: any) if (ownSequences && ownSequences.length > 0) { stringBuffer = "

Peptides specific for this taxon

"; infoPane.append(stringBuffer); @@ -158,7 +157,7 @@ function constructSearchtree(t: NcbiTree, il: boolean, rerootCallback = (x: any) if (allSequences && allSequences.length > 0 && allSequences.length !== (ownSequences ? ownSequences.length : 0)) { stringBuffer = "

Peptides specific to this taxon or its subtaxa

"; infoPane.append(stringBuffer);