|
@@ -21,7 +21,8 @@ var Typeahead = global.p5VendorJs.Typeahead;
|
|
|
var mapStatsNodeToGraphNode = function (node) {
|
|
var mapStatsNodeToGraphNode = function (node) {
|
|
|
return {
|
|
return {
|
|
|
id: node['@object'] + '.' + node['@primaryKey'],
|
|
id: node['@object'] + '.' + node['@primaryKey'],
|
|
|
- label: node['@label'],
|
|
|
|
|
|
|
+ label: Utils.nodeLabelShort(node['@label']),
|
|
|
|
|
+ rawLabel: node['@label'],
|
|
|
value: 1,
|
|
value: 1,
|
|
|
level: 0,
|
|
level: 0,
|
|
|
}
|
|
}
|
|
@@ -69,6 +70,10 @@ var Utils = (function __makeUtils() {
|
|
|
return [].concat(_cacheListFeatureNames);
|
|
return [].concat(_cacheListFeatureNames);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ Utils.nodeLabelShort = function (label) {
|
|
|
|
|
+ return label.replace('SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ', 'Sp. z o.o.')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return Utils;
|
|
return Utils;
|
|
|
})();
|
|
})();
|
|
|
|
|
|