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

pulibrary / orangelight / 62bad3f1-d46d-40af-822c-403d653da2a8

17 Jun 2025 05:30PM UTC coverage: 0.447% (-94.9%) from 95.337%
62bad3f1-d46d-40af-822c-403d653da2a8

push

circleci

maxkadel
Install chrome & chromedriver for smoke specs

43 of 9610 relevant lines covered (0.45%)

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