WIP: align Solr JSON records to the explore portal requirements
This commit is contained in:
parent
39fa75ae3f
commit
ae5337f266
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
||||||
<groupId>eu.dnetlib.dhp</groupId>
|
<groupId>eu.dnetlib.dhp</groupId>
|
||||||
<artifactId>dhp-schemas</artifactId>
|
<artifactId>dhp-schemas</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>6.1.2-SNAPSHOT</version>
|
<version>6.1.3-SNAPSHOT</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|
|
@ -10,23 +10,34 @@ public class AccessRight implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 7995566912611238604L;
|
private static final long serialVersionUID = 7995566912611238604L;
|
||||||
|
|
||||||
private String value;
|
private String code;
|
||||||
|
|
||||||
|
private String label;
|
||||||
|
|
||||||
private OpenAccessRoute openAccessRoute;
|
private OpenAccessRoute openAccessRoute;
|
||||||
|
|
||||||
public static AccessRight newInstance(String value, OpenAccessRoute openAccessRoute) {
|
public static AccessRight newInstance(String code, String label, OpenAccessRoute openAccessRoute) {
|
||||||
AccessRight accessRight = new AccessRight();
|
AccessRight accessRight = new AccessRight();
|
||||||
accessRight.setValue(value);
|
accessRight.setCode(code);
|
||||||
|
accessRight.setLabel(label);
|
||||||
accessRight.setOpenAccessRoute(openAccessRoute);
|
accessRight.setOpenAccessRoute(openAccessRoute);
|
||||||
return accessRight;
|
return accessRight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getValue() {
|
public String getCode() {
|
||||||
return value;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(String value) {
|
public void setCode(String code) {
|
||||||
this.value = value;
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLabel() {
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLabel(String label) {
|
||||||
|
this.label = label;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OpenAccessRoute getOpenAccessRoute() {
|
public OpenAccessRoute getOpenAccessRoute() {
|
||||||
|
|
|
@ -16,13 +16,16 @@ public class RelatedRecordHeader implements Serializable {
|
||||||
|
|
||||||
private String relationProvenance;
|
private String relationProvenance;
|
||||||
|
|
||||||
public static RelatedRecordHeader newInstance(String relationType, String relationClass, String relatedIdentifier, RecordType relatedRecordType, String relationProvenance) {
|
private String trust;
|
||||||
|
|
||||||
|
public static RelatedRecordHeader newInstance(String relationType, String relationClass, String relatedIdentifier, RecordType relatedRecordType, String relationProvenance, String trust) {
|
||||||
RelatedRecordHeader header = new RelatedRecordHeader();
|
RelatedRecordHeader header = new RelatedRecordHeader();
|
||||||
header.setRelationType(relationType);
|
header.setRelationType(relationType);
|
||||||
header.setRelationClass(relationClass);
|
header.setRelationClass(relationClass);
|
||||||
header.setRelatedIdentifier(relatedIdentifier);
|
header.setRelatedIdentifier(relatedIdentifier);
|
||||||
header.setRelatedRecordType(relatedRecordType);
|
header.setRelatedRecordType(relatedRecordType);
|
||||||
header.setRelationProvenance(relationProvenance);
|
header.setRelationProvenance(relationProvenance);
|
||||||
|
header.setTrust(trust);
|
||||||
return header;
|
return header;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,4 +68,12 @@ public class RelatedRecordHeader implements Serializable {
|
||||||
public void setRelationProvenance(String relationProvenance) {
|
public void setRelationProvenance(String relationProvenance) {
|
||||||
this.relationProvenance = relationProvenance;
|
this.relationProvenance = relationProvenance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTrust() {
|
||||||
|
return trust;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrust(String trust) {
|
||||||
|
this.trust = trust;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue