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

SSDM-948 : ELN UI - PAPER - Inventory Structure and more

SVN: 32506
parent f9efb550
No related branches found
No related tags found
No related merge requests found
...@@ -54,14 +54,6 @@ $.extend(DefaultProfile.prototype, { ...@@ -54,14 +54,6 @@ $.extend(DefaultProfile.prototype, {
this.allPropertyTypes = []; this.allPropertyTypes = [];
this.displaySettings = {}; this.displaySettings = {};
this.typeGroups = {
"OTHERS" : {
"TYPE" : "OTHERS",
"DISPLAY_NAME" : "Others",
"LIST" : [] //All types not present in other groups and not in notShowTypes, is a box where everything that is not configured goes by default
}
};
this.typePropertiesForTable = {}; this.typePropertiesForTable = {};
this.typePropertiesForSmallTable = {}; this.typePropertiesForSmallTable = {};
...@@ -382,18 +374,6 @@ $.extend(DefaultProfile.prototype, { ...@@ -382,18 +374,6 @@ $.extend(DefaultProfile.prototype, {
return null; return null;
} }
this.getGroupTypeCodeForTypeCode = function(typeCode) {
for(typeGroupCode in this.typeGroups) {
for(var i = 0; i < this.typeGroups[typeGroupCode]["LIST"].length; i++) {
var sampleTypeCode = this.typeGroups[typeGroupCode]["LIST"][i];
if(sampleTypeCode === typeCode) {
return this.typeGroups[typeGroupCode]["TYPE"];
}
}
}
return null;
}
this.getAllPropertiCodesForTypeCode = function(typeCode) { this.getAllPropertiCodesForTypeCode = function(typeCode) {
var allPropertiCodes = new Array(); var allPropertiCodes = new Array();
var sampleType = this.getSampleTypeForSampleTypeCode(typeCode); var sampleType = this.getSampleTypeForSampleTypeCode(typeCode);
...@@ -509,20 +489,11 @@ $.extend(DefaultProfile.prototype, { ...@@ -509,20 +489,11 @@ $.extend(DefaultProfile.prototype, {
} }
// //
// Initializes the Others list with all sampleType codes that are neither in typeGroups or notShowTypes // Initializes
// //
this.init = function(callbackWhenDone) { this.init = function(callbackWhenDone) {
var _this = this; var _this = this;
for(var i = 0; i < this.allSampleTypes.length; i++) {
var sampleType = this.allSampleTypes[i];
if($.inArray(sampleType.code, this.notShowTypes) === -1) {
if(this.getGroupTypeCodeForTypeCode(sampleType.code) === null) {
this.typeGroups["OTHERS"]["LIST"].push(sampleType.code);
}
}
}
this.initPropertyTypes(function(){ this.initPropertyTypes(function(){
_this.initVocabulariesForSampleTypes(function() { _this.initVocabulariesForSampleTypes(function() {
callbackWhenDone(); callbackWhenDone();
......
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