Enriches Grant, Funder and Project references with source prefix. (Issue #187)
This commit is contained in:
parent
e24a030a52
commit
9d284e8060
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue