Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix member pagination on OER show pages #2407

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix member pagination on OER show pages
Pagination was attempting to act upon a local variable that didn't
exist; it was removed in this commit:
- notch8/palni-palci@fbe9093

Replace it with the presenter method that Hyrax typically uses to
display member presenters
bkiahstroud committed Jan 11, 2025
commit 324522064b076d703f14b6cdabc346326dd08750
2 changes: 1 addition & 1 deletion app/views/hyrax/oers/_related_items.html.erb
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@
<div class="row">
<% if presenter.total_pages > 1 %>
<div class="row record-padding col-md-9">
<%= paginate array_of_ids, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
<%= paginate presenter.list_of_item_ids_to_display, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
</div><!-- /pager -->
<% end %>
</div>
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
<div class="row">
<% if presenter.total_pages > 1 %>
<div class="row record-padding col-md-9">
<%= paginate array_of_ids, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
<%= paginate presenter.list_of_item_ids_to_display, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
</div><!-- /pager -->
<% end %>
</div>