added given name and family name among the properties describing a related record in solr
This commit is contained in:
parent
bd93479688
commit
df5c224b8a
|
@ -2,10 +2,9 @@
|
|||
package eu.dnetlib.dhp.schema.orcid;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
/**
|
||||
* This class models the data that are retrieved from orcid publication
|
||||
*/
|
||||
|
@ -65,7 +64,7 @@ public class AuthorData implements Serializable {
|
|||
|
||||
public void setOtherNames(List<String> otherNames) {
|
||||
if (this.otherNames == null) {
|
||||
this.otherNames = Lists.newArrayList();
|
||||
this.otherNames = new ArrayList<>();
|
||||
}
|
||||
this.otherNames = otherNames;
|
||||
}
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
package eu.dnetlib.dhp.schema.solr;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
public class Category implements Serializable {
|
||||
|
||||
private String id;
|
||||
private String label;
|
||||
private List<Concept> concept = Lists.newArrayList();
|
||||
private List<Concept> concept = new ArrayList<>();
|
||||
|
||||
public static Category newInstance(String id, String label) {
|
||||
Category category = new Category();
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
package eu.dnetlib.dhp.schema.solr;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
public class Context implements Serializable {
|
||||
|
||||
private String id;
|
||||
private String label;
|
||||
private String type;
|
||||
private List<Category> category = Lists.newArrayList();
|
||||
private List<Category> category = new ArrayList<>();
|
||||
|
||||
public static Context newInstance(String id, String label, String type, List<Category> category) {
|
||||
Context context = new Context();
|
||||
|
|
|
@ -12,16 +12,16 @@ public class RelatedRecord implements Serializable {
|
|||
// common fields
|
||||
private String title;
|
||||
private String websiteurl; // datasource, organizations, projects
|
||||
private List<Pid> pid;
|
||||
private List<Provenance> collectedfrom;
|
||||
|
||||
// results
|
||||
private List<String> author;
|
||||
private String description;
|
||||
private String dateofacceptance;
|
||||
private String publisher;
|
||||
private List<Pid> pid;
|
||||
private String codeRepositoryUrl;
|
||||
private String resulttype;
|
||||
private List<Provenance> collectedfrom;
|
||||
private List<Instance> instances;
|
||||
|
||||
// datasource
|
||||
|
@ -43,6 +43,10 @@ public class RelatedRecord implements Serializable {
|
|||
private Funding funding;
|
||||
private String validationDate;
|
||||
|
||||
// person
|
||||
private String givenName;
|
||||
private String familyName;
|
||||
|
||||
public RelatedRecordHeader getHeader() {
|
||||
return header;
|
||||
}
|
||||
|
@ -242,4 +246,20 @@ public class RelatedRecord implements Serializable {
|
|||
public void setValidationDate(String validationDate) {
|
||||
this.validationDate = validationDate;
|
||||
}
|
||||
|
||||
public String getGivenName() {
|
||||
return givenName;
|
||||
}
|
||||
|
||||
public void setGivenName(String givenName) {
|
||||
this.givenName = givenName;
|
||||
}
|
||||
|
||||
public String getFamilyName() {
|
||||
return familyName;
|
||||
}
|
||||
|
||||
public void setFamilyName(String familyName) {
|
||||
this.familyName = familyName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue