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

Fix broken FacetList support for authorities, authors and reserves.

parent 3fa286b2
Branches
Tags
No related merge requests found
...@@ -746,8 +746,8 @@ $dynamicRoutes = [ ...@@ -746,8 +746,8 @@ $dynamicRoutes = [
// Define static routes -- Controller/Action strings // Define static routes -- Controller/Action strings
$staticRoutes = [ $staticRoutes = [
'Alphabrowse/Home', 'Author/Home', 'Author/Search', 'Alphabrowse/Home', 'Author/FacetList', 'Author/Home', 'Author/Search',
'Authority/Home', 'Authority/Record', 'Authority/Search', 'Authority/FacetList', 'Authority/Home', 'Authority/Record', 'Authority/Search',
'Browse/Author', 'Browse/Dewey', 'Browse/Era', 'Browse/Genre', 'Browse/Home', 'Browse/Author', 'Browse/Dewey', 'Browse/Era', 'Browse/Genre', 'Browse/Home',
'Browse/LCC', 'Browse/Region', 'Browse/Tag', 'Browse/Topic', 'Cart/doExport', 'Browse/LCC', 'Browse/Region', 'Browse/Tag', 'Browse/Topic', 'Cart/doExport',
'Cart/Email', 'Cart/Export', 'Cart/Home', 'Cart/MyResearchBulk', 'Cart/Email', 'Cart/Export', 'Cart/Home', 'Cart/MyResearchBulk',
...@@ -778,7 +778,7 @@ $staticRoutes = [ ...@@ -778,7 +778,7 @@ $staticRoutes = [
'OAI/Server', 'Pazpar2/Home', 'Pazpar2/Search', 'Records/Home', 'OAI/Server', 'Pazpar2/Home', 'Pazpar2/Search', 'Records/Home',
'Search/Advanced', 'Search/Email', 'Search/FacetList', 'Search/History', 'Search/Advanced', 'Search/Email', 'Search/FacetList', 'Search/History',
'Search/Home', 'Search/NewItem', 'Search/OpenSearch', 'Search/Reserves', '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', 'Summon/Advanced', 'Summon/FacetList', 'Summon/Home', 'Summon/Search',
'Tag/Home', 'Tag/Home',
'Upgrade/Home', 'Upgrade/FixAnonymousTags', 'Upgrade/FixDuplicateTags', 'Upgrade/Home', 'Upgrade/FixAnonymousTags', 'Upgrade/FixDuplicateTags',
......
...@@ -38,6 +38,21 @@ namespace VuFind\Controller; ...@@ -38,6 +38,21 @@ namespace VuFind\Controller;
*/ */
class AuthorController extends AbstractSearch 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 * Sets the configuration for displaying author results
* *
......
...@@ -411,6 +411,17 @@ class SearchController extends AbstractSearch ...@@ -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. * Show search form for Solr-driven reserves.
* *
......
...@@ -50,6 +50,17 @@ class Options extends \VuFind\Search\Solr\Options ...@@ -50,6 +50,17 @@ class Options extends \VuFind\Search\Solr\Options
$this->spellcheck = false; $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. * Return the route name for the search results action.
* *
......
...@@ -51,6 +51,17 @@ class Options extends \VuFind\Search\Solr\Options ...@@ -51,6 +51,17 @@ class Options extends \VuFind\Search\Solr\Options
$this->spellcheck = false; $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. * Return the route name for the search results action.
* *
......
...@@ -52,6 +52,17 @@ class Options extends \VuFind\Search\Solr\Options ...@@ -52,6 +52,17 @@ class Options extends \VuFind\Search\Solr\Options
parent::__construct($configLoader); 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. * Return the route name for the search results action.
* *
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
// Convenience variables: // Convenience variables:
$reservesLookfor = $this->params->getDisplayQuery(); $reservesLookfor = $this->params->getDisplayQuery();
$this->searchClassId = 'SolrReserves';
?> ?>
<div class="row"> <div class="row">
......
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