diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js index 68e9fc8b2e7de9809a144d9f91a819fa1e36c75b..8015b21bb22752fed633ccb986e8620691ebba3b 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js @@ -76,6 +76,18 @@ function SampleFormView(sampleFormController, sampleFormModel) { var nameLabel = this._sampleFormModel.sample.properties[profile.propertyReplacingCode]; if(nameLabel) { nameLabel = html.sanitize(nameLabel); + } else if(this._sampleFormModel.sample.sampleTypeCode === "STORAGE_POSITION") { + var properties = this._sampleFormModel.sample.properties; + var storagePropertyGroup = profile.getStoragePropertyGroup(); + var boxProperty = properties[storagePropertyGroup.boxProperty]; + if(!boxProperty) { + boxProperty = "NoBox"; + } + var positionProperty = properties[storagePropertyGroup.positionProperty]; + if(!positionProperty) { + positionProperty = "NoPos"; + } + nameLabel = boxProperty + " : " + positionProperty; } else { nameLabel = this._sampleFormModel.sample.code; }