MetaSearch: update OARec record model links

This commit is contained in:
Tom Kralidis 2022-05-29 13:54:23 -04:00 committed by Nyall Dawson
parent 70b40ab091
commit ff036a2e6f

View File

@ -226,7 +226,7 @@ class OARecSearch(SearchBase):
'bbox': None,
'title': rec['properties']['title'],
'links': rec['properties'].get('associations', [])
'links': rec.get('links', [])
}
try:
bbox2 = rec['properties']['extent']['spatial']['bbox'][0]