From 2ef5028511b806904f9f050b6f8a8efa76bc1956 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Mon, 30 Oct 2023 16:41:54 -0400 Subject: [PATCH] parse/set OARec themes (#914) --- pycsw/core/metadata.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pycsw/core/metadata.py b/pycsw/core/metadata.py index 9981dacde..4c1cf5785 100644 --- a/pycsw/core/metadata.py +++ b/pycsw/core/metadata.py @@ -1738,10 +1738,10 @@ def _parse_oarec_record(context, repos, record): if 'keywords' in record['properties']: keywords = record['properties']['keywords'] + _set(context, recobj, 'pycsw:Keywords', ','.join(keywords)) if 'themes' in record['properties']: - for theme in record['properties']['themes']: - keywords.extend(theme['concepts']) + _set(context, recobj, 'pycsw:Themes', json.dumps(record['properties']['themes'])) if 'links' in record: for link in record['links']: @@ -1764,9 +1764,6 @@ def _parse_oarec_record(context, repos, record): if links: _set(context, recobj, 'pycsw:Links', json.dumps(links)) - if keywords: - _set(context, recobj, 'pycsw:Keywords', ','.join(keywords)) - _set(context, recobj, 'pycsw:BoundingBox', util.bbox2wktpolygon(util.geojson_geometry2bbox(record['geometry']))) if 'temporal' in record['properties'].get('extent', []):