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

pulibrary / orangelight / 00dbc10b-d747-4ad7-b211-7b26d753abbb

14 Aug 2025 01:25PM UTC coverage: 0.483% (-94.9%) from 95.343%
00dbc10b-d747-4ad7-b211-7b26d753abbb

push

circleci

web-flow
Merge pull request #5181 from pulibrary/dependabot/bundler/activestorage-7.2.2.2

Bump activestorage from 7.2.2.1 to 7.2.2.2

47 of 9721 relevant lines covered (0.48%)

0.01 hits per line

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

0.0
/app/components/numismatics_search_form_component.rb
1
# frozen_string_literal: true
2

3
class NumismaticsSearchFormComponent < Blacklight::AdvancedSearchFormComponent
×
4
  private
×
5

6
    def initialize_search_filter_controls
×
7
      fields = ['issue_object_type_s', 'issue_denomination_s',
×
8
                'issue_metal_s', 'issue_city_s', 'issue_state_s',
×
9
                'issue_region_s', 'issue_ruler_s',
×
10
                'issue_artists_s', 'find_place_s'].map do |field_name|
×
11
        blacklight_config.facet_fields[field_name]
×
12
      end.compact
×
13

14
      fields.each do |config|
×
15
        config.advanced_search_component = Orangelight::FacetFieldCheckboxesComponent
×
16
        display_facet = @response.aggregations[config.field]
×
17
        with_search_filter_control(config:, display_facet:)
×
18
      end
×
19
    end
×
20

21
    def pub_date_field
×
22
      blacklight_config.facet_fields['pub_date_start_sort']
×
23
    end
×
24

25
    def pub_date_field_display_facet
×
26
      @response.aggregations[pub_date_field]
×
27
    end
×
28

29
    def pub_date_presenter
×
30
      view_context.facet_field_presenter(pub_date_field, pub_date_field_display_facet)
×
31
    end
×
32

33
    def initialize_constraints
×
34
      params = helpers.search_state.params_for_search.except :page, :q, :search_field, :op, :index, :sort
×
35

36
      adv_search_context = helpers.search_state.reset(params)
×
37

38
      constraints_text = render(Blacklight::ConstraintsComponent.for_search_history(search_state: adv_search_context))
×
39

40
      return if constraints_text.blank?
×
41

42
      with_constraint do
×
43
        constraints_text
×
44
      end
×
45
    end
×
46

47
    def hidden_search_state_params
×
48
      @params.except(:clause, :f_inclusive, :op, :sort).merge({ 'advanced_type' => 'numismatics' })
×
49
    end
×
50
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