Skip to content

Commit

Permalink
add items link to collection, improves #876
Browse files Browse the repository at this point in the history
  • Loading branch information
Genuchten committed Aug 2, 2023
1 parent 3243c43 commit 4d05690
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': 'The items of this collection as geojson',
'href': f"{url_base}/items?f=json",
'hreflang': self.config['server']['language']
}, {
'rel': 'items',
'type': 'text/html',
'title': 'The items of this collection 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 4d05690

Please sign in to comment.