Skip to content

Commit

Permalink
Mapped remaining properties to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
anusharanganathan committed Oct 8, 2024
1 parent c27bcfe commit 3c24644
Show file tree
Hide file tree
Showing 2 changed files with 478 additions and 5 deletions.
6 changes: 3 additions & 3 deletions hyrax/app/services/mdr_export_work_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def add_metadata
def add_files
@work.file_sets.each do |file_set|
next if file_set.original_file.blank?
file_set.original_file.tap do |file|
filepath = File.join(@work_dir, CGI.unescape(file_set.original_file.file_name.first))
file_set.original_file.tap do |original_file|
filepath = File.join(@work_dir, CGI.unescape(original_file.file_name.first))
File.open(filepath, 'wb') do |output|
file.stream.each { |content| output.write(content) }
original_file.stream.each { |content| output.write(content) }
end
end
end
Expand Down
Loading

0 comments on commit 3c24644

Please sign in to comment.