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

pulibrary / orangelight / 86b3ce83-9608-4beb-95eb-2d17942480a0

02 Feb 2026 04:48PM UTC coverage: 0.477% (-94.6%) from 95.107%
86b3ce83-9608-4beb-95eb-2d17942480a0

push

circleci

web-flow
Update DRY gems (#5585)

47 of 9853 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/reference_note_url_processor.rb
1
# frozen_string_literal: true
2
module Orangelight
×
3
  # For reference notes that end with a url convert the note into link
4
  class ReferenceNoteUrlProcessor < Blacklight::Rendering::AbstractStep
×
5
    include ActionView::Helpers::UrlHelper
×
6

7
    def render
×
8
      return next_step(values) unless config.references_url
×
9
      values.map! do |reference|
×
10
        if (url = reference[/ (http.*)$/])
×
11
          chomped = reference.chomp(url)
×
12
          reference = link_to(chomped, url.gsub(/\s/, ''), target: '_blank', rel: 'noopener')
×
13
        end
×
14
        reference
×
15
      end
×
16

17
      next_step(values)
×
18
    end
×
19
  end
×
20
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

© 2026 Coveralls, Inc