diff --git a/app/controllers/ontologies_controller.rb b/app/controllers/ontologies_controller.rb index 92a807fe7..f47a16500 100644 --- a/app/controllers/ontologies_controller.rb +++ b/app/controllers/ontologies_controller.rb @@ -60,18 +60,20 @@ def ontologies_filter end end.flatten - unless request_portals.length == 1 + if federated_request? streams += [ replace('categories_refresh_for_federation') do - key = "categories" + key = 'categories' objects, checked_values, _ = @filters[key.to_sym] objects = keep_only_root_categories(objects) + helpers.browse_filter_section_body(checked_values: checked_values, key: key, objects: objects, counts: @count_objects[key.to_sym]) end ] end + else streams = [replace("ontologies_list_view-page-#{@page.page}", partial: 'ontologies/browser/ontologies')] end