• 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

50.0
/app/controllers/contact_controller.rb
1
# frozen_string_literal: true
2
class ContactController < ApplicationController
1✔
3
  def question
1✔
4
    @form = AskAQuestionForm.new(question_params)
×
5
    if @form.valid? && @form.submit
×
6
      flash[:success] = 'Your question has been submitted'
×
7

8
      render "question_success"
×
9
    else
10
      render partial: "catalog/ask_a_question_form", locals: { form: @form }, status: :unprocessable_entity
×
11
    end
12
  end
13

14
  def suggestion
1✔
15
    @form = SuggestCorrectionForm.new(suggestion_params)
×
16
    if @form.valid? && @form.submit
×
17
      flash[:success] = 'Your suggestion has been submitted'
×
18

19
      render "suggestion_success"
×
20
    else
21
      render partial: "catalog/suggest_correction_form", locals: { form: @form }, status: :unprocessable_entity
×
22
    end
23
  end
24

25
  def report_biased_results
1✔
26
    @form = ReportBiasedResultsForm.new(report_biased_results_params)
1✔
27
    if @form.valid? && @form.submit
1✔
28
      flash[:success] = 'Your report has been submitted'
1✔
29

30
      render "report_biased_results_success"
1✔
31
    else
32
      render partial: "catalog/report_biased_results_form", locals: { form: @form }, status: :unprocessable_entity
×
33
    end
34
  end
35

36
  private
1✔
37

38
    def question_params
1✔
39
      params[:ask_a_question_form].permit!
×
40
    end
41

42
    def suggestion_params
1✔
43
      params[:suggest_correction_form].permit!
×
44
    end
45

46
    def report_biased_results_params
1✔
47
      params[:report_biased_results_form].permit!
1✔
48
    end
49
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