Skip to content

Commit

Permalink
Fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Sep 1, 2020
1 parent 63b9001 commit db98f9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/dcat/templates/home/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% ckan_extends %}
{% block links %}
{{ super() }}
{% with endpoint='dcat_dataset' if h.ckan_version() < '2.9' else 'dcat.read_dataset' %}
{% with endpoint='dcat_catalog' if h.ckan_version() < '2.9' else 'dcat.read_catalog' %}
<link rel="alternate" type="text/n3" href="{{ h.url_for(endpoint, _format='n3', qualified=True) }}"/>
<link rel="alternate" type="text/ttl" href="{{ h.url_for(endpoint, _format='ttl', qualified=True) }}"/>
<link rel="alternate" type="application/rdf+xml" href="{{ h.url_for(endpoint, _format='xml', qualified=True) }}"/>
Expand Down
2 changes: 1 addition & 1 deletion ckanext/dcat/templates/package/search.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% ckan_extends %}
{% block links %}
{{ super() }}
{% with endpoint='dcat_dataset' if h.ckan_version() < '2.9' else 'dcat.read_dataset' %}
{% with endpoint='dcat_catalog' if h.ckan_version() < '2.9' else 'dcat.read_catalog' %}
<link rel="alternate" type="text/n3" href="{{ h.url_for(endpoint, _format='n3', qualified=True) }}"/>
<link rel="alternate" type="text/ttl" href="{{ h.url_for(endpoint, _format='ttl', qualified=True) }}"/>
<link rel="alternate" type="application/rdf+xml" href="{{ h.url_for(endpoint, _format='xml', qualified=True) }}"/>
Expand Down

0 comments on commit db98f9b

Please sign in to comment.