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

pulibrary / bibdata / f04bc944-f9b4-4a42-8b26-dcacd0e3e688

11 Mar 2025 10:27PM UTC coverage: 34.017% (-58.1%) from 92.162%
f04bc944-f9b4-4a42-8b26-dcacd0e3e688

Pull #2653

circleci

christinach
Add new lc_subject_facet field.
Helps with the vocabulary work https://github.com/pulibrary/orangelight/pull/3386
In this new field we index only the lc subject heading and the subdivisions
So that when the user searches using the Details section, they can query solr for
all the subject headings and their divisions.

This is needed for the Subject browse Vocabulary work.
example: "lc_subject_facet": [
             "Booksellers and bookselling—Italy—Directories",
             "Booksellers and bookselling-Italy",
             "Booksellers and bookselling"
              ]
Pull Request #2653: Add new lc_subject_facet field.

1 of 3 new or added lines in 1 file covered. (33.33%)

2215 existing lines in 93 files now uncovered.

1294 of 3804 relevant lines covered (34.02%)

0.99 hits per line

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

36.36
/app/services/alma/indexer.rb
1
class Alma::Indexer
1✔
2
  attr_reader :solr_url
1✔
3

4
  def initialize(solr_url:)
1✔
UNCOV
5
    @solr_url = solr_url
×
6
  end
7

8
  def index_file(file_path, debug_mode = false)
1✔
UNCOV
9
    debug_flag = debug_mode ? '--debug-mode' : ''
×
10
    # nosemgrep
UNCOV
11
    stdout, stderr, status = Open3.capture3("traject #{debug_flag} -c marc_to_solr/lib/traject_config.rb #{file_path} -u #{solr_url} -w Traject::PulSolrJsonWriter")
×
UNCOV
12
    if stderr.include?('FATAL') && !status.success?
×
UNCOV
13
      Rails.logger.error(stderr)
×
UNCOV
14
      raise "Traject indexing failed for #{file_path}: #{stderr}"
×
15
    else
UNCOV
16
      Rails.logger.info("Successfully indexed file #{file_path}")
×
17
    end
18
  end
19
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