Skip to content
Snippets Groups Projects
Commit 092e8f5c authored by Rui Francisco's avatar Rui Francisco Committed by Demian Katz
Browse files

Change EDS pagination to allow access to more results.

- Adds mechanism to limit first/last page options due to limitations of EDS API. (You can access deep results, but not without accessing intermediate pages).
parent bfa94d98
No related merge requests found
......@@ -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'
......
<?
// 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
<? 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)?>">&laquo; <?=$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');?> &raquo;</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
......@@ -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">
......
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