Class: Sufia::CatalogSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Defined in:
app/search_builders/sufia/catalog_search_builder.rb

Instance Method Summary collapse

Methods inherited from SearchBuilder

#show_only_resources_deposited_by_current_user

Instance Method Details

#show_works_or_works_that_contain_files(solr_parameters) ⇒ Object

show both works that match the query and works that contain files that match the query



9
10
11
12
13
# File 'app/search_builders/sufia/catalog_search_builder.rb', line 9

def show_works_or_works_that_contain_files(solr_parameters)
  return if solr_parameters[:q].blank?
  solr_parameters[:user_query] = solr_parameters[:q]
  solr_parameters[:q] = new_query
end