Skip to content

Commit bfd339b

Browse files
committed
fix protocol ref
1 parent ab06af4 commit bfd339b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycsw/ogc/api/records.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,10 +1312,10 @@ def record2json(record, url, collection, mode='ogcapi-records'):
13121312
link2['description'] = link['description']
13131313
if link.get('protocol') not in [None, 'None']:
13141314
link2['protocol'] = link['protocol']
1315+
if link['protocol'] == 'WWW:LINK-1.0-http--image-thumbnail':
1316+
link2['rel'] = 'preview'
13151317
if 'rel' in link:
13161318
link2['rel'] = link['rel']
1317-
elif link['protocol'] == 'WWW:LINK-1.0-http--image-thumbnail':
1318-
link2['rel'] = 'preview'
13191319
elif 'function' in link:
13201320
link2['rel'] = link['function']
13211321

0 commit comments

Comments
 (0)