• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / orangelight / 77da2c21-3227-43f3-a0bf-f3d29ae7d663

29 Oct 2024 07:18PM UTC coverage: 96.824% (-0.04%) from 96.867%
77da2c21-3227-43f3-a0bf-f3d29ae7d663

push

circleci

web-flow
Merge pull request #4480 from pulibrary/i4187_previous_next_to_view_component

Use ServerItemPaginationComponent

6 of 9 new or added lines in 2 files covered. (66.67%)

6127 of 6328 relevant lines covered (96.82%)

1545.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

62.5
/app/components/blacklight/search_context/server_item_pagination_component.rb
1
# frozen_string_literal: true
2

3
# This can be removed after migrating to Blacklight 8
4
module Blacklight
3✔
5
  module SearchContext
3✔
6
    # This class makes the ServerItemPaginationComponent that is present in Blacklight 8
7
    # available while we are still on Blacklight 7
8
    class ServerItemPaginationComponent < Blacklight::SearchContextComponent
3✔
9
      with_collection_parameter :search_context
3✔
10

11
      def initialize(search_context:, search_session:, current_document:)
3✔
NEW
12
        @search_context = search_context
×
NEW
13
        @search_session = search_session
×
NEW
14
        @current_document_id = current_document.id
×
15
      end
16
    end
17
  end
18
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc