• 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

37.5
/marc_to_solr/lib/format/xv6xx.rb
1
# A utility class to get all the 6XX $v and $x, which
2
# are used over and over again in the format finder
3
class XV6XX
1✔
4
  # Find all the 6XXxv values in the given record
5
  # @param [MARC::Record] record
6
  def initialize(record)
1✔
UNCOV
7
    @vals = []
×
UNCOV
8
    record.fields('600'..'699').each do |f|
×
UNCOV
9
      f.each do |sf|
×
UNCOV
10
        @vals << sf.value if %[x v].include?(sf.code)
×
11
      end
12
    end
13
  end
14

15
  # Do any of the 6XXxv values match the given
16
  # regex?
17
  # @param [Regexp] regex The regex to match
18
  # @return [Boolean] Does the given regexp match at least one value?
19
  def match?(regex)
1✔
UNCOV
20
    return @vals.grep(regex).size > 0
×
21
  end
22
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