Skip to content

Commit

Permalink
Added defaul MIXED representation type #2990
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjepard authored and hmiguim committed Nov 7, 2023
1 parent 31bfe2e commit 71ab0b2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,17 @@ public Pair<Boolean, List<String>> 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);
}
Expand Down

0 comments on commit 71ab0b2

Please sign in to comment.