diff --git a/module/VuFind/src/VuFind/Search/EDS/Options.php b/module/VuFind/src/VuFind/Search/EDS/Options.php index e73859e7559688b8a5a92ccdb8e4c725c8fb75df..1ce1eca4836777e175d6e9f621155c0a74356957 100644 --- a/module/VuFind/src/VuFind/Search/EDS/Options.php +++ b/module/VuFind/src/VuFind/Search/EDS/Options.php @@ -120,7 +120,8 @@ class Options extends \VuFind\Search\Base\Options $this->searchIni = $this->facetsIni = 'EDS'; $searchSettings = $configLoader->get($this->searchIni); parent::__construct($configLoader); - $this->resultLimit = 100; + // 2015-06-30 RF - Changed to unlimited + //$this->resultLimit = 100; $this->viewOptions = [ 'list|title' => 'Title View', 'list|brief' => 'Brief View', 'list|detailed' => 'Detailed View' diff --git a/themes/bootstrap3/templates/eds/search.phtml b/themes/bootstrap3/templates/eds/search.phtml index a1f2bef83e8cce9df08e6acf285887435c887dd7..6894a00ae29465b308925f7ba56bffa50a0a8989 100644 --- a/themes/bootstrap3/templates/eds/search.phtml +++ b/themes/bootstrap3/templates/eds/search.phtml @@ -1,5 +1,6 @@ <? // Load standard settings from the default search results screen: $this->overrideSideFacetCaption = 'Refine Results'; + $this->paginationOptions = ['disableFirst' => true, 'disableLast' => true]; echo $this->render('search/results.phtml'); ?> \ No newline at end of file diff --git a/themes/bootstrap3/templates/search/pagination.phtml b/themes/bootstrap3/templates/search/pagination.phtml index fc1946225073e9d4c1b378d5c486fd7fb748d098..b4c32f34512b4568e89e3e2df9f4655e69aea403 100644 --- a/themes/bootstrap3/templates/search/pagination.phtml +++ b/themes/bootstrap3/templates/search/pagination.phtml @@ -1,7 +1,9 @@ <? if ($this->pageCount): ?> <ul class="pagination"> <? if (isset($this->previous)): ?> - <li><a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage(1)?>">[1]</a></li> + <? if (!isset($this->options['disableFirst']) || !$this->options['disableFirst']): ?> + <li><a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage(1)?>">[1]</a></li> + <? endif; ?> <li><a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage($this->previous)?>">« <?=$this->transEsc('Prev')?></a></li> <? endif; ?> @@ -17,7 +19,9 @@ <? if (isset($this->next)): ?> <li><a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage($this->next)?>"><?=$this->transEsc('Next');?> »</a></li> - <li><a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage($this->pageCount)?>">[<?=$this->pageCount?>]</a></li> + <? if (!isset($this->options['disableLast']) || !$this->options['disableLast']): ?> + <li><a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage($this->pageCount)?>">[<?=$this->pageCount?>]</a></li> + <? endif; ?> <? endif; ?> </ul> <? endif; ?> \ No newline at end of file diff --git a/themes/bootstrap3/templates/search/results.phtml b/themes/bootstrap3/templates/search/results.phtml index ed3dc1d2454177dc83c9764843f3b2fb213d3e13..1ed0fdced7d384e5620f1b5222bcddb5b996a6d8 100644 --- a/themes/bootstrap3/templates/search/results.phtml +++ b/themes/bootstrap3/templates/search/results.phtml @@ -103,7 +103,7 @@ <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?> <?=$this->render('search/list-' . $this->params->getView() . '.phtml')?> <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => 'bottom_'))?> - <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?> + <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results, 'options' => isset($this->paginationOptions) ? $this->paginationOptions : []))?> </form> <div class="searchtools hidden-print">