/** * 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). * * @access protected * @return array associative: location (top/side) => search settings */ protected function getRecommendationSettings() { // Special hard-coded case for author module. We should make this more // flexible in the future! // Marmot hard-coded case and use searches.ini and facets.ini instead. /*if ($this->searchType == 'author') { return array('side' => array('SideFacets:Author')); }*/ // Use default case from parent class the rest of the time: return parent::getRecommendationSettings(); }
/** * 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() { // Special case for author module. Use settings from searches.ini if // present; default to old hard-coded defaults otherwise for legacy // compatibility. if ($this->searchType == 'author') { $searchSettings = getExtraConfigArray('searches'); return isset($searchSettings['AuthorModuleRecommendations']) ? $searchSettings['AuthorModuleRecommendations'] : array('side' => array('ExpandFacets:Author')); } // Use default case from parent class the rest of the time: return parent::getRecommendationSettings(); }