diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js index e482fb193caf3f5ca1a20f061b09824f7bacb2fe..92bfae40a748a260d468ac531fc96fb3431d6705 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js @@ -118,14 +118,44 @@ var SampleDataGridUtil = new function() { label : 'Parents', property : 'parents', isExportable: true, - sortable : false + sortable : false, + render : function(data, grid) { + var output = $("<span>"); + if(data.parents) { + var elements = data.parents.split(", "); + for (var eIdx = 0; eIdx < elements.length; eIdx++) { + var eIdentifier = elements[eIdx]; + var eComponent = (isLinksDisabled)?eIdentifier:FormUtil.getFormLink(eIdentifier, "Sample", eIdentifier, null); + if(eIdx != 0) { + output.append(", "); + } + output.append(eComponent); + } + } + return output; + } }); columnsFirst.push({ label : 'Children', property : 'children', isExportable: false, - sortable : false + sortable : false, + render : function(data, grid) { + var output = $("<span>"); + if(data.children) { + var elements = data.children.split(", "); + for (var eIdx = 0; eIdx < elements.length; eIdx++) { + var eIdentifier = elements[eIdx]; + var eComponent = (isLinksDisabled)?eIdentifier:FormUtil.getFormLink(eIdentifier, "Sample", eIdentifier, null); + if(eIdx != 0) { + output.append(", "); + } + output.append(eComponent); + } + } + return output; + } }); columnsFirst.push({