From 324522064b076d703f14b6cdabc346326dd08750 Mon Sep 17 00:00:00 2001 From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:56:48 -0800 Subject: [PATCH] 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: - https://github.com/notch8/palni-palci/commit/fbe9093 Replace it with the presenter method that Hyrax typically uses to display member presenters --- app/views/hyrax/oers/_related_items.html.erb | 2 +- .../themes/cultural_show/hyrax/oers/_related_items.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/hyrax/oers/_related_items.html.erb b/app/views/hyrax/oers/_related_items.html.erb index 551c12a84..b1704bc61 100644 --- a/app/views/hyrax/oers/_related_items.html.erb +++ b/app/views/hyrax/oers/_related_items.html.erb @@ -32,7 +32,7 @@
<% if presenter.total_pages > 1 %>
- <%= 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 %>
<% end %>
diff --git a/app/views/themes/cultural_show/hyrax/oers/_related_items.html.erb b/app/views/themes/cultural_show/hyrax/oers/_related_items.html.erb index bfdfa4ae8..26b38bdfa 100644 --- a/app/views/themes/cultural_show/hyrax/oers/_related_items.html.erb +++ b/app/views/themes/cultural_show/hyrax/oers/_related_items.html.erb @@ -21,7 +21,7 @@
<% if presenter.total_pages > 1 %>
- <%= 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 %>
<% end %>