Skip to content

Commit

Permalink
ensure metnotes item ID equates to the ES id (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dukestep authored and tomkralidis committed Aug 8, 2023
1 parent 5a84da2 commit 561ae81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions deploy/default/msc-pygeoapi-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,7 @@ resources:
time_field: publication_datetime
properties:
- id
- metnote_id
- aors
- type_id
- publication_version
Expand Down
3 changes: 2 additions & 1 deletion msc_pygeoapi/loader/metnotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ def load_data(self, filepath):
feature['properties']['publication_version']
)

feature['properties']['id'] = feature['id']
feature['properties']['metnote_id'] = feature['id']
feature['id'] = feature['properties']['id'] = id_
feature['properties']['metnote_status'] = 'inactive'
feature['properties']['filename'] = self.filename

Expand Down

0 comments on commit 561ae81

Please sign in to comment.