Skip to content

Commit

Permalink
Add configurable subdir prefix to path relative to Hyacinth upload di…
Browse files Browse the repository at this point in the history
…r (SWORD-114)
  • Loading branch information
fcd1 committed Nov 7, 2024
1 parent c010624 commit 17b1a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/templates/hyacinth.template.yml.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
base: &BASE
upload_directory: "tmp/uploads"
upload_subdir_prefix: "sword"
use_ssl: true
store_digital_object_data: false
payload_dir: 'tmp/sword'
Expand Down
2 changes: 1 addition & 1 deletion lib/sword/adapters/hyacinth_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def compose_internal_format_asset(parent_pid,

def ingest_asset(parent_pid,
document_filepath)
asset_import_subdir = "swordtmp_#{parent_pid}"
asset_import_subdir = File.join(HYACINTH_CONFIG[:upload_subdir_prefix],"swordtmp_#{parent_pid}")
asset_import_subdir.gsub!(':','')
# puts'*************************asset import dir***********************'
# puts asset_import_subdir
Expand Down

0 comments on commit 17b1a10

Please sign in to comment.