Adds more information on RDA export model.
This commit is contained in:
parent
1693518bc8
commit
e24a030a52
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue