From 3fa286b20173f49a81e3c4c03e26bf2edc11735d Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Wed, 22 Feb 2017 16:01:42 -0500
Subject: [PATCH] Disable facetListAction where it is not yet needed/supported.

---
 .../src/VuFind/Search/SolrAuthorFacets/Options.php   | 12 ++++++++++++
 .../src/VuFind/Search/SolrCollection/Options.php     | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/module/VuFind/src/VuFind/Search/SolrAuthorFacets/Options.php b/module/VuFind/src/VuFind/Search/SolrAuthorFacets/Options.php
index 28852d501e8..0e38efe8dd3 100644
--- a/module/VuFind/src/VuFind/Search/SolrAuthorFacets/Options.php
+++ b/module/VuFind/src/VuFind/Search/SolrAuthorFacets/Options.php
@@ -60,6 +60,18 @@ class Options extends \VuFind\Search\Solr\Options
         $this->spellcheck = false;
     }
 
+    /**
+     * Return the route name for the facet list action. Returns false to cover
+     * unimplemented support.
+     *
+     * @return string|bool
+     */
+    public function getFacetListAction()
+    {
+        // Not applicable here; we don't want to inherit the parent class' route.
+        return false;
+    }
+
     /**
      * Return the route name for the search results action.
      *
diff --git a/module/VuFind/src/VuFind/Search/SolrCollection/Options.php b/module/VuFind/src/VuFind/Search/SolrCollection/Options.php
index 7661463f3ef..37f671c31c2 100644
--- a/module/VuFind/src/VuFind/Search/SolrCollection/Options.php
+++ b/module/VuFind/src/VuFind/Search/SolrCollection/Options.php
@@ -64,6 +64,18 @@ class Options extends \VuFind\Search\Solr\Options
         $this->defaultSort = key($this->sortOptions);
     }
 
+    /**
+     * Return the route name for the facet list action. Returns false to cover
+     * unimplemented support.
+     *
+     * @return string|bool
+     */
+    public function getFacetListAction()
+    {
+        // TODO: implement support for this if needed.
+        return false;
+    }
+
     /**
      * Load all recommendation settings from the relevant ini file.  Returns an
      * associative array where the key is the location of the recommendations (top
-- 
GitLab