diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php index fed1d0db8d12f3a70564a8370522a3182dc9e0da..fab76be3017bfb9652120697fc6f0e9dda991f52 100644 --- a/module/VuFind/config/module.config.php +++ b/module/VuFind/config/module.config.php @@ -746,8 +746,8 @@ $dynamicRoutes = [ // Define static routes -- Controller/Action strings $staticRoutes = [ - 'Alphabrowse/Home', 'Author/Home', 'Author/Search', - 'Authority/Home', 'Authority/Record', 'Authority/Search', + 'Alphabrowse/Home', 'Author/FacetList', 'Author/Home', 'Author/Search', + 'Authority/FacetList', 'Authority/Home', 'Authority/Record', 'Authority/Search', 'Browse/Author', 'Browse/Dewey', 'Browse/Era', 'Browse/Genre', 'Browse/Home', 'Browse/LCC', 'Browse/Region', 'Browse/Tag', 'Browse/Topic', 'Cart/doExport', 'Cart/Email', 'Cart/Export', 'Cart/Home', 'Cart/MyResearchBulk', @@ -778,7 +778,7 @@ $staticRoutes = [ 'OAI/Server', 'Pazpar2/Home', 'Pazpar2/Search', 'Records/Home', 'Search/Advanced', 'Search/Email', 'Search/FacetList', 'Search/History', 'Search/Home', 'Search/NewItem', 'Search/OpenSearch', 'Search/Reserves', - 'Search/Results', 'Search/Suggest', + 'Search/ReservesFacetList', 'Search/Results', 'Search/Suggest', 'Summon/Advanced', 'Summon/FacetList', 'Summon/Home', 'Summon/Search', 'Tag/Home', 'Upgrade/Home', 'Upgrade/FixAnonymousTags', 'Upgrade/FixDuplicateTags', diff --git a/module/VuFind/src/VuFind/Controller/AuthorController.php b/module/VuFind/src/VuFind/Controller/AuthorController.php index 4ce8724b816c61d7b7c95dffdb6cef01d1b7b578..96746db8f622221423a58bc806e1c3a36fb81945 100644 --- a/module/VuFind/src/VuFind/Controller/AuthorController.php +++ b/module/VuFind/src/VuFind/Controller/AuthorController.php @@ -38,6 +38,21 @@ namespace VuFind\Controller; */ class AuthorController extends AbstractSearch { + /** + * Returns a list of all items associated with one facet for the lightbox + * + * Parameters: + * facet The facet to retrieve + * searchParams Facet search params from $results->getUrlQuery()->getParams() + * + * @return mixed + */ + public function facetListAction() + { + $this->searchClassId = 'SolrAuthor'; + return parent::facetListAction(); + } + /** * Sets the configuration for displaying author results * diff --git a/module/VuFind/src/VuFind/Controller/SearchController.php b/module/VuFind/src/VuFind/Controller/SearchController.php index e68c1fa05c26c5d4e46786728c90f0ee53203d07..e32847da14fc7e44c9eae78a375f495f8e6c0891 100644 --- a/module/VuFind/src/VuFind/Controller/SearchController.php +++ b/module/VuFind/src/VuFind/Controller/SearchController.php @@ -411,6 +411,17 @@ class SearchController extends AbstractSearch ); } + /** + * Show facet list for Solr-driven reserves. + * + * @return mixed + */ + public function reservesfacetlistAction() + { + $this->searchClassId = 'SolrReserves'; + return $this->facetListAction(); + } + /** * Show search form for Solr-driven reserves. * diff --git a/module/VuFind/src/VuFind/Search/SolrAuth/Options.php b/module/VuFind/src/VuFind/Search/SolrAuth/Options.php index 409977a38bbe609331a3ce99e8ac75320dbcc6fc..4db4a16228c4e5fc418e309169cdf43a684291ad 100644 --- a/module/VuFind/src/VuFind/Search/SolrAuth/Options.php +++ b/module/VuFind/src/VuFind/Search/SolrAuth/Options.php @@ -50,6 +50,17 @@ 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() + { + return 'authority-facetlist'; + } + /** * Return the route name for the search results action. * diff --git a/module/VuFind/src/VuFind/Search/SolrAuthor/Options.php b/module/VuFind/src/VuFind/Search/SolrAuthor/Options.php index 2293788759da4a8fb6155f3d4c7d084d7821fcfd..240c8faa19ff0ee4a5b6e6d837189d86b4cd89aa 100644 --- a/module/VuFind/src/VuFind/Search/SolrAuthor/Options.php +++ b/module/VuFind/src/VuFind/Search/SolrAuthor/Options.php @@ -51,6 +51,17 @@ 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() + { + return 'author-facetlist'; + } + /** * Return the route name for the search results action. * diff --git a/module/VuFind/src/VuFind/Search/SolrReserves/Options.php b/module/VuFind/src/VuFind/Search/SolrReserves/Options.php index 4884bf8c1c59fd41ad9674ae1cd12eac1425cc0f..47231216d96ed097afb5ffc7449c0ff5637b3516 100644 --- a/module/VuFind/src/VuFind/Search/SolrReserves/Options.php +++ b/module/VuFind/src/VuFind/Search/SolrReserves/Options.php @@ -52,6 +52,17 @@ class Options extends \VuFind\Search\Solr\Options parent::__construct($configLoader); } + /** + * Return the route name for the facet list action. Returns false to cover + * unimplemented support. + * + * @return string|bool + */ + public function getFacetListAction() + { + return 'search-reservesfacetlist'; + } + /** * Return the route name for the search results action. * diff --git a/themes/bootstrap3/templates/search/reservessearch.phtml b/themes/bootstrap3/templates/search/reservessearch.phtml index 8128b1536f629785adff46dfe2a6d12d8dd42217..5157b1bf30b3bdd888e99e8f00f1e3370763cf6f 100644 --- a/themes/bootstrap3/templates/search/reservessearch.phtml +++ b/themes/bootstrap3/templates/search/reservessearch.phtml @@ -7,6 +7,8 @@ // Convenience variables: $reservesLookfor = $this->params->getDisplayQuery(); + + $this->searchClassId = 'SolrReserves'; ?> <div class="row">