Esempio n. 1
0
 /**
  * Load all recommendation settings from the relevant ini file.  Returns an
  * associative array where the key is the location of the recommendations (top
  * or side) and the value is the settings found in the file (which may be either
  * a single string or an array of strings).
  *
  * @return array associative: location (top/side) => search settings
  * @access protected
  */
 protected function getRecommendationSettings()
 {
     //collection recommendations
     $searchSettings = getExtraConfigArray('searches');
     return isset($searchSettings['CollectionModuleRecommendations']) ? $searchSettings['CollectionModuleRecommendations'] : array('side' => array('ExpandFacets:Collection'));
     // Use default case from parent class the rest of the time:
     return parent::getRecommendationSettings();
 }