From c9070c1aff8db434db08630d65bb5e6b9107e382 Mon Sep 17 00:00:00 2001 From: "Daniel S. Katz" Date: Fri, 4 Jul 2025 15:43:10 -0500 Subject: [PATCH 1/2] Update doi_checker_spec.rb --- spec/doi_checker_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 85c6c58142077d620c23c680b6664e790b83769a Mon Sep 17 00:00:00 2001 From: "Daniel S. Katz" Date: Fri, 4 Jul 2025 15:58:38 -0500 Subject: [PATCH 2/2] Update doi_checker.rb --- app/lib/doi_checker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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