diff --git a/README.md b/README.md index 98859f8..f10ea61 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,6 @@ This config file contains all the configurable settings for the plugin, see comm $c->{plugins}{"Export::DataCiteXML"}{params}{disable} = 0; $c->{plugins}{"Event::DataCiteEvent"}{params}{disable} = 0; -# Regex to match pre production servers -# $c->{datacitedoi}{test_host_regex} = 'dev|test|preprod'; - # which field to use for the doi $c->{datacitedoi}{eprintdoifield} = "id_number"; diff --git a/cfg/cfg.d/z_datacitedoi.pl b/cfg/cfg.d/z_datacitedoi.pl index 3ace279..40191a6 100644 --- a/cfg/cfg.d/z_datacitedoi.pl +++ b/cfg/cfg.d/z_datacitedoi.pl @@ -2,9 +2,6 @@ $c->{plugins}{"Export::DataCiteXML"}{params}{disable} = 0; $c->{plugins}{"Event::DataCiteEvent"}{params}{disable} = 0; -# Regex to match pre production servers -# $c->{datacitedoi}{test_host_regex} = 'dev|test|preprod'; - # which field to use for the doi $c->{datacitedoi}{eprintdoifield} = "id_number"; diff --git a/lib/cfg.d/z_datacite_mapping.pl b/lib/cfg.d/z_datacite_mapping.pl index 9d43d61..4eb55bb 100644 --- a/lib/cfg.d/z_datacite_mapping.pl +++ b/lib/cfg.d/z_datacite_mapping.pl @@ -464,25 +464,6 @@ my @problems = (); - # If this host is not production it should probably use a test endpoint. - # To prevent this check change the test_host_regex regex not to match hostname - # or ensure test_host_regex is undefined (as is the default) - - my $test_regex = $repository->get_conf("datacitedoi", "test_host_regex"); - if (defined $test_regex){ - use Sys::Hostname; - my $doi_prefix = $repository->get_conf("datacitedoi", "prefix"); - - # Does this host match the regex? Is it using the test DOI prefix? - if ((hostname =~ $test_regex) && ("10.5072" != $doi_prefix)) { - push @problems, $repository->html_phrase( - "datacite_validate:doi_prefix_mismatch", - match_regexp=> $xml->create_text_node("$test_regex"), - configured_doi_prefix=> $xml->create_text_node("$doi_prefix"), - ); - } - } - #NEED CREATORS if( !$eprint->is_set( "creators" ) && !$eprint->is_set( "corp_creators" ) ) diff --git a/lib/lang/en/phrases/coinDOI.xml b/lib/lang/en/phrases/coinDOI.xml index 692bc44..f60fca6 100644 --- a/lib/lang/en/phrases/coinDOI.xml +++ b/lib/lang/en/phrases/coinDOI.xml @@ -125,8 +125,6 @@

There are no suitable values for the mandatory field datacite:PublicationYear. Please supply a publication date before coining a DOI.

-

Your server hostname matches the preprod regex but is not using the test DOI prefix - current prefix is .

-

Your eprint is either missing its type or the type has no match in the plugin typemap.