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

Bug fixes: eliminated redundant method, fixed bad isset check.

parent 9e81ca73
No related merge requests found
...@@ -211,15 +211,6 @@ class Options extends \VuFind\Search\Base\Options ...@@ -211,15 +211,6 @@ class Options extends \VuFind\Search\Base\Options
return (1 < count($viewArr)) ? $viewArr[1] : $this->defaultView; return (1 < count($viewArr)) ? $viewArr[1] : $this->defaultView;
} }
/**
* Whether or not to specify highlighting in the API
*
* @return bool
*/
public function getHighlight()
{
return $this->highlight;
}
/** /**
* Return the expander ids that have the default on flag set in admin * Return the expander ids that have the default on flag set in admin
* *
...@@ -291,7 +282,7 @@ class Options extends \VuFind\Search\Base\Options ...@@ -291,7 +282,7 @@ class Options extends \VuFind\Search\Base\Options
} }
// Set up facet preferences // Set up facet preferences
if (isset($searchSettings->General->highlighting)) { if (isset($searchSettings->General->include_facets)) {
$this->includeFacets = $searchSettings->General->include_facets; $this->includeFacets = $searchSettings->General->include_facets;
} }
......
...@@ -103,7 +103,7 @@ class Params extends \VuFind\Search\Base\Params ...@@ -103,7 +103,7 @@ class Params extends \VuFind\Search\Base\Params
$finalSort = ($sort == 'relevance') ? null : $sort; $finalSort = ($sort == 'relevance') ? null : $sort;
$backendParams->set('sort', $finalSort); $backendParams->set('sort', $finalSort);
if ($options->getHighlight()) { if ($options->highlightEnabled()) {
$backendParams->set('highlight', true); $backendParams->set('highlight', true);
} }
......
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