From 0481a29209b8ebff726b5d408df14e42f7787265 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Tue, 23 Jun 2015 15:40:49 +0000 Subject: [PATCH] SSDM-1959 : Show gene name instead of gene number in ELN plate hierarchy view SVN: 34261 --- .../1/as/webapps/eln-lims/html/js/util/PrintUtil.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/PrintUtil.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/PrintUtil.js index 91688a0b1c5..97a94b0cab7 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/PrintUtil.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/PrintUtil.js @@ -73,7 +73,11 @@ var PrintUtil = new function() { if(optionalTitle) { $newInspector.append(optionalTitle); } else { - $newInspector.append($("<strong>").append(entity.code)); + var nameLabel = entity.properties[profile.propertyReplacingCode]; + if(!nameLabel) { + nameLabel = entity.code; + } + $newInspector.append($("<strong>").append(nameLabel)); } var $newInspectorTable = $("<table>", { "class" : "properties table table-condensed" }); -- GitLab