From fa24d6bdabc48ac1a655bb8d9d9d2618e9ed149d Mon Sep 17 00:00:00 2001 From: Alex Kiessling <32677188+ajkiessl@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:01:51 -0500 Subject: [PATCH] removed requirement for DOI to submit a file to ScholarSphere from the AI OA Workflow (#934) --- app/models/publication.rb | 1 - spec/component/models/publication_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/publication.rb b/app/models/publication.rb index 1ad5755b..9cbec9a0 100644 --- a/app/models/publication.rb +++ b/app/models/publication.rb @@ -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? diff --git a/spec/component/models/publication_spec.rb b/spec/component/models/publication_spec.rb index abc71880..488ba3cb 100644 --- a/spec/component/models/publication_spec.rb +++ b/spec/component/models/publication_spec.rb @@ -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