diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/installations/NexusProfile.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/installations/NexusProfile.js index 21c2679f25dc44bf8a3361d6251d77711b4a9be9..0a2dd1f1e671c0dcee47f11c52b97f54fb8709ea 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/installations/NexusProfile.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/installations/NexusProfile.js @@ -7,6 +7,7 @@ $.extend(NexusProfile.prototype, StandardProfile.prototype, { init: function(serverFacade){ DefaultProfile.prototype.init.call(this, serverFacade); + this.propertyReplacingCode = "CELLARIO_BC"; this.inventorySpaces = ["LIBRARIES"]; this.searchSamplesUsingV3OnDropbox = true; this.searchSamplesUsingV3OnDropboxRunCustom = true; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/legacy/SampleHierarchy.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/legacy/SampleHierarchy.js index 98d6844208e0cb2afed39c43e5b7860b52ef3e3e..586dd340f7186c13ffd6658478de82d9e5e68c0e 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/legacy/SampleHierarchy.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/legacy/SampleHierarchy.js @@ -307,7 +307,12 @@ function SampleHierarchy(serverFacade, containerId, profile, sample) { 'style' : 'cursor:pointer; width:13px; height:18px;', })); - var $sampleLink = $('<a>', { 'href' : "javascript:mainController.changeView('showViewSamplePageFromPermId', '" + sample.permId + "')"}).html(sample.code); + var nameLabel = sample.properties[profile.propertyReplacingCode]; + if(!nameLabel) { + nameLabel = sample.code; + } + + var $sampleLink = $('<a>', { 'href' : "javascript:mainController.changeView('showViewSamplePageFromPermId', '" + sample.permId + "')"}).text(nameLabel);