public function __construct(array $arguments)
 {
     $arguments += array('description' => '', 'source_connection' => 'drupal6', 'source_version' => 6, 'source_type' => 'data_file', 'destination_type' => 'data_source', 'user_migration' => 'DeimsUser');
     parent::__construct($arguments);
     // This content type does not have a body field.
     $this->removeFieldMapping('body');
     $this->removeFieldMapping('body:language');
     $this->removeFieldMapping('body:summary');
     $this->removeFieldMapping('body:format');
     $this->addUnmigratedSources(array('body', 'teaser', 'format'));
     $this->addFieldMapping('field_data_source_file', 'field_data_file')->sourceMigration('DeimsFile');
     $this->addFieldMapping('field_data_source_file:file_class')->defaultValue('MigrateFileFid');
     $this->addFieldMapping('field_data_source_file:preserve_files')->defaultValue(TRUE);
     $this->addFieldMapping('field_methods', 'field_methods');
     $this->addFieldMapping('field_methods:format', 'field_methods:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_instrumentation', 'field_instrumentation');
     $this->addFieldMapping('field_instrumentation:format', 'field_instrumentation:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_quality_assurance', 'field_quality');
     $this->addFieldMapping('field_quality_assurance:format', 'field_quality:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_related_sites', 'field_datafile_site_ref')->sourceMigration('DeimsContentResearchSite');
     $this->addFieldMapping('field_variables')->description('Handled in prepare().');
     $this->addFieldMapping('field_description', 'field_datafile_description');
     $this->addFieldMapping('field_csv_header_lines', 'field_num_header_line');
     $this->addFieldMapping('field_csv_footer_lines', 'field_num_footer_lines');
     $this->addFieldMapping('field_csv_orientation', 'field_orientation');
     $this->addFieldMapping('field_csv_quote_character', 'field_quote_character');
     $this->addFieldMapping('field_csv_field_delimiter', 'field_delimiter');
     $this->addFieldMapping('field_csv_record_delimiter', 'field_record_delimiter');
     $this->addFieldMapping('field_date_range', 'field_beg_end_date');
     $this->addFieldMapping('field_date_range:to', 'field_beg_end_date:value2');
     $this->addUnmigratedSources(array('field_datafile_variable_ref', 'field_data_file_data_set'));
     $this->addUnmigratedDestinations(array('field_data_source_file:language', 'field_data_source_file:destination_dir', 'field_data_source_file:destination_file', 'field_data_source_file:file_replace', 'field_data_source_file:source_dir', 'field_data_source_file:urlencode', 'field_data_source_file:description', 'field_data_source_file:display', 'field_methods:language', 'field_instrumentation:language', 'field_quality_assurance:language', 'field_variables:name', 'field_variables:type', 'field_variables:definition', 'field_variables:data', 'field_variables:missing_values', 'field_description:format', 'field_description:language', 'field_csv_quote_character:language', 'field_csv_field_delimiter:language', 'field_csv_record_delimiter:language'));
 }
 public function __construct(array $arguments)
 {
     $arguments += array('description' => '', 'source_connection' => 'drupal6', 'source_version' => 6, 'source_type' => 'data_set', 'destination_type' => 'data_set', 'user_migration' => 'DeimsUser');
     parent::__construct($arguments);
     // This content type does not have a body field.
     $this->removeFieldMapping('body');
     $this->removeFieldMapping('body:language');
     $this->removeFieldMapping('body:summary');
     $this->removeFieldMapping('body:format');
     $this->addUnmigratedSources(array('body', 'teaser', 'format'));
     $this->addFieldMapping('field_data_sources', 'field_dataset_datafile_ref')->sourceMigration('DeimsContentDataFile')->description('Possibly overridden in prepareRow().');
     $this->addFieldMapping('field_data_set_id', 'field_dataset_id');
     $this->addFieldMapping('field_abstract', 'field_dataset_abstract');
     $this->addFieldMapping('field_abstract:format', 'field_dataset_abstract:format')->callbacks(array($this, 'mapFormat'));
     //$this->addFieldMapping('field_core_areas', '1');
     $this->addFieldMapping('field_short_name', 'field_dataset_short_name');
     //$this->addFieldMapping('field_keywords', '9');
     $this->addFieldMapping('field_purpose', 'field_dataset_purpose');
     $this->addFieldMapping('field_purpose:format', 'field_dataset_purpose:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_additional_information', 'field_dataset_add_info');
     $this->addFieldMapping('field_additional_information:format', 'field_dataset_add_info:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_related_links', 'field_dataset_related_links');
     $this->addFieldMapping('field_related_links:title', 'field_dataset_related_links:title');
     $this->addFieldMapping('field_related_links:attributes', 'field_dataset_related_links:attributes');
     //$this->addFieldMapping('field_related_publications', 'field_dataset_biblio_ref')
     //  ->sourceMigration('DeimsContentBiblioMigration');
     $this->addFieldMapping('field_maintenance', 'field_dataset_maintenance');
     $this->addFieldMapping('field_maintenance:format', 'field_dataset_maintenance:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_related_sites', 'field_dataset_site_ref')->sourceMigration('DeimsContentResearchSite');
     $this->addFieldMapping('field_methods', 'field_methods');
     $this->addFieldMapping('field_methods:format', 'field_methods:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_instrumentation', 'field_instrumentation');
     $this->addFieldMapping('field_instrumentation:format', 'field_instrumentation:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_quality_assurance', 'field_quality');
     $this->addFieldMapping('field_quality_assurance:format', 'field_quality:format')->callbacks(array($this, 'mapFormat'));
     $this->addFieldMapping('field_project_roles')->description('Handled in prepare().');
     $this->addFieldMapping('field_date_range', 'field_beg_end_date');
     $this->addFieldMapping('field_date_range:to', 'field_beg_end_date:value2');
     $this->addFieldMapping('field_publication_date', 'field_dataset_publication_date');
     $this->addFieldMapping('field_person_creator', 'field_dataset_owner_ref')->sourceMigration('NtlContentPersonNew');
     $this->addFieldMapping('field_person_contact', 'field_dataset_contact_ref')->sourceMigration('NtlContentPersonNew');
     $this->addUnmigratedSources(array('field_dataset_datamanager_ref', 'field_dataset_fieldcrew_ref', 'field_dataset_labcrew_ref', 'field_dataset_ext_assoc_ref'));
     $this->addUnmigratedDestinations(array('field_data_set_id:language', 'field_abstract:language', 'field_short_name:language', 'field_purpose:language', 'field_additional_information:language', 'field_related_links:language', 'field_maintenance:language', 'field_methods:language', 'field_instrumentation:language', 'field_quality_assurance:language', 'field_doi', 'field_doi:language', 'field_eml_hash', 'field_eml_hash:language', 'field_eml_link', 'field_eml_revision_id', 'field_eml_valid', 'field_person_metadata_provider', 'field_person_publisher'));
 }