Skip to content

Commit

Permalink
Get harvest_object_id from harvest element first
Browse files Browse the repository at this point in the history
Getting from the extra field doesn't return the latest update
  • Loading branch information
kentsanggds committed Oct 3, 2024
1 parent c8c6343 commit ff0cfb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/ckan/v26/inspire_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def call(package)
coupled_resource: package.get_extra("coupled-resource"),
dataset_reference_date: package.get_extra("dataset-reference-date"),
frequency_of_update: package.get_extra("frequency-of-update"),
harvest_object_id: package.get_extra("harvest_object_id") || package.get_harvest("harvest_object_id"),
harvest_object_id: package.get_harvest("harvest_object_id") || package.get_extra("harvest_object_id"),
harvest_source_reference: package.get_extra("harvest_source_reference"),
import_source: package.get_extra("import_source"),
metadata_date: package.get_extra("metadata-date", 10),
Expand Down

0 comments on commit ff0cfb0

Please sign in to comment.