You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support fileset files with custom associations (i.e. associations other than original_file, extracted_text, and thumbnail). The filesets with these files should be able to round trip from ActiveFedora to Valkyrie Resource and back.
Rationale
Maintain support for custom associations between a fileset and files.
Expected behavior
Whether a fileset is created directly as a Valkyrie::Resource or an AF object, it should allow for adding files with relationships other than original file, extracted text and thumbnail, such as, http://pcdm.org/use#remastered.
#convert_files currently only supports conversion of files with use original file, extracted text, and thumbnail. Needs to be expanded to support all file associations. The use is stored in the FileMetadata resource in the use attribute. The FileSet has the list of files.
Appears to only handle original_file, extracted_text, and thumbnail_file.
The relation tests in file_actor_spec.rb when processing using valkyrie are marked pending 'implementation of Wings::Valkyrie::Persister #save_file_metadata'. I'm not sure that still applies.
The first test starting at context 'relation' (~ln 149) uses relation http://pcdm.org/use#remastered which makes it a good test of this functionality.
Related work
Issue #4060 - added support for standard uses of original_file, extracted_text, and thumbnail (PR #4055)
The text was updated successfully, but these errors were encountered:
Descriptive summary
Support fileset files with custom associations (i.e. associations other than original_file, extracted_text, and thumbnail). The filesets with these files should be able to round trip from ActiveFedora to Valkyrie Resource and back.
Rationale
Maintain support for custom associations between a fileset and files.
Expected behavior
Whether a fileset is created directly as a Valkyrie::Resource or an AF object, it should allow for adding files with relationships other than original file, extracted text and thumbnail, such as, http://pcdm.org/use#remastered.
Actual behavior
Not sure.
Code that may be impacted by this support
app/models/hyrax/file_metadata.rb #1193
app/wings/hydra/works/service/services/add_file_to_file_set.rb
Should allow
type:
to be passed in asRDF::URI.new('http://pcdm.org/use#remastered')
Tested in spec/wings/hydra/works/services/add_file_to_file_set_spec.rb at
context 'when :use is NOT the name of an association type'
app/wings/active_fedora_converter.rb #convert_files
#convert_files currently only supports conversion of files with use original file, extracted text, and thumbnail. Needs to be expanded to support all file associations. The use is stored in the FileMetadata resource in the use attribute. The FileSet has the list of files.
app/actors/hyrax/actors/file_actor.rb #normalize_relation_for_valkyrie
Appears to only handle original_file, extracted_text, and thumbnail_file.
The relation tests in file_actor_spec.rb when processing using valkyrie are marked
pending 'implementation of Wings::Valkyrie::Persister #save_file_metadata'
. I'm not sure that still applies.The first test starting at
context 'relation'
(~ln 149) uses relationhttp://pcdm.org/use#remastered
which makes it a good test of this functionality.Related work
Issue #4060 - added support for standard uses of original_file, extracted_text, and thumbnail (PR #4055)
The text was updated successfully, but these errors were encountered: