Example #1
0
 /**
  * Store the configuration of the recommendation module.
  *
  * @param string $settings Settings from searches.ini.
  *
  * @return void
  */
 public function setConfig($settings)
 {
     parent::setConfig($settings);
     // Parse the additional settings:
     $settings = explode(':', $settings);
     if (isset($settings[3]) && $settings[3] !== 'false') {
         $this->keywordFilter = true;
     }
 }
 /**
  * process
  *
  * Called after the SearchObject has performed its main search.  This may be
  * used to extract necessary information from the SearchObject or to perform
  * completely unrelated processing.
  *
  * @return void
  * @access public
  */
 public function process()
 {
     global $configArray;
     global $interface;
     $interface->assign('searchObject', 'SolrBrowseExtended');
     parent::process();
     $interface->assign('activeFacets', array_keys($this->_mainFacets));
     $interface->assign('sideFacetLabel', "Narrow BrowseExtended {$this->browseType}");
 }
 /**
  * Constructor
  *
  * Establishes base settings for making recommendations.
  *
  * @param object $searchObject The SearchObject requesting recommendations.
  * @param string $params       Additional settings from searches.ini.
  *
  * @access public
  */
 public function __construct($searchObject, $params)
 {
     parent::__construct($searchObject, 'Collection');
 }