Skip to content

Commit

Permalink
Add last updated by to indicate who updated the data (dataset owner, …
Browse files Browse the repository at this point in the history
…service provider, etc)
  • Loading branch information
rkettelerij committed Jun 13, 2023
1 parent 9d2038d commit b4150be
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
14 changes: 8 additions & 6 deletions engine/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ type Config struct {
Thumbnail *string `yaml:"thumbnail"`
Keywords []string `yaml:"keywords"`
LastUpdated *string `yaml:"lastUpdated"`
LastUpdatedBy string `yaml:"lastUpdatedBy"`
License License `yaml:"license" validate:"required"`
Support *string `yaml:"support"`
DatasetDetails []DatasetDetail `yaml:"datasetDetails"`
Expand Down Expand Up @@ -141,12 +142,13 @@ type GeoSpatialCollection struct {
}

type GeoSpatialCollectionMetadata struct {
Title *string `yaml:"title"`
Description *string `yaml:"description"`
Thumbnail *string `yaml:"thumbnail"`
Keywords []string `yaml:"keywords"`
LastUpdated *string `yaml:"lastUpdated"`
Extent *Extent `yaml:"extent"`
Title *string `yaml:"title"`
Description *string `yaml:"description"`
Thumbnail *string `yaml:"thumbnail"`
Keywords []string `yaml:"keywords"`
LastUpdated *string `yaml:"lastUpdated"`
LastUpdatedBy string `yaml:"lastUpdatedBy"`
Extent *Extent `yaml:"extent"`
}

type CollectionEntry3dGeoVolumes struct {
Expand Down
12 changes: 11 additions & 1 deletion ogc/common/geospatial/templates/collections.go.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,22 @@ <h5 class="card-header">
{{/* <li class="list-group-item text-muted"><b>Schema</b>: TODO link to collection schema</li> */}}
{{ if and $coll.Metadata $coll.Metadata.LastUpdated }}
<li class="list-group-item text-muted">
{{ if and $coll.Metadata $coll.Metadata.LastUpdatedBy }}
<strong>Bijgewerkt door {{ $coll.Metadata.LastUpdatedBy }} op</strong>:
{{ else if $cfg.LastUpdatedBy }}
<strong>Bijgewerkt door {{ $cfg.LastUpdatedBy }} op</strong>:
{{ else }}
<strong>Bijgewerkt op</strong>:
{{ end }}
{{ toDate "2006-01-02T15:04:05Z07:00" $coll.Metadata.LastUpdated | date "2006-01-02" }}
</li>
{{ else if $cfg.LastUpdated }}
<li class="list-group-item text-muted">
<li class="list-group-item text-muted"> }}
{{ if $cfg.LastUpdatedBy }}
<strong>Bijgewerkt door {{ $cfg.LastUpdatedBy }} op</strong>:
{{ else }}
<strong>Bijgewerkt op</strong>:
{{ end }}
{{ toDate "2006-01-02T15:04:05Z07:00" $cfg.LastUpdated | date "2006-01-02" }}
</li>
{{ end }}
Expand Down

0 comments on commit b4150be

Please sign in to comment.