fixed response in context api

This commit is contained in:
Michele Artini 2023-10-06 10:15:58 +02:00
parent 807d2e493b
commit 80924b651c
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class ContextApiController extends AbstractDnetController {
if (parts.length < 3) { throw new RuntimeException("Invalid conceptId (It should have 3 (or more) parts): " + sc.getSubCommunityId()); }
final CategorySummary cat = new CategorySummary();
cat.setId(parts[0] + "::" + parts[1]);
cat.setLabel(sc.getLabel());
cat.setLabel(sc.getCategory());
cat.setHasConcept(true);
return cat;
})