Skip to content

Commit

Permalink
show existing sequence file; do not show 0 for empty biosafety level
Browse files Browse the repository at this point in the history
  • Loading branch information
hplahar committed Nov 10, 2014
1 parent f4de067 commit d65e559
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/webapp/scripts/upload/uploadService.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ angular.module('ice.upload.service', [])
getEntryValue:function (type, entry, index) {
var dataSchema = this.getDataSchema(type);

if (index < 15 || dataSchema[index] == "selectionMarkers")
return entry[dataSchema[index]];
if (index < 15 || dataSchema[index] == "selectionMarkers") {
var val = entry[dataSchema[index]];
if (dataSchema[index] == "bioSafetyLevel" && val == 0)
return '';
return val;
}

switch (type.toLowerCase()) {
case "strain":
Expand All @@ -162,6 +166,9 @@ angular.module('ice.upload.service', [])

case "arabidopsis":
return entry.arabidopsisSeedData[dataSchema[index]];

case "part":
return entry[dataSchema[index]];
}

return undefined;
Expand Down

0 comments on commit d65e559

Please sign in to comment.