Commit 77dd4d0a authored by Romain Loth's avatar Romain Loth

fix old condition

assumed that source gexf file was equivalent to having a 'name' node attribute, which is not the case in specifications?
parent 5e6cc941
......@@ -417,16 +417,6 @@ function htmlfied_nodesatts(elems){
var id=elems[i]
var node = TW.Nodes[id]
if (TW.mainfile) {
var addname = (node.attributes["name"])?node.attributes["name"]:"";
var google='<a target="_blank" href="http://www.google.com/search?q='+addname+"+"+node.label.replace(" ","+")+'">';
information += '<li><b>'+ google + node.label + '</a></b></li>';
for (var i in node.attributes) {
if(i=="cluster_label")
information += '<li>&nbsp;&nbsp;'+i +" : " + node.attributes[i] + '</li>';
}
socnodes.push(information);
} else {
if(node.type==TW.conf.catSoc){
information += '<li><b>' + node.label + '</b></li>';
if(node.htmlCont==""){
......@@ -447,7 +437,7 @@ function htmlfied_nodesatts(elems){
information += '<li>'+google+"&nbsp;"+wiki+"&nbsp;"+flickr+'</li><br>';
semnodes.push(information)
}
}
}
return socnodes.concat(semnodes)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment