From 71ab0b218849e9cdfb59c23f0976fca594919083 Mon Sep 17 00:00:00 2001 From: carlosjepard Date: Tue, 7 Nov 2023 09:06:41 +0000 Subject: [PATCH] Added defaul MIXED representation type #2990 --- .../roda/wui/server/browse/BrowserServiceImpl.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roda-ui/roda-wui/src/main/java/org/roda/wui/server/browse/BrowserServiceImpl.java b/roda-ui/roda-wui/src/main/java/org/roda/wui/server/browse/BrowserServiceImpl.java index 3545519d50..5c1800ff6b 100644 --- a/roda-ui/roda-wui/src/main/java/org/roda/wui/server/browse/BrowserServiceImpl.java +++ b/roda-ui/roda-wui/src/main/java/org/roda/wui/server/browse/BrowserServiceImpl.java @@ -1140,6 +1140,17 @@ public Pair> retrieveRepresentationTypeOptions(String loca for (FacetValue facetValue : facetResults.get(0).getValues()) { types.add(facetValue.getValue()); } + + Boolean flag = false; + + for(String word : types) { + if(word.equals("MIXED")) { + flag = true; + break; + } + } + + if(!flag) types.add("MIXED"); } catch (GenericException | AuthorizationDeniedException | RequestNotValidException e) { LOGGER.error("Could not execute find request on representations", e); }