File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ module Actors
3
3
# Actions for a file identified by file_set and relation (maps to use predicate)
4
4
# @note Spawns asynchronous jobs
5
5
module FileActorDecorator
6
-
7
6
def perform_ingest_file_through_active_fedora ( io )
8
7
# Skip versioning because versions will be minted by VersionCommitter as necessary during save_characterize_and_record_committer.
9
8
# these are files too big to send to S3 w/o Streaming
@@ -20,16 +19,15 @@ def perform_ingest_file_through_active_fedora(io)
20
19
Rails . logger . error ( "[FileActor] writing to fcrepo #{ file_set . id } " )
21
20
# Skip versioning because versions will be minted by VersionCommitter as necessary during save_characterize_and_record_committer.
22
21
Hydra ::Works ::AddFileToFileSet . call ( file_set ,
23
- io ,
24
- relation ,
25
- versioning : false )
22
+ io ,
23
+ relation ,
24
+ versioning : false )
26
25
end
27
26
return false unless file_set . save
28
27
repository_file = related_file
29
28
create_version ( repository_file , user )
30
29
CharacterizeJob . perform_later ( file_set , repository_file . id , pathhint ( io ) )
31
30
end
32
-
33
31
end
34
32
end
35
33
end
Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ def send_file_contents
49
49
end
50
50
if s3_object . exists?
51
51
redirect_to s3_object . presigned_url (
52
- :get ,
53
- expires_in : 3600 ,
52
+ :get ,
53
+ expires_in : 3600 ,
54
54
response_content_disposition : "attachment\; filename=#{ file . original_name } "
55
55
)
56
56
return
57
57
end
58
58
end
59
- # from here on this is effectively `super` if this was a decorator
59
+ # from here on this is effectively `super` if this was a decorator
60
60
# will fall back to streaming object via fedora
61
61
self . status = 200
62
62
prepare_file_headers
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ class FileSet < ActiveFedora::Base
5
5
include Ubiquity ::UniversalMetadata
6
6
7
7
property :s3_only ,
8
- predicate : ::RDF ::URI ( "https://hykucommons.org/terms/s3_only" ) ,
9
- multiple : false do |index |
10
- index . as :stored_searchable , :facetable
11
- end
8
+ predicate : ::RDF ::URI ( "https://hykucommons.org/terms/s3_only" ) ,
9
+ multiple : false do |index |
10
+ index . as :stored_searchable , :facetable
11
+ end
12
12
13
13
include ::Hyrax ::FileSetBehavior
14
14
end
You can’t perform that action at this time.
0 commit comments