Adds more information on RDA export model.

This commit is contained in:
gkolokythas 2019-10-31 12:21:18 +02:00
parent 1693518bc8
commit e24a030a52
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@ public class DmpRDAExportModel {
public DmpRDAExportModel fromDataModel(DMP entity) {
this.dmp_id = new DmpIdRDAExportModel(entity.getId().toString(), "argos_internal");
if (entity.getDoi() != null)
this.dmp_id = new DmpIdRDAExportModel(entity.getDoi(), "zenodo");
else
this.dmp_id = new DmpIdRDAExportModel(entity.getId().toString(), "argos_internal");
this.title = entity.getLabel();
this.description = entity.getDescription();
this.created = entity.getCreated();