From e569bdb6776856c2155a46b4336ebeedfc5fa5de Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 25 Dec 2018 09:15:41 +0100 Subject: [PATCH] don't look up ethz dois in handle system --- app/controllers/dois_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dois_controller.rb b/app/controllers/dois_controller.rb index 5301a3332..5f69ad8f0 100644 --- a/app/controllers/dois_controller.rb +++ b/app/controllers/dois_controller.rb @@ -351,7 +351,7 @@ def random def get_url authorize! :get_url, @doi - if @doi.aasm_state == "draft" + if !@doi.is_registered_or_findable? || %w(europ ethz).include?(@doi.provider_id) || %w(Crossref).include?(@doi.agency) url = @doi.url head :no_content and return unless url.present? else