diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksController.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksController.js index 92ed045446d5947f1b83cd849eb641c928432eb0..af030241056492e8d4b4f4c7b07c3c2df74aab75 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksController.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksController.js @@ -23,7 +23,7 @@ function LinksController(title, sampleTypeHints, isDisabled, samplesToEdit, show if(sampleTypeHints && showAnnotableTypes) { for(var sIdx = 0; sIdx < sampleTypeHints.length; sIdx++) { - linksView.initContainerForType(sampleTypeHints[sIdx].TYPE); + linksView.initContainerForType(sampleTypeHints[sIdx].TYPE, undefined, sampleTypeHints[sIdx].LABEL); } } diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksView.js index 2dccb6400398c5c2cd1277cf670746f53ebec193..5bf958ea496412e6ee0dc19556b3ea739f1770ef 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksView.js @@ -27,7 +27,7 @@ function LinksView(linksController, linksModel) { // // External API // - linksView.initContainerForType = function(sampleTypeCode, samples) { + linksView.initContainerForType = function(sampleTypeCode, samples, sampleTypeLabel) { var $dataGridContainer = sampleGridContainerByType[sampleTypeCode]; var samplesOnGrid = linksModel.samplesByType[sampleTypeCode]; @@ -49,7 +49,8 @@ function LinksView(linksController, linksModel) { var $samplePickerContainer = $("<div>"); if(sampleTypeCode) { - $sampleTableContainer.append($("<div>").append(sampleTypeCode + ":") + var sampleTableContainerLabel = (sampleTypeLabel)?sampleTypeLabel:sampleTypeCode; + $sampleTableContainer.append($("<div>").append(sampleTableContainerLabel + ":") .append(" ") .append(linksView.getAddBtn($samplePickerContainer, sampleTypeCode)) .css("margin","5px"));