diff --git a/pom.xml b/pom.xml
index 8c0ef43..a967b78 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
eu.dnetlib.dhp
dhp-schemas
jar
- 6.1.2-SNAPSHOT
+ 6.1.3-SNAPSHOT
diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/AccessRight.java b/src/main/java/eu/dnetlib/dhp/schema/solr/AccessRight.java
index 7981bc9..01aa69e 100644
--- a/src/main/java/eu/dnetlib/dhp/schema/solr/AccessRight.java
+++ b/src/main/java/eu/dnetlib/dhp/schema/solr/AccessRight.java
@@ -10,23 +10,34 @@ public class AccessRight implements Serializable {
private static final long serialVersionUID = 7995566912611238604L;
- private String value;
+ private String code;
+
+ private String label;
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.setValue(value);
+ accessRight.setCode(code);
+ accessRight.setLabel(label);
accessRight.setOpenAccessRoute(openAccessRoute);
return accessRight;
}
- public String getValue() {
- return value;
+ public String getCode() {
+ return code;
}
- public void setValue(String value) {
- this.value = value;
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ public String getLabel() {
+ return label;
+ }
+
+ public void setLabel(String label) {
+ this.label = label;
}
public OpenAccessRoute getOpenAccessRoute() {
diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/RelatedRecordHeader.java b/src/main/java/eu/dnetlib/dhp/schema/solr/RelatedRecordHeader.java
index 7d7d479..4d7fc92 100644
--- a/src/main/java/eu/dnetlib/dhp/schema/solr/RelatedRecordHeader.java
+++ b/src/main/java/eu/dnetlib/dhp/schema/solr/RelatedRecordHeader.java
@@ -16,13 +16,16 @@ public class RelatedRecordHeader implements Serializable {
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();
header.setRelationType(relationType);
header.setRelationClass(relationClass);
header.setRelatedIdentifier(relatedIdentifier);
header.setRelatedRecordType(relatedRecordType);
header.setRelationProvenance(relationProvenance);
+ header.setTrust(trust);
return header;
}
@@ -65,4 +68,12 @@ public class RelatedRecordHeader implements Serializable {
public void setRelationProvenance(String relationProvenance) {
this.relationProvenance = relationProvenance;
}
+
+ public String getTrust() {
+ return trust;
+ }
+
+ public void setTrust(String trust) {
+ this.trust = trust;
+ }
}