|
|
@@ -47,7 +47,11 @@ var _defaultVisJsOptions = {
|
|
|
};
|
|
|
|
|
|
function makeShortLabel(label) { // TODO: shorter name
|
|
|
- return label;
|
|
|
+ // BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1234567
|
|
|
+ if (label.length < 30) return label;
|
|
|
+ var exLabel = label.split('.')
|
|
|
+ if (exLabel.length !== 2) return label;
|
|
|
+ return exLabel[0].substr(0, 24) + '...' + exLabel[0].substr(-10) + '.' + exLabel[1];
|
|
|
}
|
|
|
|
|
|
(function () {
|
|
|
@@ -111,12 +115,12 @@ function updateWfsResponse(features, featureTypeName) {
|
|
|
|
|
|
// add event listeners
|
|
|
_network.on('selectNode', function (params) {
|
|
|
- console.log('Selection: ', params.nodes)
|
|
|
+ if(DBG)console.log('Selection: ', params.nodes)
|
|
|
var featureID = params.nodes[0]
|
|
|
if (!featureID) return;
|
|
|
if ('-loading' === featureID.substr(-1 * '-loading'.length)) {
|
|
|
// TODO: gui msg...
|
|
|
- console.log('loading nodes connected with: "' +featureID.substr(0, featureID.length - '-loading'.length) + '" ...')
|
|
|
+ if(DBG)console.log('loading nodes connected with: "' +featureID.substr(0, featureID.length - '-loading'.length) + '" ...')
|
|
|
return;
|
|
|
}
|
|
|
var selectedNode = _nodes.get(featureID)
|
|
|
@@ -231,7 +235,6 @@ function parseResponseXlinkListRec(_todoGraphData, json, typeName, parentNodeId,
|
|
|
}
|
|
|
} else if (p5Utils__isObject(json)) {
|
|
|
if(DBG)console.log('TODO: Not implemented - parseResponseRec isObject - fetch more xlink object');
|
|
|
- console.log('TODO: Not implemented - parseResponseRec isObject - fetch more xlink object', json);
|
|
|
// var nodeId = json.substr(json.indexOf('#') + 1)
|
|
|
// var objectName = typeName
|
|
|
// {
|