metadata attributes place, authority, confidence in rest

This commit is contained in:
Ben Bosman
2019-01-03 11:28:26 +01:00
committed by Raf Ponsaerts
parent 865b4256b9
commit 6ee687a4ae
2 changed files with 29 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ public abstract class DSpaceObjectConverter<M extends DSpaceObject, R extends or
me.setKey(mv.getMetadataField().toString('.'));
me.setValue(mv.getValue());
me.setLanguage(mv.getLanguage());
me.setPlace(mv.getPlace());
me.setAuthority(mv.getAuthority());
me.setConfidence(mv.getConfidence());
metadata.add(me);
}
return metadata;

View File

@@ -19,6 +19,9 @@ public class MetadataEntryRest {
String value;
String language;
int place;
String authority;
int confidence;
public String getKey() {
return key;
@@ -44,4 +47,27 @@ public class MetadataEntryRest {
this.language = language;
}
public int getPlace() {
return place;
}
public void setPlace(int place) {
this.place = place;
}
public String getAuthority() {
return authority;
}
public void setAuthority(String authority) {
this.authority = authority;
}
public int getConfidence() {
return confidence;
}
public void setConfidence(int confidence) {
this.confidence = confidence;
}
}