Skip to content

Commit

Permalink
Fix pagination on linked resources (Fix #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonamaya82 committed Feb 9, 2024
1 parent 5e98626 commit b912abc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions view/common/linked-resources.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use Laminas\Form\Element\Select;
$this->inlineScript()->appendFile($this->assetUrl('js/accordion.js'));

// Set up pagination.
//$pagination = $this->pagination(null, $totalCount, $page, $perPage);
$pagination = $this->pagination(null, $totalCount, $page, $perPage);
$fragment = 'resources-linked';
//$pagination->setFragment($fragment);
$pagination->setFragment($fragment);

// Set up locale.
$valueLang = null;
Expand Down Expand Up @@ -50,15 +50,14 @@ $resourcePropertiesSelect->setValueOptions($valueOptions);
?>
<div id="linked-resources">

<!-- <div class="linked-header">
<div class="linked-header">
<div id="linked-filter">
<label>
<?php //echo $this->translate('Filter by resource type and property:'); ?>
<?php //echo $this->formElement($resourcePropertiesSelect); ?>
<?php echo $this->translate('Filter by resource type and property:'); ?>
<?php echo $this->formElement($resourcePropertiesSelect); ?>
</label>
</div>
<?php //echo ($totalCount > $perPage) ? $pagination : ''; ?>
</div> -->
</div>

<?php foreach ($subjectValues as $values): ?>
<?php
Expand Down Expand Up @@ -99,7 +98,7 @@ $resourcePropertiesSelect->setValueOptions($valueOptions);

<?php endforeach; ?>

<?php //echo ($totalCount > $perPage) ? '<div class="linked-footer">' . $pagination . '</div>' : ''; ?>
<?php echo ($totalCount > $perPage) ? '<div class="linked-footer">' . $pagination . '</div>' : ''; ?>

</div>

Expand Down

0 comments on commit b912abc

Please sign in to comment.