Class: Curate::PeopleController

Inherits:
ApplicationController
  • Object
show all
Includes:
Blacklight::Catalog, Hydra::Controller::ControllerBehavior, Sufia::Noid
Defined in:
app/controllers/curate/people_controller.rb

Class Method Summary collapse

Class Method Details

.search_configObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'app/controllers/curate/people_controller.rb', line 14

def self.search_config
   # Set parameters to send to SOLR
   # First inspect contents of the hash from Yaml configuration file
   # See config/search_config.yml
   initialized_config = Curate.configuration.search_config['people']
   # If the hash is empty, set reasonable defaults for this search type
   if initialized_config.nil?
      Hash['qf' => 'desc_metadata__name_tesim','fl' => 'desc_metadata__name_tesim id','qt' => 'search','rows' => 10]
   else
      initialized_config
   end
end