[Task 57187] added the relationship ID after the virtual:: in the metadata field authority

This commit is contained in:
Raf Ponsaerts
2018-11-16 10:10:02 +01:00
parent 8e8bb65f75
commit 255de21271
4 changed files with 37 additions and 16 deletions

View File

@@ -239,7 +239,7 @@ public abstract class DSpaceObjectServiceImpl<T extends DSpaceObject> implements
for (int i = 0; i < values.size(); i++) {
if (authorities != null && authorities.size() >= i) {
if (StringUtils.equals(authorities.get(i), "virtual")) {
if (StringUtils.startsWith(authorities.get(i), "virtual::")) {
continue;
}
}
@@ -549,7 +549,7 @@ public abstract class DSpaceObjectServiceImpl<T extends DSpaceObject> implements
List<MetadataValue> metadataValues = dso.getMetadata();
for (MetadataValue metadataValue : metadataValues) {
//Retrieve & store the place for each metadata value
if (!StringUtils.equals(metadataValue.getAuthority(), "virtual")) {
if (!StringUtils.startsWith(metadataValue.getAuthority(), "virtual::")) {
int mvPlace = getMetadataValuePlace(fieldToLastPlace, metadataValue);
metadataValue.setPlace(mvPlace);
}