From e0e0a8d08f65d0187588f2539b3d7ec45f5d2282 Mon Sep 17 00:00:00 2001 From: Jin-Sun-tts Date: Wed, 23 Oct 2024 17:07:34 -0400 Subject: [PATCH] add new field for source datajon format --- harvester/utils/ckan_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/harvester/utils/ckan_utils.py b/harvester/utils/ckan_utils.py index 5817202..6024c1c 100644 --- a/harvester/utils/ckan_utils.py +++ b/harvester/utils/ckan_utils.py @@ -171,6 +171,10 @@ def create_ckan_extras(metadata: dict, harvest_source) -> list[dict]: "value": harvest_source.internal_records_lookup_table[ metadata["identifier"]] }, + { + "key": "source_datajson_identifier", # dataset is datajson format or not + "value": True, + }, { "key": "harvest_source_id", "value": harvest_source.id,