diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js index 9f7f606272a1fdad094edc6e1d99d6568da5106d..700e5f8ed2f397efa192a0ac9831ee4968bccffb 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js @@ -48,21 +48,25 @@ function StorageListView(storageListController, storageListModel) { return data.identifier.toLowerCase().indexOf(filter) !== -1; } }); -// columns.push({ -// label : 'Identifier', -// property : 'identifier', -// isExportable: true, -// sortable : true, -// filter : function(data, filter) { -// return data.identifier.toLowerCase().indexOf(filter) !== -1; -// }, -// sort : function(data1, data2, asc) { -// var value1 = data1.identifier; -// var value2 = data2.identifier; -// var sortDirection = (asc)? 1 : -1; -// return sortDirection * naturalSort(value1, value2); -// } -// }); + columns.push({ + label : 'Identifier', + property : 'identifier', + isExportable: true, + sortable : false, + showByDefault: false, + render : function(data) { + return FormUtil.getFormLink(data.identifier, "Sample", data.permId); + }, + filter : function(data, filter) { + return data.identifier.toLowerCase().indexOf(filter) !== -1; + }, + sort : function(data1, data2, asc) { + var value1 = data1.identifier; + var value2 = data2.identifier; + var sortDirection = (asc)? 1 : -1; + return sortDirection * naturalSort(value1, value2); + } + }); var storagePropertyCodes = profile.getAllPropertiCodesForTypeCode("STORAGE_POSITION"); var storagePropertyCodesAsMap = {};