Example #1
0
 /**
  * Constructor
  *
  * @param \VuFind\Config\PluginManager $configLoader Config loader
  */
 public function __construct(\VuFind\Config\PluginManager $configLoader)
 {
     parent::__construct($configLoader);
     $searchSettings = $configLoader->get($this->searchIni);
     // Load autocomplete preference:
     if (isset($searchSettings->Autocomplete->enabled)) {
         $this->autocompleteEnabled = $searchSettings->Autocomplete->enabled;
     }
 }
Example #2
0
 /**
  * Constructor
  *
  * @param \VuFind\Config\PluginManager $configLoader Config loader
  */
 public function __construct(\VuFind\Config\PluginManager $configLoader)
 {
     parent::__construct($configLoader);
     $searchSettings = $configLoader->get($this->searchIni);
     // Load autocomplete preference:
     if (isset($searchSettings->Autocomplete->enabled)) {
         $this->autocompleteEnabled = $searchSettings->Autocomplete->enabled;
     }
     $facetSettings = $configLoader->get($this->facetsIni);
     if (isset($facetSettings->SpecialFacets->dateRangeVis)) {
         $this->dateRangeVis = $facetSettings->SpecialFacets->dateRangeVis;
     }
 }