• 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

94.74
/app/forms/report_biased_results_form.rb
1
# frozen_string_literal: true
2
class ReportBiasedResultsForm
1✔
3
  include ActiveModel::Model
1✔
4
  include Honeypot
1✔
5
  attr_accessor :name, :email, :message, :context
1✔
6

7
  validates :message, presence: true
1✔
8

9
  def email_subject
1✔
10
    "[Possible Biased Results]"
2✔
11
  end
12

13
  def submit
1✔
14
    ContactMailer.with(form: self).biased_results.deliver unless spam?
1✔
15
    @submitted = true
1✔
16
    @name = ""
1✔
17
    @email = ""
1✔
18
    @message = ""
1✔
19
  end
20

21
  def submitted?
1✔
22
    @submitted == true
×
23
  end
24

25
  def routed_mail_to
1✔
26
    Orangelight.config["report_biased_results_form"]["to"]
1✔
27
  end
28

29
  # If the form does not include an email, use the routed_mail_to email for the "from" field
30
  def from_email
1✔
31
    @from_email ||= @email.presence || routed_mail_to
1✔
32
  end
33
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