• 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.44
/app/models/requests/service_eligibility/clancy_unavailable.rb
1
# frozen_string_literal: true
2
module Requests
1✔
3
  module ServiceEligibility
1✔
4
    class ClancyUnavailable
1✔
5
      def initialize(requestable:, user:)
1✔
6
        @requestable = requestable
2,273✔
7
        @user = user
2,273✔
8
      end
9

10
      def to_s
1✔
11
        'clancy_unavailable'
×
12
      end
13

14
      def eligible?
1✔
15
        requestable_eligible? && user_eligible?
2,273✔
16
      end
17

18
    private
1✔
19

20
      def user_eligible?
1✔
21
        user.cas_provider? || user.alma_provider?
1✔
22
      end
23

24
      def requestable_eligible?
1✔
25
        requestable.item_at_clancy? && !requestable.clancy_available? &&
2,273✔
26
          requestable.held_at_marquand_library? &&
27
          !(requestable.recap? || requestable.recap_pf?) &&
1✔
28
          !requestable.annex? &&
29
          !requestable.on_order? &&
30
          !requestable.in_process? &&
31
          !requestable.charged? &&
32
          (requestable.alma_managed? || requestable.partner_holding?) &&
1✔
33
          !requestable.aeon?
34
      end
35
      attr_reader :requestable, :user
1✔
36
    end
37
  end
38
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