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

pulibrary / orangelight / 4c391e0e-519a-40cb-8ad3-354445f4ce03

12 Aug 2025 08:47PM UTC coverage: 85.348% (-10.0%) from 95.335%
4c391e0e-519a-40cb-8ad3-354445f4ce03

push

circleci

web-flow
[#5143] Use access restriction note as Aeon ItemInfo1 if available (#5173)

With this commit, if a user visits a record with an access
restrictions note and presses the Reading Room Request
button, they will get to an Aeon form with the 'Restrictions'
field pre-filled with the restriction note.

If the record does not have an access restrictions note,
the field will be pre-filled with 'Reading Room Access Only',
as it has been previously.

Closes #5143

5493 of 6436 relevant lines covered (85.35%)

251.82 hits per line

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

54.55
/app/checks/bibdata_status.rb
1
# frozen_string_literal: true
2
class BibdataStatus < HealthMonitor::Providers::Base
1✔
3
  attr_reader :critical
1✔
4

5
  def initialize
1✔
6
    super
1✔
7
    @critical = false
1✔
8
  end
9

10
  def check!
1✔
11
    status_uri = URI("#{Requests.config[:bibdata_base]}/health.json")
×
12
    req = Net::HTTP::Get.new(status_uri)
×
13
    response = Net::HTTP.start(status_uri.hostname, status_uri.port, use_ssl: true) { |http| http.request(req) }
×
14
    json_response = JSON.parse(response.body)
×
15
    raise "Bibdata has an invalid status" unless json_response["status"] == "ok"
×
16
  end
17
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