Skip to content

Commit

Permalink
Correct typo in field name
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbudakguy committed Jan 19, 2024
1 parent 97fe4b9 commit 2eaaa4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/geo_combine/migrators/v1_aardvark_migrator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'active_support/core_ext'

module GeoCombine
module Migrators
# migrates the v1 schema to the aardvark schema
Expand Down Expand Up @@ -53,7 +55,7 @@ def convert_non_crosswalked_fields
# Resource class is required so we default to "Other"; resource type is not required.
@v2_hash['gbl_resourceClass_s'] = RESOURCE_CLASS_MAP[@v1_hash['dc_type_s']&.gsub(/\s+/, '')] || ['Other']
resource_type = RESOURCE_TYPE_MAP[@v1_hash['layer_geom_type_s']&.gsub(/\s+/, '')]
@v2_hash['gbl_resourceType_s'] = resource_type unless resource_type.nil?
@v2_hash['gbl_resourceType_sm'] = resource_type unless resource_type.nil?

# If the user specified a collection id map, use it to convert the collection names to ids
is_part_of = @v1_hash['dct_isPartOf_sm']&.map { |name| @collection_id_map[name] }&.compact
Expand Down

0 comments on commit 2eaaa4e

Please sign in to comment.