Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the missing v2 attributes when creating orgs for ROR type #7116

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ private OrgDisambiguatedEntity processInstitute(String sourceId, String name, Is
}

// Create a new disambiguated org
OrgDisambiguatedEntity newOrg = createDisambiguatedOrg(sourceId, name, orgType, country, city, region, url);
OrgDisambiguatedEntity newOrg = createDisambiguatedOrg(sourceId, name, orgType, country, city, region, url, locationsJson, namesJson);
try {
// mark group for indexing
new OrgGrouping(newOrg, orgDisambiguatedManager).markGroupForIndexing(orgDisambiguatedDao);
Expand Down Expand Up @@ -394,7 +394,7 @@ private boolean entityChanged(OrgDisambiguatedEntity entity, String name, String
/**
* Creates a disambiguated ORG in the org_disambiguated table
*/
private OrgDisambiguatedEntity createDisambiguatedOrg(String sourceId, String name, String orgType, Iso3166Country country, String city, String region, String url) {
private OrgDisambiguatedEntity createDisambiguatedOrg(String sourceId, String name, String orgType, Iso3166Country country, String city, String region, String url,String locationsJson, String namesJson) {
LOGGER.info("Creating disambiguated org {}", name);
OrgDisambiguatedEntity orgDisambiguatedEntity = new OrgDisambiguatedEntity();
orgDisambiguatedEntity.setName(name);
Expand All @@ -405,6 +405,8 @@ private OrgDisambiguatedEntity createDisambiguatedOrg(String sourceId, String na
orgDisambiguatedEntity.setOrgType(orgType);
orgDisambiguatedEntity.setSourceId(sourceId);
orgDisambiguatedEntity.setSourceType(OrgDisambiguatedSourceType.ROR.name());
orgDisambiguatedEntity.setLocationsJson(locationsJson);
orgDisambiguatedEntity.setNamesJson(namesJson);
orgDisambiguatedManager.createOrgDisambiguated(orgDisambiguatedEntity);
return orgDisambiguatedEntity;
}
Expand Down
Loading