diff --git a/dspace-spring-rest/src/main/java/org/dspace/app/rest/converter/BitstreamFormatConverter.java b/dspace-spring-rest/src/main/java/org/dspace/app/rest/converter/BitstreamFormatConverter.java index 2fb47c9c8e..07a79f0a8b 100644 --- a/dspace-spring-rest/src/main/java/org/dspace/app/rest/converter/BitstreamFormatConverter.java +++ b/dspace-spring-rest/src/main/java/org/dspace/app/rest/converter/BitstreamFormatConverter.java @@ -33,7 +33,11 @@ public class BitstreamFormatConverter implements DSpaceConverter 0) { + bf.setSupportLevel(bitstreamFormatService.getSupportLevelText(obj)); + } else { + bf.setSupportLevel("UNKNOWN"); + } bf.setExtensions(obj.getExtensions()); return bf; } @@ -41,9 +45,6 @@ public class BitstreamFormatConverter implements DSpaceConverter