Skip to content

Commit

Permalink
Revert "Temporarily disabled SciStarter site indexing"
Browse files Browse the repository at this point in the history
This reverts commit 80d510a.
  • Loading branch information
jack-brinkman committed Oct 2, 2024
1 parent 80d510a commit 20cc0ef
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions grails-app/services/au/org/ala/ecodata/ProjectService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -814,13 +814,13 @@ class ProjectService {
Map organisation

// create project extent
// Map sites = createSciStarterSites(rawProp)
// String projectSiteId
// if (sites?.siteIds?.size()) {
// projectSiteId = sites.siteIds[0]
// }
//
// transformedProp.projectSiteId = projectSiteId
Map sites = createSciStarterSites(rawProp)
String projectSiteId
if (sites?.siteIds?.size()) {
projectSiteId = sites.siteIds[0]
}

transformedProp.projectSiteId = projectSiteId

// create organisation
if (transformedProp.organisationName) {
Expand All @@ -842,9 +842,9 @@ class ProjectService {

// use the projectId to associate site with project
if (projectId) {
// sites?.siteIds?.each { siteId ->
// siteService.addProject(siteId, projectId)
// }
sites?.siteIds?.each { siteId ->
siteService.addProject(siteId, projectId)
}
// create project logo.
createSciStarterLogo(imageUrl, attribution, projectId)

Expand Down

0 comments on commit 20cc0ef

Please sign in to comment.