Skip to content

Commit

Permalink
Merge pull request #1027 from AtlasOfLivingAustralia/feature/issue3292
Browse files Browse the repository at this point in the history
download improvements Feature/issue3292
  • Loading branch information
chrisala authored Sep 27, 2024
2 parents ea6ef23 + 632a810 commit a566633
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,19 @@ class ProjectXlsExporter extends ProjectExporter {
else
log.error ("No facet config found for layer $layer.")
}

if (project.geographicInfo) {
// load from manually assigned electorates/states
if (!project.containsKey(getPropertyNameForFacet("elect"))) {
project[getPropertyNameForFacet("elect")] = project.geographicInfo.primaryElectorate
project[getPropertyNameForFacet("elect","other")] = project.geographicInfo.otherElectorates?.join("; ")
}

if (!project.containsKey(getPropertyNameForFacet("state"))) {
project[getPropertyNameForFacet("state")] = project.geographicInfo.primaryState
project[getPropertyNameForFacet("state","other")] = project.geographicInfo.otherStates?.join("; ")
}
}
}

private addProjectGeo(Map project) {
Expand Down

0 comments on commit a566633

Please sign in to comment.