Commit b62eaca0 authored by Matija Obreza's avatar Matija Obreza

Ignore Aliases, use accession donorName/donorCode

parent d7250b7b
......@@ -362,15 +362,15 @@ public class DownloadServiceImpl implements DownloadService {
if (names != null && names.size() > 0) {
String acceName = null;
String otherNumb = null;
String donorNumb = null;
// String donorNumb = null;
for (AccessionAlias a : names) {
switch (a.getAliasType()) {
case ACCENAME:
acceName = addName(acceName, a.getName());
break;
case DONORNUMB:
donorNumb = a.getName();
break;
// case DONORNUMB:
// donorNumb = a.getName();
// break;
case OTHERNUMB:
otherNumb = addName(otherNumb, a.getName(), a.getUsedBy());
break;
......@@ -380,12 +380,12 @@ public class DownloadServiceImpl implements DownloadService {
}
updateCell(row, COL_ACCENAME, acceName);
updateCell(row, COL_DONORNUMB, donorNumb);
updateCell(row, COL_OTHERNUMB, otherNumb);
}
updateCell(row, COL_DONORCODE, accession.getDonorCode());
updateCell(row, COL_DONORNAME, accession.getDonorName());
updateCell(row, COL_DONORNUMB, accession.getDonorNumb());
if (accession.getUuid() != null) {
updateCell(row, COL_UUID, accession.getUuid().toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment