2022.5
updates ✨
- prioritize CollectionPresenter#abstract for collection descriptions on work views (#950)
- rename "Foreign Languages and Literatures" department to "Languages and Literary Studies" (#954)
bug fixes 🐞
- setting
work.visibility = "authenticated"
will now result inwork.visibility == "authenticated"
, instead of "metadata" (#951)
notes 🎶
after deploying to production, you'll want to update all objects in the "Foreign Languages and Literatures" department to use the new name:
old_dept = 'Foreign Languages & Literatures'
new_dept = 'Languages and Literary Studies'
ActiveFedora::Base.where(academic_department_sim: [old_dept]).each do |work|
work.academic_department = work.academic_department.map { |department| department == old_dept ? new_dept : department }
work.save
end