// Construction of the result list
for (KnowledgeElement kelm : found) {
- result.add(new StudyDTO(kelm.getIndex(), kelm.getReference(), kelm
+ StudyDTO studyDTO = new StudyDTO(kelm.getIndex(), kelm.getReference(), kelm
.getProgressState(), kelm.getTitle(), kelm.getAuthor()
- .getDisplayName()));
+ .getDisplayName());
+ studyDTO.setDate(kelm.getDate());
+ result.add(studyDTO);
}
return result;
}
// Construction of the result list
for (Study std : found) {
- result.add(new StudyDTO(std.getIndex(), std.getReference(), std
+ StudyDTO studyDTO = new StudyDTO(std.getIndex(), std.getReference(), std
.getProgressState(), std.getTitle(), std.getAuthor()
- .getDisplayName()));
+ .getDisplayName());
+ studyDTO.setDate(std.getDate());
+ studyDTO.setLastModificationDate(std.getLastModificationDate());
+ result.add(studyDTO);
}
return result;
}