mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
DS-3755 rename method in differenceInSubmissionFields (was "diff")
This commit is contained in:
@@ -547,7 +547,7 @@ public class Util {
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
public static List<String> diff(Collection fromCollection, Collection toCollection) throws DCInputsReaderException {
|
||||
public static List<String> differenceInSubmissionFields(Collection fromCollection, Collection toCollection) throws DCInputsReaderException {
|
||||
DCInputsReader reader = new DCInputsReader();
|
||||
List<DCInputSet> from = reader.getInputsByCollectionHandle(fromCollection.getHandle());
|
||||
List<DCInputSet> to = reader.getInputsByCollectionHandle(toCollection.getHandle());
|
||||
|
@@ -266,7 +266,7 @@ public class WorkspaceItemServiceImpl implements WorkspaceItemService {
|
||||
source.setCollection(toCollection);
|
||||
|
||||
List<MetadataValue> remove = new ArrayList<>();
|
||||
List<String> diff = Util.diff(fromCollection, toCollection);
|
||||
List<String> diff = Util.differenceInSubmissionFields(fromCollection, toCollection);
|
||||
for(String toRemove : diff) {
|
||||
for(MetadataValue value : source.getItem().getMetadata()) {
|
||||
if(value.getMetadataField().toString('.').equals(toRemove)) {
|
||||
|
Reference in New Issue
Block a user