diff --git a/lib/lang/en/phrases/z_orcid_support_advance.xml b/lib/lang/en/phrases/z_orcid_support_advance.xml
index 76c0d95..d61b6c2 100644
--- a/lib/lang/en/phrases/z_orcid_support_advance.xml
+++ b/lib/lang/en/phrases/z_orcid_support_advance.xml
@@ -11,6 +11,8 @@
orcid.org Name
ORCID Token Expiry
+ORCID Put Codes
+
Create or Connect your ORCID iD
@@ -67,6 +69,7 @@ Upon allowing this permission, will also attem
Disconnect from ORCID
Create or Connect your ORCID iD
You are not currently connected to ORCID
+Are you sure?\nOnce removed we will not be able to maintain the user's ORCID record until they reauthenticate with ORCID
orcid.org Name Mismatch
diff --git a/lib/plugins/EPrints/Plugin/Event/OrcidSync.pm b/lib/plugins/EPrints/Plugin/Event/OrcidSync.pm
index 920f36b..14bb7c4 100644
--- a/lib/plugins/EPrints/Plugin/Event/OrcidSync.pm
+++ b/lib/plugins/EPrints/Plugin/Event/OrcidSync.pm
@@ -44,10 +44,15 @@ sub update_employment
my $add_institution = 1;
foreach my $employment ( @{$json_text->{"$affiliation-summary"}} )
{
- if( $employment->{'organization'}->{'disambiguation-organization-identifier'} eq $institution->{'organization'}->{'disambiguation-organization-identifier'} )
- {
- $add_institution = 0;
- }
+ my $orgid1 = $institution->{'organization'}->{'disambiguated-organization'}->{'disambiguated-organization-identifier'};
+ my $orgid2 = $employment->{'organization'}->{'disambiguated-organization'}->{'disambiguated-organization-identifier'};
+ print STDERR "id1.....$orgid1\n";
+ print STDERR "id2.....$orgid2\n";
+ if( $orgid1 eq $orgid2 )
+ {
+ print STDERR "don't add institution\n";
+ $add_institution = 0;
+ }
}
#add the insitution if we still need to