Enriches Grant, Funder and Project references with source prefix. (Issue #187)

This commit is contained in:
gkolokythas 2019-10-31 12:59:40 +02:00
parent e24a030a52
commit 9d284e8060
3 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ public class Funder implements DataModel<eu.eudat.data.entities.Funder, Funder>
entity.setId(this.id);
entity.setLabel(this.label);
entity.setType(this.type);
entity.setReference(this.reference == null ? "dmp:" + this.label : this.reference);
entity.setReference(this.reference == null ? "dmp:" + this.label : this.source + ":" + this.reference);
entity.setDefinition(this.definition);
entity.setCreated(this.created == null ? new Date() : this.created);
entity.setStatus(this.status != null ? this.getStatus() : eu.eudat.data.entities.Grant.Status.ACTIVE.getValue());

View File

@ -189,7 +189,7 @@ public class Grant implements DataModel<eu.eudat.data.entities.Grant, Grant> {
entity.setAbbreviation(this.abbreviation);
entity.setLabel(this.label);
entity.setType(this.type);
entity.setReference(this.reference == null ? "dmp:" + this.label : this.reference);
entity.setReference(this.reference == null ? "dmp:" + this.label : this.source + ":" + this.reference);
entity.setUri(this.uri);
entity.setDefinition(this.definition);
entity.setStartdate(this.startDate);

View File

@ -176,7 +176,7 @@ public class Project implements DataModel<eu.eudat.data.entities.Project, Projec
entity.setAbbreviation(this.abbreviation);
entity.setLabel(this.label);
entity.setType(this.type);
entity.setReference(this.reference == null ? "dmp:" + this.label : this.reference);
entity.setReference(this.reference == null ? "dmp:" + this.label : this.source + ":" + this.reference);
entity.setUri(this.uri);
entity.setDefinition(this.definition);
entity.setStartdate(this.startDate);