|
7 | 7 | # Colin Blackburn <colb@bgs.ac.uk> |
8 | 8 | # Ricardo Garcia Silva <ricardo.garcia.silva@geobeyond.it> |
9 | 9 | # |
10 | | -# Copyright (c) 2024 Tom Kralidis |
| 10 | +# Copyright (c) 2025 Tom Kralidis |
11 | 11 | # Copyright (c) 2022 Francesco Bartoli |
12 | 12 | # Copyright (c) 2022 John A Stevenson and Colin Blackburn |
13 | 13 | # Copyright (c) 2023 Ricardo Garcia Silva |
@@ -1064,6 +1064,20 @@ def describe_collections(api: API, request: APIRequest, |
1064 | 1064 | 'href': f'{api.get_collections_url()}/{k}?f={F_HTML}' |
1065 | 1065 | }) |
1066 | 1066 |
|
| 1067 | + if collection_data_type == 'record': |
| 1068 | + collection['links'].append({ |
| 1069 | + 'type': FORMAT_TYPES[F_JSON], |
| 1070 | + 'rel': 'http://www.opengis.net/def/rel/ogc/1.0/ogc-catalog', |
| 1071 | + 'title': l10n.translate('Record catalogue as JSON', request.locale), # noqa |
| 1072 | + 'href': f'{api.get_collections_url()}/{k}?f={F_JSON}' |
| 1073 | + }) |
| 1074 | + collection['links'].append({ |
| 1075 | + 'type': FORMAT_TYPES[F_HTML], |
| 1076 | + 'rel': 'http://www.opengis.net/def/rel/ogc/1.0/ogc-catalog', |
| 1077 | + 'title': l10n.translate('Record catalogue as HTML', request.locale), # noqa |
| 1078 | + 'href': f'{api.get_collections_url()}/{k}?f={F_HTML}' |
| 1079 | + }) |
| 1080 | + |
1067 | 1081 | if collection_data_type in ['feature', 'coverage', 'record']: |
1068 | 1082 | collection['links'].append({ |
1069 | 1083 | 'type': FORMAT_TYPES[F_JSON], |
|
0 commit comments