From 21249b627280e9b009d6e76c672d50ad18dc62cd Mon Sep 17 00:00:00 2001 From: Alfredo Cosco Date: Wed, 31 May 2017 18:31:10 +0200 Subject: [PATCH] Update DC.pm official_url, id_number and doi are not relations but identifiers Some services like https://www.base-search.net or Unpaywall don't keep the DOI if it is referenced as "relation" --- perl_lib/EPrints/Plugin/Export/DC.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl_lib/EPrints/Plugin/Export/DC.pm b/perl_lib/EPrints/Plugin/Export/DC.pm index adead1fc..a8eded5e 100644 --- a/perl_lib/EPrints/Plugin/Export/DC.pm +++ b/perl_lib/EPrints/Plugin/Export/DC.pm @@ -175,12 +175,12 @@ sub convert_dataobj EPrints::Utils::tree_to_utf8( $eprint->render_citation() ) ]; # Most commonly a DOI or journal link - push @dcdata, $plugin->simple_value( $eprint, official_url => "relation" ); + push @dcdata, $plugin->simple_value( $eprint, official_url => "identifier" ); # Probably a DOI - push @dcdata, $plugin->simple_value( $eprint, id_number => "relation" ); + push @dcdata, $plugin->simple_value( $eprint, id_number => "identifier" ); # .. not a default field but added by several IRs - push @dcdata, $plugin->simple_value( $eprint, doi => "relation" ); + push @dcdata, $plugin->simple_value( $eprint, doi => "identifier" ); # If no documents, may still have an eprint-level language push @dcdata, $plugin->simple_value( $eprint, language => "language" );