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

pulibrary / allsearch_api / a80abbec-2aed-4282-a410-0011970d763d

01 Dec 2025 11:13PM UTC coverage: 99.903%. Remained the same
a80abbec-2aed-4282-a410-0011970d763d

push

circleci

web-flow
Merge pull request #411 from pulibrary/database-record-rom

Start using ROM-rb for loading Library Database records from CSV

11 of 11 new or added lines in 3 files covered. (100.0%)

86 existing lines in 13 files now uncovered.

1035 of 1036 relevant lines covered (99.9%)

108.64 hits per line

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

100.0
/app/models/findingaids.rb
1
# frozen_string_literal: true
2

3
# This class is responsible for querying Findingaids (aka PULFAlight)
4
class Findingaids
3✔
5
  include ActiveModel::API
3✔
6
  include Parsed
3✔
7
  include Solr
3✔
8

9
  attr_reader :query_terms, :service, :service_response
3✔
10

11
  def initialize(query_terms:)
3✔
UNCOV
12
    @query_terms = query_terms
17✔
UNCOV
13
    @service = 'findingaids'
17✔
UNCOV
14
    @service_response = solr_service_response
17✔
15
  end
16

17
  def solr_fields
3✔
UNCOV
18
    %w[id collection_ssm creator_ssm level_ssm abstract_ssm
17✔
19
       repository_ssm extent_ssm accessrestrict_ssm normalized_date_ssm]
20
  end
21

22
  def solr_sort
3✔
UNCOV
23
    'score desc, title_sort asc'
17✔
24
  end
25

26
  def extra_solr_params
3✔
UNCOV
27
    'fq=level_ssm:collection'
17✔
28
  end
29
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