From c8260d83e78974a7840c45bd359b48cbfa646ecf Mon Sep 17 00:00:00 2001 From: Camelia Dumitru <62257307+Camelia-Orcid@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:26:44 +0100 Subject: [PATCH] Keep just the ROR other names indexed in solr (#7087) Co-authored-by: Angel Montenegro --- .../core/manager/impl/OrgDisambiguatedManagerImpl.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/orcid-core/src/main/java/org/orcid/core/manager/impl/OrgDisambiguatedManagerImpl.java b/orcid-core/src/main/java/org/orcid/core/manager/impl/OrgDisambiguatedManagerImpl.java index 3a47eb28b31..18dea92a98c 100644 --- a/orcid-core/src/main/java/org/orcid/core/manager/impl/OrgDisambiguatedManagerImpl.java +++ b/orcid-core/src/main/java/org/orcid/core/manager/impl/OrgDisambiguatedManagerImpl.java @@ -167,12 +167,6 @@ private OrgDisambiguatedSolrDocument convertEntityToDocument(OrgDisambiguatedEnt document.setOrgNamesJson(entity.getNamesJson()); } - List orgs = orgDao.findByOrgDisambiguatedId(entity.getId()); - if (orgs != null) { - for (OrgEntity org : orgs) { - orgNames.add(org.getName()); - } - } document.setOrgNames(new ArrayList<>(orgNames)); if (OrgDisambiguatedSourceType.FUNDREF.name().equals(entity.getSourceType())) {