@@ -42,14 +42,15 @@ type Lifecycle struct {
4242
4343// Service defines the service configuration for the Atom feed
4444type Service struct {
45- BaseURL string `json:"baseUrl"`
46- Lang string `json:"lang,omitempty"`
47- Stylesheet string `json:"stylesheet,omitempty"`
48- Title string `json:"title"`
49- Subtitle string `json:"subtitle,omitempty"`
50- OwnerInfoRef string `json:"ownerInfoRef"`
51- Links []Link `json:"links,omitempty"`
52- Rights string `json:"rights,omitempty"`
45+ BaseURL string `json:"baseUrl"`
46+ Lang string `json:"lang,omitempty"`
47+ Stylesheet string `json:"stylesheet,omitempty"`
48+ Title string `json:"title"`
49+ Subtitle string `json:"subtitle,omitempty"`
50+ OwnerInfoRef string `json:"ownerInfoRef"`
51+ ServiceMetadataLinks []MetadataLink `json:"serviceMetadataLinks,omitempty"`
52+ Links []Link `json:"links,omitempty"` // Todo kan weg?
53+ Rights string `json:"rights,omitempty"`
5354}
5455
5556// Link represents a link in the service or dataset feed
@@ -71,14 +72,21 @@ type Author struct {
7172
7273// DatasetFeed represents individual dataset feeds within the Atom service
7374type DatasetFeed struct {
74- TechnicalName string `json:"technicalName"`
75- Title string `json:"title"`
76- Subtitle string `json:"subtitle,omitempty"`
77- Links []Link `json:"links,omitempty"`
78- Author Author `json:"author,omitempty"`
79- SpatialDatasetIdentifierCode string `json:"spatial_dataset_identifier_code,omitempty"`
80- SpatialDatasetIdentifierNamespace string `json:"spatial_dataset_identifier_namespace,omitempty"`
81- Entries []Entry `json:"entries,omitempty"`
75+ TechnicalName string `json:"technicalName"`
76+ Title string `json:"title"`
77+ Subtitle string `json:"subtitle,omitempty"`
78+ Links []Link `json:"links,omitempty"` // Todo kan weg?
79+ DatasetMetadataLinks []MetadataLink `json:"datasetMetadataLinks,omitempty"`
80+ Author Author `json:"author,omitempty"`
81+ SpatialDatasetIdentifierCode string `json:"spatial_dataset_identifier_code,omitempty"`
82+ SpatialDatasetIdentifierNamespace string `json:"spatial_dataset_identifier_namespace,omitempty"`
83+ Entries []Entry `json:"entries,omitempty"`
84+ }
85+
86+ // Metadatalink represents a link in the service or dataset feed
87+ type MetadataLink struct {
88+ MetadataIdentifier string `json:"metadataIdentifier"`
89+ Templates []string `json:"templates,omitempty"`
8290}
8391
8492// Entry represents an entry within a dataset feed, typically for downloads
0 commit comments