The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

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

Process Summon search on demand when facets requested.

parent a1828e39
No related merge requests found
...@@ -125,6 +125,11 @@ class Results extends \VuFind\Search\Base\Results ...@@ -125,6 +125,11 @@ class Results extends \VuFind\Search\Base\Results
*/ */
public function getFacetList($filter = null) public function getFacetList($filter = null)
{ {
// Make sure we have processed the search before proceeding:
if (null === $this->responseFacets) {
$this->performAndProcessSearch();
}
// If there is no filter, we'll use all facets as the filter: // If there is no filter, we'll use all facets as the filter:
$filter = is_null($filter) $filter = is_null($filter)
? $this->getParams()->getFacetConfig() ? $this->getParams()->getFacetConfig()
......
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