Skip to content

Commit

Permalink
Use custom fields for sort selector
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdryden committed Sep 18, 2023
1 parent 2645811 commit 9843732
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions view/teams/trash/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,6 @@
$translate = $this->plugin('translate');
$escape = $this->plugin('escapeHtml');
$this->htmlElement('body')->appendAttribute('class', 'items browse');
$sortHeadings = [
[
'label' => $translate('Title'),
'value' => 'title'
],
[
'label' => $translate('Identifier'),
'value' => 'dcterms:identifier'
],
[
'label' => $translate('Class'),
'value' => 'resource_class_label'
],
[
'label' => $translate('Owner'),
'value' => 'owner_name'
],
[
'label' => $translate('Created'),
'value' => 'created'
],
];
?>

<?php echo $this->pageTitle($translate('Orphaned Items')); ?>
Expand All @@ -32,7 +10,7 @@ $sortHeadings = [

<div class="browse-controls">
<?php echo $this->pagination(); ?>
<?php echo $this->sortSelector($sortHeadings); ?>
<?php echo $this->browse()->renderSortSelector('items'); ?>
</div>

<?php $this->trigger('view.browse.before'); ?>
Expand Down

0 comments on commit 9843732

Please sign in to comment.