Releases: samvera-deprecated/curation_concerns
Releases · samvera-deprecated/curation_concerns
Version 0.8.0
Changes
2016-02-16: Don't consider the :q parameter on the collection show page. Fixes
#619 [Justin Coyne]
2016-02-16: Use the with_test_server helper from AF [Justin Coyne]
2016-02-15: Allow faceting to refine collection members [Justin Coyne]
2016-02-09: Implement File Manager UI [Trey Terrell]
2016-02-11: Switch accessible-hidden class to sr-only [Justin Coyne]
2016-02-10: Add git push at the end to push to master [Justin Coyne]
2016-02-10: Update RELEASING.md [Justin Coyne]
Version 0.4.0
Changes
- Works and FileSets now route to the correct controllers. This will require you to update your routes. Anywhere you see
[:edit, :curation_concerns, doc]
remove the:curation_concerns
to have[:edit, doc]
.
Version 0.2.0
Upgrading from 0.1.0
in config/routes.rb
Change this line: root to: "catalog#index"
To:
resources :welcome, only: 'index'
root to: 'welcome#index'
Then rename GenericFile to FileSet:
git mv app/models/generic_file.rb app/models/file_set.rb
Then edit app/models/file_set.rb to look like this:
class FileSet < ActiveFedora::Base
include ::CurationConcerns::FileSetBehavior
end
git mv app/controllers/curation_concerns/generic_files_controller.rb app/controllers/curation_concerns/file_sets_controller.rb
Then edit FileSetsController to look like:
module CurationConcerns
class FileSetsController < ApplicationController
include CurationConcerns::FileSetsControllerBehavior
end
end
rails g migration RenameChecksumGenericFile
Then edit the generated migration to look like this:
class RenameChecksumGenericFile < ActiveRecord::Migration
def change
rename_column :checksum_audit_logs, :generic_file_id, :file_set_id
rename_index :checksum_audit_logs, :by_generic_file_id_and_file_id, :by_file_set_id_and_file_id
end
end
Then run rake db:migrate
Finally replace all occurrences of GenericFile with FileSet (except those in db/**
)
find app -name "*.?rb" | xargs perl -pi -e 's/GenericFile/FileSet/g'
find spec -name "*.rb" | xargs perl -pi -e 's/GenericFile/FileSet/g'
find app -name "*.?rb" | xargs perl -pi -e 's/generic_file/file_set/g'
find spec -name "*.rb" | xargs perl -pi -e 's/generic_file/file_set/g'
find app/models -name "*.rb" | xargs perl -pi -e 's/GenericWorkBehavior/WorkBehavior/g'
find app -name "*.rb" | xargs perl -pi -e 's/GenericWorkIndexing/WorkIndexing/g'