Skip to content
Snippets Groups Projects
Commit 46fb7399 authored by Gyan Gupta's avatar Gyan Gupta Committed by Anusha Ranganathan
Browse files

Fixed experiment description property text displayed twice

parent 43b28596
Branches
Tags
1 merge request!339Fixed experiment description property text displayed twice
......@@ -62,7 +62,6 @@ class PrepareCsvFromCrcFolder
crc_work_type
doi
alternative_title
description
group_identifier
record_date
date_description
......@@ -322,6 +321,8 @@ class PrepareCsvFromCrcFolder
# fix incorrect spelling in import data
file_attributes['Modality'] = correct_spelling_of_modality(file_attributes['Modality'])
experiment_description = [file_attributes['Experiment Description'], file_attributes['DublinCore-Description'], file_attributes['DataCite-Description']].find(&:present?)
[
'CrcDataset',
'',
......@@ -345,11 +346,10 @@ class PrepareCsvFromCrcFolder
'Dataset',
file_attributes['DublinCore-Type'],
meta_info[:folder_name],
file_attributes['Experiment Description'],
experiment_description,
meta_info[:crc_work_type],
'',
'',
file_attributes['DublinCore-Description'],
file_attributes['Group ID'],
file_attributes['Record date'],
file_attributes['DataCite-dateType'],
......@@ -415,7 +415,6 @@ class PrepareCsvFromCrcFolder
'',
'',
'',
'',
file_attributes['Subject ID'],
file_attributes['Subject Species'],
file_attributes['Subject type'],
......@@ -472,7 +471,6 @@ class PrepareCsvFromCrcFolder
'',
'',
'',
'',
file_attributes['Record date'],
'',
'',
......@@ -536,7 +534,6 @@ class PrepareCsvFromCrcFolder
'',
'',
'',
'',
file_attributes['Modality']&.join(','),
'',
'',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment