@@ -592,7 +592,7 @@ def build_collection_hierarchy(collection_id, headers):
592592 return children
593593
594594
595- def build_collection_metadata_for_v1_dataset (dataset , user_v1 , headers ):
595+ def build_collection_space_metadata_for_v1_dataset (dataset , user_v1 , headers ):
596596 dataset_id = dataset ["id" ]
597597 dataset_collections = get_clowder_v1_dataset_collections (
598598 headers = headers , user_v1 = user_v1 , dataset_id = dataset_id
@@ -667,7 +667,7 @@ def process_user_and_resources(user_v1, USER_MAP, DATASET_MAP):
667667 add_file_metadata (file , file_v2_id , clowder_headers_v1 , user_headers_v2 )
668668 # posting the collection hierarchy as metadata
669669 # TODO need to actually post this
670- collection_metadata_dict = build_collection_metadata_for_v1_dataset (
670+ collection_space_metadata_dict = build_collection_space_metadata_for_v1_dataset (
671671 dataset = dataset , user_v1 = user_v1 , headers = clowder_headers_v1
672672 )
673673 migration_extractor_collection_metadata = {
@@ -677,8 +677,8 @@ def process_user_and_resources(user_v1, USER_MAP, DATASET_MAP):
677677 "description" : "Migration of metadata from Clowder v1 to Clowder v2" ,
678678 },
679679 "context_url" : "https://clowder.ncsa.illinois.edu/contexts/metadata.jsonld" ,
680- "content" : collection_metadata_dict ,
681- "contents" : collection_metadata_dict ,
680+ "content" : collection_space_metadata_dict ,
681+ "contents" : collection_space_metadata_dict ,
682682 }
683683 v2_metadata_endpoint = f"{ CLOWDER_V2 } /api/v2/datasets/{ dataset_v2_id } /metadata"
684684 response = requests .post (
0 commit comments