Skip to content
Snippets Groups Projects
Commit a7812315 authored by juanf's avatar juanf
Browse files

SSDM-1648 : Better support for openbis imports (Ongoing work).

SVN: 33762
parent e1234fc3
No related branches found
No related tags found
No related merge requests found
......@@ -83,16 +83,24 @@ function SampleTableController(parentController, title, experimentIdentifier) {
//Fill Columns model
var columns = [ {
label : 'Code',
property : 'code',
label : 'Identifier',
property : 'identifier',
isExportable: true,
sortable : true
}, {
label : 'Space',
property : 'default_space',
isExportable: true,
sortable : true
}, {
label : 'Experiment',
property : 'experiment',
isExportable: true,
sortable : true
}, {
label : 'Preview',
property : 'preview',
isExportable: false,
sortable : false,
render : function(data) {
var previewContainer = $("<div>");
......@@ -130,6 +138,7 @@ function SampleTableController(parentController, title, experimentIdentifier) {
columns.push({
label : propertyCodesDisplayNames[idx],
property : propertyCodes[idx],
isExportable: true,
sortable : true
});
}
......@@ -193,7 +202,7 @@ function SampleTableController(parentController, title, experimentIdentifier) {
var dataList = [];
for(var sIdx = 0; sIdx < samples.length; sIdx++) {
var sample = samples[sIdx];
var sampleModel = { 'code' : sample.code, 'permId' : sample.permId, 'experiment' : sample.experimentIdentifierOrNull };
var sampleModel = { 'identifier' : sample.code, 'default_space' : sample.spaceCode, 'permId' : sample.permId, 'experiment' : sample.experimentIdentifierOrNull };
for (var pIdx = 0; pIdx < propertyCodes.length; pIdx++) {
var propertyCode = propertyCodes[pIdx];
var propertyType = profile.isPropertyPressent(sampleType, propertyCode);
......
......@@ -168,12 +168,16 @@ $.extend(Grid.prototype, {
var prefix = "";
if(isAllColumnsOrVisible) {
thisGrid.columns.forEach(function(head) {
headings.push(head.property);
if(head.isExportable === true || head.isExportable === undefined) {
headings.push(head.property);
}
});
prefix += "AllColumns";
} else {
thisGrid.getVisibleColumns().forEach(function(head) {
headings.push(head.property);
if(head.isExportable === true || head.isExportable === undefined) {
headings.push(head.property);
}
});
prefix += "VisibleColumns";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment