diff --git a/module/VuFind/src/VuFind/View/Helper/Root/AlphaBrowse.php b/module/VuFind/src/VuFind/View/Helper/Root/AlphaBrowse.php index e13fdbd6ffa2ac0a485618bc4bdd7f94379534b7..f3e960898083197064752e0aadfa1bebd0019bb1 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/AlphaBrowse.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/AlphaBrowse.php @@ -71,19 +71,12 @@ class AlphaBrowse extends \Zend\View\Helper\AbstractHelper return null; } - // Linking using bib ids is generally more reliable than doing searches for - // headings, but headings give shorter queries and don't look as strange. - if ($item['count'] < 5) { - $safeIds = array_map([$this, 'escapeForSolr'], $item['ids']); - $query = ['type' => 'ids', 'lookfor' => implode(' ', $safeIds)]; - if ($item['count'] == 1) { - $query['jumpto'] = 1; - } - } else { - $query = [ - 'type' => ucwords($source) . 'Browse', - 'lookfor' => $this->escapeForSolr($item['heading']), - ]; + $query = [ + 'type' => ucwords($source) . 'Browse', + 'lookfor' => $this->escapeForSolr($item['heading']), + ]; + if ($item['count'] == 1) { + $query['jumpto'] = 1; } return $this->url->__invoke('search-results', [], ['query' => $query]); }