Skip to content

Commit

Permalink
Save and display ingest confirmation result, part2
Browse files Browse the repository at this point in the history
  • Loading branch information
fcd1 committed Nov 22, 2024
1 parent 60b6795 commit 4bd0a50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/sword_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def deposit
@endpoint.deposit_title.truncate_words(20).truncate(200, omission: '')
@deposit.item_in_hyacinth = @endpoint.adapter_item_identifier
@deposit.asset_pids = @endpoint.asset_pids
@deposit.ingest_confirmed = @endpoint.ingest_confirmed
@deposit.ingest_confirmed = @endpoint.confirm_ingest
@deposit.save
# @depositor.deposits << @deposit
# @collection.deposits << @deposit
Expand Down
1 change: 0 additions & 1 deletion lib/sword/endpoints/mets_to_hyacinth_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def ingest_into_hyacinth
ingest_documents_into_hyacinth
ingest_mets_xml_file_into_hyacinth
@asset_pids = @hyacinth_adapter.asset_pids
confirm_ingest
else
Rails.logger.warn "Bypassing ingest into Hyacinth, set bogus PID"
# bogus item identifier. Instead, could use string 'NotApplicable'
Expand Down

0 comments on commit 4bd0a50

Please sign in to comment.