Module: CollectionsHelper

Includes:
Atrium::ApplicationHelper, Atrium::CollectionsHelper
Included in:
AtriumBaseController, DescriptionsController
Defined in:
lib/generators/atrium/install/templates/helpers/collections_helper.rb

Overview

TODO: Move to generator

Instance Method Summary collapse

Methods included from Atrium::CollectionsHelper

#get_saved_items, #get_saved_search, #saved_searches_for_select

Methods included from Atrium::ApplicationHelper

#application_name

Instance Method Details

#prepare_extra_controller_params_for_asset_query(assets, params, *args) ⇒ Object

This methods merge params q and fq with asset q and fq



7
8
9
10
11
12
13
14
# File 'lib/generators/atrium/install/templates/helpers/collections_helper.rb', line 7

def prepare_extra_controller_params_for_asset_query(assets,params, *args)
  CurrentFilterQueryParamsExtractionService.new(
    method(:solr_search_params),
    [assets,ParamsAdaptorForFilter.new(params)].flatten,
    [:filter_query_params,:exclude_query_params]
  ).filter_query_params

end