Skip to content

Sufia 6.4.0

Compare
Choose a tag to compare
@awead awead released this 12 Nov 20:48
· 2596 commits to master since this release

Sufia 6.4.0 includes new features for citation configuration, uploading files to collections, as well as improvements with ImageMagick.

Upgrade Notes

Update your Gemfile to use version 6.4.0 and run bundle update sufia

Run the following generator to allow specifying a Geonames username. If you are using the typeahead for the location metadata field, you must run this generator and populate the config.geonames_username field in config/initializers/sufia.rb after signing up for a Geonames API account. This has been using a default username, which is problematic now that the number of production Sufia instances is growing.

rails g sufia:models:geonames_username_config

Also, run the following generator which fixes a known bug in how derivatives are generated:

rails g sufia:models:minimagick_config

Last, if your repository was NOT migrated from an earlier version of Sufia to 6.x -- i.e., you were using Sufia atop Fedora 3 and migrated to Sufia atop Fedora 4 -- you will want to manually change a couple lines of code in app/controllers/catalog_controller.rb. (Once again, this change is only for instances of Sufia that have never been based on Fedora 3.)

  def self.uploaded_field
-    solr_name('date_uploaded', :stored_sortable, type: :date)
+    solr_name('system_create', :stored_sortable, type: :date)
   end

   def self.modified_field
-    solr_name('date_modified', :stored_sortable, type: :date)
+    solr_name('system_modified', :stored_sortable, type: :date)
   end

Optional

To enable uploading of multiple files to a collection, use

rails g sufia:models:upload_to_collection_config
rails g sufia:models:lock_manager_config

To enable a suggested citations page for files uploaded via Sufia, run:

rails g sufia:models:citation_config

Changes

v6.3.0...v6.4.0