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 91688a0b1c5551e2b03b4835ed8c04b818bef1ef..97a94b0cab770c6a14999a9989bfb8f61477b403 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" });