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

SSDM-983 : PAPER - Annotations on Batch Import

SVN: 32825
parent 6e2ad6d1
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ function SampleLinksWidget(containerId, profile, serverFacade, title, sampleType
this.stateObj[sample.permId] = sampleTypeAnnotations;
}
sampleTypeAnnotations["code"] = sample.code; //Adds code to the annotations if not present
sampleTypeAnnotations["identifier"] = sample.identifier; //Adds code to the annotations if not present
if(propertyTypeValue === null) {
delete this.stateObj[sample.permId];
......@@ -76,14 +76,14 @@ function SampleLinksWidget(containerId, profile, serverFacade, title, sampleType
for(var permId in this.stateObj) {
xmlDoc += "<Sample permId=\"" + permId + "\"";
for(var propertyTypeCode in this.stateObj[permId]) {
if(propertyTypeCode == "code") {
if(propertyTypeCode == "identifier") {
var propertyTypeValue = this.stateObj[permId][propertyTypeCode];
xmlDoc += " " + propertyTypeCode + "=\"" + propertyTypeValue +"\"";
}
}
for(var propertyTypeCode in this.stateObj[permId]) {
if(propertyTypeCode != "code") {
if(propertyTypeCode != "identifier") {
var propertyTypeValue = this.stateObj[permId][propertyTypeCode];
xmlDoc += " " + propertyTypeCode + "=\"" + propertyTypeValue +"\"";
}
......
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