From 84e0a62e1da82c18545faa2324b2a1691735f641 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 7 Feb 2017 14:07:17 -0500 Subject: [PATCH] Removed unused function. --- .../VuFind/src/VuFind/Search/EDS/Params.php | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/module/VuFind/src/VuFind/Search/EDS/Params.php b/module/VuFind/src/VuFind/Search/EDS/Params.php index 0c9935df69f..6af017e2613 100644 --- a/module/VuFind/src/VuFind/Search/EDS/Params.php +++ b/module/VuFind/src/VuFind/Search/EDS/Params.php @@ -124,33 +124,6 @@ class Params extends \VuFind\Search\Base\Params return $backendParams; } - /** - * Set up facets based on VuFind settings. - * - * @return array - */ - protected function getBackendFacetParameters() - { - $config = $this->getServiceLocator()->get('VuFind\Config')->get('EDS'); - $defaultFacetLimit = isset($config->Facet_Settings->facet_limit) - ? $config->Facet_Settings->facet_limit : 30; - - $finalFacets = []; - foreach ($this->getFullFacetSettings() as $facet) { - // See if parameters are included as part of the facet name; - // if not, override them with defaults. - $parts = explode(',', $facet); - $facetName = $parts[0]; - $defaultMode = ($this->getFacetOperator($facet) == 'OR') ? 'or' : 'and'; - $facetMode = isset($parts[1]) ? $parts[1] : $defaultMode; - $facetPage = isset($parts[2]) ? $parts[2] : 1; - $facetLimit = isset($parts[3]) ? $parts[3] : $defaultFacetLimit; - $facetParams = "{$facetMode},{$facetPage},{$facetLimit}"; - $finalFacets[] = "{$facetName},{$facetParams}"; - } - return $finalFacets; - } - /** * Set up filters based on VuFind settings. * -- GitLab