From 928133f85a0374960e8f0c5ea88d578387e7fe0c Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 21 Feb 2017 10:27:46 -0500 Subject: [PATCH] Add web-facetlist route so that Web result facets can work correctly. --- module/VuFind/config/module.config.php | 2 +- module/VuFind/src/VuFind/Search/SolrWeb/Options.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php index 2fef28794e0..ad4187ae5c6 100644 --- a/module/VuFind/config/module.config.php +++ b/module/VuFind/config/module.config.php @@ -820,7 +820,7 @@ $staticRoutes = [ 'Upgrade/GetDBCredentials', 'Upgrade/GetDbEncodingPreference', 'Upgrade/GetSourceDir', 'Upgrade/GetSourceVersion', 'Upgrade/Reset', 'Upgrade/ShowSQL', - 'Web/Home', 'Web/Results', + 'Web/Home', 'Web/FacetList', 'Web/Results', 'Worldcat/Advanced', 'Worldcat/Home', 'Worldcat/Search' ]; diff --git a/module/VuFind/src/VuFind/Search/SolrWeb/Options.php b/module/VuFind/src/VuFind/Search/SolrWeb/Options.php index 769fb22ce13..7470651e5b2 100644 --- a/module/VuFind/src/VuFind/Search/SolrWeb/Options.php +++ b/module/VuFind/src/VuFind/Search/SolrWeb/Options.php @@ -71,6 +71,16 @@ class Options extends \VuFind\Search\Solr\Options return false; } + /** + * Return the route name for the search results action. + * + * @return string + */ + public function getFacetListAction() + { + return 'web-facetlist'; + } + /** * Does this search option support the cart/book bag? * -- GitLab