From c035561af76462d6553f2848fe0fc3d344280bc6 Mon Sep 17 00:00:00 2001
From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com>
Date: Fri, 10 Jan 2025 20:40:17 -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:
- 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 bf9c2e189..fe9b79d3c 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 b38bf49a1..472ffc871 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 %>