Skip to content

Commit

Permalink
fixup linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JPrevost committed Feb 22, 2024
1 parent a484ddb commit 4f3b4df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions app/graphql/types/aggregations_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ class AggregationsType < Types::BaseObject
field :format, [Types::AggregationCountType], null: true, description: 'Total search results by format'
field :content_type, [Types::AggregationCountType], null: true, description: 'Total search results by content type'
field :contributors, [Types::AggregationCountType], null: true,
description: 'Total search results by contributor name; e.g., author, editor, etc.'
description: 'Total search results by contributor name; ' \
'e.g., author, editor, etc.'
field :languages, [Types::AggregationCountType], null: true, description: 'Total search results by language'
field :literary_form, [Types::AggregationCountType], null: true,
description: 'Total search results by fiction or nonfiction'
field :source, [Types::AggregationCountType], null: true,
description: 'Total search results by source record system'
field :subjects, [Types::AggregationCountType], null: true, description: 'Total search results by subject term'
field :places, [Types::AggregationCountType], null: true,
description: 'Total search results by Place (which is a subject with type `Dublin Core; Spatial`)'
description: 'Total search results by Place (which is a subject ' \
'with type `Dublin Core; Spatial`)'
end
end
6 changes: 3 additions & 3 deletions app/graphql/types/query_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ def record_id(id:, index:)
'list of possible values. Multiple values are ANDed.'
argument :languages_filter, [String], required: false, default_value: nil,
description: 'Filter results by language. Use the `languages` ' \
'aggregation for a list of possible values. Multiple values '\
'aggregation for a list of possible values. Multiple values ' \
'are ANDed.'
argument :literary_form_filter, String, required: false, default_value: nil,
description: 'Filter results by fiction or nonfiction'
argument :places_filter, [String], required: false, default_value: nil,
description: 'Filter by places. Use the `places` aggregation ' \
description: 'Filter by places. Use the `places` aggregation ' \
'for a list of possible values. Multiple values are ANDed.'
argument :source_filter, [String], required: false, default_value: nil,
description: 'Filter by source record system. Use the `sources` aggregation ' \
Expand Down Expand Up @@ -140,7 +140,7 @@ def construct_query(searchterm, citation, contributors, funding_information, geo
query[:contributors_filter] = filters[:contributors_filter]
query[:languages_filter] = filters[:languages_filter]
query[:literary_form_filter] = filters[:literary_form_filter]
query[:places_filter] = filters[:places_filter]
query[:places_filter] = filters[:places_filter]
query = source_deprecation_handler(query, filters[:source_filter], source)
query[:subjects_filter] = filters[:subjects_filter]
query
Expand Down

0 comments on commit 4f3b4df

Please sign in to comment.