From f165da3fed5d888ff288f0f872338e7402ee6697 Mon Sep 17 00:00:00 2001 From: David R Newman Date: Tue, 17 Jun 2025 17:54:28 +0100 Subject: [PATCH] Fixes mapping creators without orcids set Ensure mappings can handle if creator does not have an ORCID defined. --- lib/cfg.d/z_datacite_mapping.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cfg.d/z_datacite_mapping.pl b/lib/cfg.d/z_datacite_mapping.pl index 441aee3..826516e 100644 --- a/lib/cfg.d/z_datacite_mapping.pl +++ b/lib/cfg.d/z_datacite_mapping.pl @@ -95,7 +95,7 @@ my $family = $name->{name}->{family}; my $given = $name->{name}->{given}; - my $orcid = $name->{orcid}; + my $orcid = $name->{orcid} ? $name->{orcid} : ''; if ($family eq '' && $given eq '') { $creators->appendChild($author);