diff --git a/app/lib/doi_checker.rb b/app/lib/doi_checker.rb index e0e400c8..da1f42e1 100644 --- a/app/lib/doi_checker.rb +++ b/app/lib/doi_checker.rb @@ -135,7 +135,7 @@ def similar?(string_1, string_2) def acm_105555_prefix(entry) if entry.has_field?('doi') && entry.doi.include?("10.5555/") - { validity: :invalid, msg: "#{entry.doi} is INVALID - 10.5555 is a known broken prefix, replace with https://dl.acm.org/doi/{doi} in the {url} field" } + { validity: :invalid, msg: "#{entry.doi} is INVALID - 10.5555 is not a DOI prefix, but rather a handle prefix. Please replace the {doi} field with a {url} field that resolves in a browser" } elsif entry.has_field?('url') && entry.url.include?("https://dl.acm.org/doi/10.5555") { validity: :skip, msg: "#{entry.url} - non-DOI with 10.5555 correctly placed in the url field, editor should ensure this resolves" } else diff --git a/spec/doi_checker_spec.rb b/spec/doi_checker_spec.rb index a5b9937b..739c090c 100644 --- a/spec/doi_checker_spec.rb +++ b/spec/doi_checker_spec.rb @@ -139,7 +139,7 @@ expect(doi_summary[:ok]).to be_empty expect(doi_summary[:missing]).to be_empty expect(doi_summary[:skip]).to be_empty - expect(doi_summary[:invalid][0]).to include("is INVALID - 10.5555 is a known broken prefix, replace with https://dl.acm.org/doi/") + expect(doi_summary[:invalid][0]).to include("is INVALID - 10.5555 is not a DOI prefix, but rather a handle prefix. Please replace the {doi} field with a {url} field that resolves in a browser.") end end