Skip to content

Commit

Permalink
Added fields current and next to dataset collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sandypadmanabhan committed Jan 26, 2021
1 parent e19996e commit 13fec2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NOMIS/nomis.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func main() {
Edition: censusYear,
Links: &models.EditionUpdateLinks{
Dataset: &models.LinkObject{HRef: fmt.Sprintf("%s%s", datasetUrl, cenId), ID: cenId},
LatestVersion: &models.LinkObject{HRef: fmt.Sprintf("%s%s%s%s%s%s%s", datasetUrl, cenId, editionUrl, censusYear, versionUrl, "/", censusVersion), ID: censusVersion},
LatestVersion: &models.LinkObject{HRef: fmt.Sprintf("%s%s%s%s%s%s%s", datasetUrl, cenId, editionUrl, "/"+censusYear, versionUrl, "/", censusVersion), ID: censusVersion},
Self: &models.LinkObject{HRef: fmt.Sprintf("%s%s%s%s", datasetUrl, cenId, "/editions/", censusYear)},
Versions: &models.LinkObject{HRef: fmt.Sprintf("%s%s%s%s%s", datasetUrl, cenId, editionUrl, "/"+censusYear, versionUrl)},
},
Expand Down Expand Up @@ -240,6 +240,7 @@ func main() {
datasetDoc := &models.DatasetUpdate{
ID: mapData.ID,
Current: &mapData,
Next: &mapData,
}

createDocument(ctx, datasetDoc, session, "datasets")
Expand Down

0 comments on commit 13fec2d

Please sign in to comment.