فهرست منبع

+ shorter node label

Piotr Labudda 7 سال پیش
والد
کامیت
7d0899e148
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      SE/se-lib/Route/UrlAction/BiAuditGraph.php.network-graph.js

+ 6 - 1
SE/se-lib/Route/UrlAction/BiAuditGraph.php.network-graph.js

@@ -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;
 })();
 })();