Skip to content

Commit

Permalink
set the cleanup prop to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Camelia-Orcid committed Oct 19, 2023
1 parent 1ea45a4 commit 7885983
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public class OrgDisambiguatedManagerImpl implements OrgDisambiguatedManager {
@Value("${org.orcid.persistence.messaging.updated.disambiguated_org.solr:indexDisambiguatedOrgs}")
private String updateSolrQueueName;

@Value("${org.orcid.core.cleanExtIdsOnOrgUpdate:true}")
private boolean cleanDuplicateExtIdOnOrgUpdate;
@Value("${org.orcid.core.cleanExtIdsForOrg:false}")
private boolean cleanDuplicateExtIdForOrg;

@Resource(name = "jmsMessageSender")
private JmsMessageSender messaging;
Expand Down Expand Up @@ -223,7 +223,7 @@ public List<OrgDisambiguated> searchOrgsFromSolrForSelfService(String searchTerm
@Override
public OrgDisambiguatedEntity updateOrgDisambiguated(OrgDisambiguatedEntity orgDisambiguatedEntity) {
normalizeExternalIdentifiers(orgDisambiguatedEntity);
if (cleanDuplicateExtIdOnOrgUpdate) {
if (cleanDuplicateExtIdForOrg) {
cleanDuplicatedExternalIdentifiersForOrgDisambiguated(orgDisambiguatedEntity);
}
return orgDisambiguatedDao.merge(orgDisambiguatedEntity);
Expand Down Expand Up @@ -282,7 +282,7 @@ public void createOrgDisambiguatedExternalIdentifier(OrgDisambiguatedExternalIde
}
}
}
if (cleanDuplicateExtIdOnOrgUpdate) {
if (cleanDuplicateExtIdForOrg) {
cleanDuplicatedExternalIdentifiersForOrgDisambiguated(orgDisambiguatedEntity);
}
// check if in the current external id list the identifier already
Expand Down

0 comments on commit 7885983

Please sign in to comment.