Skip to content
Snippets Groups Projects
Commit fc510a60 authored by Demian Katz's avatar Demian Katz
Browse files

Made autocomplete handler aware of combined handler drop-down.

parent cd035931
No related merge requests found
...@@ -69,9 +69,16 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager ...@@ -69,9 +69,16 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager
// Process incoming parameters: // Process incoming parameters:
$type = $request->get($typeParam, ''); $type = $request->get($typeParam, '');
$query = $request->get($queryParam, ''); $query = $request->get($queryParam, '');
$searcher = $request->get('searcher', 'Solr');
// If we're using a combined search box, we need to override the searcher
// and type settings.
if (substr($type, 0, 7) == 'VuFind:') {
list($junk, $tmp) = explode(':', $type, 2);
list($searcher, $type) = explode('|', $tmp, 2);
}
// get Autocomplete_Type config // get Autocomplete_Type config
$searcher = $request->get('searcher', 'Solr');
$options = $this->getServiceLocator() $options = $this->getServiceLocator()
->get('VuFind\SearchOptionsPluginManager')->get($searcher); ->get('VuFind\SearchOptionsPluginManager')->get($searcher);
$config = $this->getServiceLocator()->get('VuFind\Config') $config = $this->getServiceLocator()->get('VuFind\Config')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment