From 47320c547f1a96bd262f38b07f9de0bc05e8779c Mon Sep 17 00:00:00 2001
From: gunturkunhakan
Date: Sun, 6 Jun 2021 03:19:21 -0500
Subject: changes in custom ontology and search
---
templates/tableview.html | 69 +++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 66 insertions(+), 3 deletions(-)
(limited to 'templates/tableview.html')
diff --git a/templates/tableview.html b/templates/tableview.html
index 996113b..d2936ce 100644
--- a/templates/tableview.html
+++ b/templates/tableview.html
@@ -38,7 +38,6 @@
width: 40%;
}
- /* Clear floats after the columns */
.row:after {
content: "";
display: table;
@@ -49,6 +48,7 @@
+ You can click on the column header to sort by that column.
{{ message |safe}}
@@ -63,15 +63,19 @@
{}
var table = document.getElementById("myTable");
var header = table.createTHead();
- var row = header.insertRow(0);
+ var row = header.insertRow(0);
var cell = row.insertCell(0);
cell.innerHTML = "Gene";
+ cell.onclick = function() {sortTable(0)};
var cell = row.insertCell(1);
cell.innerHTML = "Abstract Count";
+ cell.onclick = function() {sortTable(1)};
var cell = row.insertCell(2);
cell.innerHTML = "Keyword";
+ cell.onclick = function() {sortTable(2)};
var cell = row.insertCell(3);
cell.innerHTML = "Category";
+ cell.onclick = function() {sortTable(3)};
{%for p in jedges['data']%}
var x=document.getElementById('myTable').insertRow(1);
@@ -94,7 +98,6 @@
this_url1 = '\\sentences?edgeID='+'{{genes_session_tmp}}'+'_snt|'+source+'|'+target;
this_url2 = '\\shownode?nodetype='+type+'&node='+target;
{%endif%}
- //genegene_url = '/startGeneGene?forTopGene='+source;
genegene_url = '\\synonyms?node='+source;
y.innerHTML="{{p['source']}}";
y= x.insertCell(1);
@@ -106,6 +109,66 @@
{% endfor %}
}
+
+
+
+
{%endif%}
Review searches that have zero abstract counts.
--
cgit v1.2.3