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

pulibrary / orangelight / 00dbc10b-d747-4ad7-b211-7b26d753abbb

14 Aug 2025 01:25PM UTC coverage: 0.483% (-94.9%) from 95.343%
00dbc10b-d747-4ad7-b211-7b26d753abbb

push

circleci

web-flow
Merge pull request #5181 from pulibrary/dependabot/bundler/activestorage-7.2.2.2

Bump activestorage from 7.2.2.1 to 7.2.2.2

47 of 9721 relevant lines covered (0.48%)

0.01 hits per line

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

0.0
/app/processors/orangelight/join_processor.rb
1
# frozen_string_literal: true
2

3
module Orangelight
×
4
  class JoinProcessor < Blacklight::Rendering::AbstractStep
×
5
    include ActionView::Context
×
6
    include ActionView::Helpers::TextHelper
×
7

8
    def render
×
9
      return next_step(values) if values.blank?
×
10
      return next_step(values.first) if values.length == 1
×
11

12
      joined = content_tag :ul, id: "#{config.key}-list" do
×
13
        values.each_with_index do |value, index|
×
14
          list_item = content_tag(:li, value, class: css_class(index), dir: direction(value))
×
15
          concat list_item
×
16
        end
×
17
      end
×
18
      next_step(joined)
×
19
    end
×
20

21
    private
×
22

23
      def direction(value)
×
24
        return 'rtl' if value.dir == 'rtl' || value.include?('dir="rtl"')
×
25
        'ltr'
×
26
      end
×
27

28
      def css_class(index)
×
29
        class_string = "blacklight-#{config.key}"
×
30
        class_string = "#{class_string} d-none" if config.maxInitialDisplay && index >= config.maxInitialDisplay
×
31
        class_string
×
32
      end
×
33
  end
×
34
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