Skip to content

Commit

Permalink
RI count only on active, fixes #1219
Browse files Browse the repository at this point in the history
  • Loading branch information
luis100 committed May 2, 2018
1 parent 13b9b8e commit ad975ca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,19 +292,19 @@ private void initEntityFilters() {
Filter aipFilter = new Filter();
aipFilter.add(new OrFiltersParameters(aipParams));

BrowserService.Util.getInstance().count(IndexedAIP.class.getName(), aipFilter, false,
BrowserService.Util.getInstance().count(IndexedAIP.class.getName(), aipFilter, true,
initEntityFiltersObjectPanel(RodaConstants.SEARCH_ITEMS));
} else if (!representationParams.isEmpty()) {
Filter representationFilter = new Filter();
representationFilter.add(new OrFiltersParameters(representationParams));

BrowserService.Util.getInstance().count(IndexedRepresentation.class.getName(), representationFilter, false,
BrowserService.Util.getInstance().count(IndexedRepresentation.class.getName(), representationFilter, true,
initEntityFiltersObjectPanel(RodaConstants.SEARCH_REPRESENTATIONS));
} else if (!fileParams.isEmpty()) {
Filter fileFilter = new Filter();
fileFilter.add(new OrFiltersParameters(fileParams));

BrowserService.Util.getInstance().count(IndexedFile.class.getName(), fileFilter, false,
BrowserService.Util.getInstance().count(IndexedFile.class.getName(), fileFilter, true,
initEntityFiltersObjectPanel(RodaConstants.SEARCH_FILES));
} else {
initEntityFiltersObjectPanel(RodaConstants.SEARCH_ITEMS).onSuccess(0L);
Expand Down

0 comments on commit ad975ca

Please sign in to comment.