[Task 71272] applied feedback to the Scripts and Processes functionality

This commit is contained in:
Raf Ponsaerts
2020-06-09 15:04:51 +02:00
parent 47b75f313e
commit 5d7524970c
17 changed files with 165 additions and 189 deletions

View File

@@ -197,7 +197,8 @@ public class ProcessServiceImpl implements ProcessService {
} else {
List<Bitstream> filteredBitstreams = new ArrayList<>();
for (Bitstream bitstream : allBitstreams) {
if (StringUtils.equals(bitstreamService.getMetadata(bitstream, "dspace.process.type"), type)) {
if (StringUtils.equals(bitstreamService.getMetadata(bitstream, Process.BITSTREAM_TYPE_METADATAFIELD),
type)) {
filteredBitstreams.add(bitstream);
}
}