{% extends "page.html" %} {% block title %}{{ _("Search for a Dataset") }} - {{ super() }}{% endblock %} {% block breadcrumb_content %}
  • {{ h.nav_link(_('Search Datasets'), controller='package', action='search', highlight_actions = 'new index') }}
  • {% endblock %} {% block primary_content %}
    {%- if request.params and c.page.item_count -%} {{ c.page.item_count }} datasets{{ _(" found for \"{query}\"").format(query=c.q) if c.q }} {%- elif request.params and c.page.item_count == 0 -%} {{ _('Sorry no datasets found for "{query}"').format(query=c.q) }} {%- else -%} {{ _('All datasets') }} {%- endif -%}
    {% for field in c.fields_grouped %} {{ c.facet_titles.get(field) }}: {% for value in c.fields_grouped[field] %} {%- if c.translated_fields and c.translated_fields.has_key((field,value)) -%} {{ c.translated_fields[(field,value)] }} {%- else -%} {{ value }} {%- endif %} [remove] {% endfor %} {% endfor %}
    {% if request.params and c.page.item_count == 0 %}

    Try another search term, browse the datasets below or {{ _('add your own data') }}.

    {% endif %}
    {% if c.query_error %} {% trans %}

    There was an error while searching. Please try again.

    {% endtrans %} {% endif %} {{ h.snippet('snippets/package_list.html', packages=c.page.items) }}
    {{ c.page.pager(q=c.q) }}
    You can also access this registry using the {{ h.link_to(_('API'), h.url_for(controller='api', action='get_api', ver=1)) }} (see {{ h.link_to(_('API Docs'), 'http://docs.ckan.org/en/latest/api.html') }}) {% if config.get('ckan.dumps_url') -%} or download a full {{ config.get('ckan.dumps_format', '') }} dump {%- endif %}.
    {% endblock %} {% block secondary_content %} {{ h.snippet('snippets/facet_list.html', title='Tags', name='tags') }} {{ h.snippet('snippets/facet_list.html', title='Formats', name='res_format') }} {{ h.snippet('snippets/facet_list.html', title='Groups', name='groups') }} {% endblock %}