diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 6aedabf4c..67c354e47 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -22,8 +22,8 @@ jobs: - ruby: "3.2" rails_version: 7.1.5.1 - ruby: "3.4" - rails_version: "8.0.1" - blacklight_version: 9.0.0.beta1 + rails_version: "8.0.4" + blacklight_version: 9.0.0.beta8 additional_name: "/ Blacklight 9" env: RAILS_VERSION: ${{ matrix.rails_version }} diff --git a/app/components/arclight/embed_component.rb b/app/components/arclight/embed_component.rb index 9961590c7..80579fabc 100644 --- a/app/components/arclight/embed_component.rb +++ b/app/components/arclight/embed_component.rb @@ -3,10 +3,10 @@ module Arclight # Render digital object links for a document class EmbedComponent < ViewComponent::Base - def initialize(document:, presenter:, **kwargs) # rubocop:disable Lint/UnusedMethodArgument + def initialize(presenter:, document_counter: nil, **kwargs) # rubocop:disable Lint/UnusedMethodArgument super() - @document = document + @document = presenter.document @presenter = presenter end diff --git a/app/components/arclight/repository_location_component.html.erb b/app/components/arclight/repository_location_component.html.erb index e875a059b..4813eed82 100644 --- a/app/components/arclight/repository_location_component.html.erb +++ b/app/components/arclight/repository_location_component.html.erb @@ -1,8 +1,8 @@ -<%= render(@layout.new(field: @field)) do |component| %> +<%= render(@layout.new(field: @field, index: 0)) do |component| %> <% component.with_label do %> <%= label %> <% end %> - <% component.with_value do %> + <% component.with_value(index: 0) do %>