Skip to content

Commit

Permalink
removed requirement for DOI to submit a file to ScholarSphere from th…
Browse files Browse the repository at this point in the history
…e AI OA Workflow (#934)
  • Loading branch information
ajkiessl authored Jan 25, 2024
1 parent 6b20505 commit fa24d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/models/publication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,6 @@ def can_deposit_to_scholarsphere?
title.present? &&
abstract.present? &&
published_on.present? &&
doi.present? &&
doi == DOISanitizer.new(doi).url &&
!scholarsphere_upload_pending? &&
!scholarsphere_upload_failed?
Expand Down
4 changes: 2 additions & 2 deletions spec/component/models/publication_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4149,8 +4149,8 @@
context "when publication's doi is empty" do
before { publication.update_column :doi, nil }

it 'returns false' do
expect(publication.can_deposit_to_scholarsphere?).to be false
it 'returns true' do
expect(publication.can_deposit_to_scholarsphere?).to be true
end
end

Expand Down

0 comments on commit fa24d6b

Please sign in to comment.