forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin
committed
Mar 24, 2023
1 parent
aa1735d
commit 811f444
Showing
5 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ckantoolkit | ||
Shapely>=1.2.13,<2.0.0 | ||
OWSLib==0.18.0 | ||
lxml>=2.3 | ||
argparse | ||
pyparsing>=2.1.10 | ||
requests>=1.1.0 | ||
six | ||
geojson==2.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% ckan_extends %} | ||
|
||
{% block form %} | ||
{% set facets = { | ||
'fields': fields_grouped, | ||
'search': search_facets, | ||
'titles': facet_titles, | ||
'translated_fields': translated_fields, | ||
'remove_field': remove_field } | ||
%} | ||
{% set sorting = [ | ||
(_('Relevance'), 'score desc, metadata_modified desc'), | ||
(_('Name Ascending'), 'title_string asc'), | ||
(_('Name Descending'), 'title_string desc'), | ||
(_('Last Modified'), 'metadata_modified desc'), | ||
(_('Custom Field Ascending'), 'custom_text asc'), | ||
(_('Custom Field Descending'), 'custom_text desc'), | ||
(_('Popular'), 'views_recent desc') if g.tracking_enabled else (false, false) ] | ||
%} | ||
{% snippet 'snippets/search_form.html', type='dataset', query=q, sorting=sorting, sorting_selected=sort_by_selected, count=page.item_count, facets=facets, show_empty=request.args, error=query_error %} | ||
{% endblock %} | ||
|
||
{% block secondary_content %} | ||
|
||
{% snippet "spatial/snippets/spatial_query.html" %} | ||
|
||
{% endblock %} |