Skip to content

Commit

Permalink
add items link to collection (geopython#877)
Browse files Browse the repository at this point in the history
* add items link to collection, improves geopython#876

* update title text

---------

Co-authored-by: Genuchten <paul.vangenuchten@wur.nl>
Co-authored-by: Tom Kralidis <tomkralidis@gmail.com>
  • Loading branch information
3 people authored Aug 11, 2023
1 parent c094c8e commit 94673d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pycsw/ogc/api/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,18 @@ def collection(self, headers_, args, collection='metadata:main'):
'title': 'This document as HTML',
'href': f"{url_base}?f=html",
'hreflang': self.config['server']['language']
}, {
'rel': 'items',
'type': 'application/json',
'title': 'items as GeoJSON',
'href': f"{url_base}/items?f=json",
'hreflang': self.config['server']['language']
}, {
'rel': 'items',
'type': 'text/html',
'title': 'items as HTML',
'href': f"{url_base}/items?f=html",
'hreflang': self.config['server']['language']
}, {
'rel': 'http://www.opengis.net/def/rel/ogc/1.0/queryables',
'type': 'application/schema+json',
Expand Down

0 comments on commit 94673d0

Please sign in to comment.