app/jobs/characterize_job.rb in hyrax-4.0.0.beta2 vs app/jobs/characterize_job.rb in hyrax-4.0.0.rc1
- old
+ new
@@ -63,11 +63,12 @@
# all changes to the current FileSet version to be detected, which in our case triggers re-creation of a...
# "cold storage" archive of the parent Work. It's worth noting that adding a *new* version always touches this...
# mod time. This is done in the versioning code.
file_set.date_modified = Hyrax::TimeService.time_in_utc if file_set.characterization_proxy.original_checksum.first != previous_checksum
- # set title to label if that's how it was before this characterization
- file_set.title = [file_set.characterization_proxy.original_name.force_encoding("UTF-8")] if reset_title
+ file_set.characterization_proxy.original_name.force_encoding("UTF-8")
+ # set title to label (i.e. file name, `original_name`) if that's how it was before this characterization
+ file_set.title = [file_set.characterization_proxy.original_name] if reset_title
# always set the label to the original_name
file_set.label = file_set.characterization_proxy.original_name
file_set.save!
end