Commit 361a7c86 authored by Fintan Mc Gee's avatar Fintan Mc Gee

SHORTED TOOL TIPS AND ODE INFo text

added tooltuip firleds for DH
parent f27d94e3
......@@ -316,6 +316,13 @@ angular.module('blizaarModule.services')
nodeInfoService.addNodeAttribute("description");
nodeInfoService.addNodeAttribute("abstract_en");
nodeInfoService.addNodeAttribute("caption_en");
tooltipService.clearNodeAttributes()
tooltipService.addNodeAttribute("name");
tooltipService.addNodeAttribute("description");
tooltipService.addNodeAttribute("abstract_en");
tooltipService.addNodeAttribute("caption_en");
multiLayerGraphService.getGraph().buildAdjacencyList();
attributeDisplayService.clearDisplayAttributes();
......
......@@ -100,6 +100,7 @@ angular.module('blizaarModule.services')
if(typeof(node[this.nodesAttributes[i]]) !== 'undefined')
if(this.nodeImages.indexOf(this.nodesAttributes[i]) > -1){
// nodeInfoText += "<b>" + this.nodesAttributes[i] + ": </b><img src=\"" + node[this.nodesAttributes[i]] + "\" height=\"150\"><br>";
nodeInfoText += "<b>" + this.nodesAttributes[i] + ": </b><img src=\"" + multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName) + "\" height=\"150\"><br>";
}
......@@ -107,7 +108,11 @@ angular.module('blizaarModule.services')
nodeInfoText += "<b><a href=\"" +multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName)+ "\" target = \"_blank\">" + this.nodesAttributes[i] + "</a></b>:<br>";
}
else {
nodeInfoText += "<b>" + this.nodesAttributes[i] + ": </b>" + multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName)+ "<br>";
var propValue = multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName);
if(propValue.length > 500) {
propValue = propValue.substr(0, 500) + "...";
}
nodeInfoText += "<b>" + this.nodesAttributes[i] + ": </b>" + propValue+ "<br>";
}
}
......@@ -188,7 +193,11 @@ angular.module('blizaarModule.services')
nodeInfoText += "<b><a href=\"" +multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName)+ "\" target = \"_blank\">" + this.nodesAttributes[i] + "</a></b>:<br>";
}
else {
nodeInfoText += "<b>" + this.nodesAttributes[i] + ": </b>" + multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName)+ "<br>";
var propValue = multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName);
if(propValue.length > 1000) {
propValue = propValue.substr(0, 1000) + "...";
}
nodeInfoText += "<b>" + this.nodesAttributes[i] + ": </b>" + propValue+ "<br>";
}
}
//tooltipText+="<b>"+"Zserie"+": </b>"+node["zseri"]+"<br>";
......
......@@ -69,7 +69,11 @@ angular.module('blizaarModule.services')
//tooltipText+="<b>"+this.nodesAttributes[i]+": </b>"+node[this.nodesAttributes[i]]+"<br>";
//using getNodePropertyValue func to ensure that we get a value loacl to the layer if it is lcoal, or a vlaue from the master layer if it is not
tooltipText+="<b>"+this.nodesAttributes[i]+": </b>"+multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName)+"<br>";
var propValue = multiLayerGraphService.getNodePropertyValue(node.uid,this.nodesAttributes[i],layerName);
if(propValue.length > 100) {
propValue = propValue.substr(0, 100) + "...";
}
tooltipText+="<b>"+this.nodesAttributes[i]+": </b>"+propValue+"<br>";
}
//tooltipText+="<b>"+"Zserie"+": </b>"+node["zseri"]+"<br>";
if(tooltipText === "")
......
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