app/models/bulkrax/csv_entry.rb in bulkrax-3.3.1 vs app/models/bulkrax/csv_entry.rb in bulkrax-3.3.2

- old
+ new

@@ -112,13 +112,14 @@ end def build_files_metadata file_mapping = key_for_export('file') file_sets = hyrax_record.file_set? ? Array.wrap(hyrax_record) : hyrax_record.file_sets - filenames = file_sets.map { |fs| filename(fs).to_s if filename(fs).present? }.compact + filenames = map_file_sets(file_sets) handle_join_on_export(file_mapping, filenames, mapping['file']&.[]('join')&.present?) + build_thumbnail_files if hyrax_record.work? end def build_relationship_metadata # Includes all relationship methods for all exportable record types (works, Collections, FileSets) relationship_methods = { @@ -215,18 +216,9 @@ else self.parsed_metadata["#{key_for_export(key)}_#{index + 1}"] = prepare_export_data(obj[key]) end end end - end - - def build_files - file_mapping = mapping['file']&.[]('from')&.first || 'file' - file_sets = hyrax_record.file_set? ? Array.wrap(hyrax_record) : hyrax_record.file_sets - - filenames = map_file_sets(file_sets) - handle_join_on_export(file_mapping, filenames, mapping['file']&.[]('join')&.present?) - build_thumbnail_files if hyrax_record.work? end def build_thumbnail_files return unless importerexporter.include_thumbnails