Skip to content

Commit

Permalink
introduce collection_info
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Nov 19, 2024
1 parent 56f89f5 commit 25867f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/datagovtheme/templates/package/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>

<form id="dataset-search" class="search-form clearfix" method="get" data-module="select-switch">
{% set search_placeholder = 'Search collection...' if request.args.collection_package_id else 'Search datasets...' %}
{% set search_placeholder = 'Search collection...' if request.args.collection_info else 'Search datasets...' %}
<span class="control-group search-giant">
<label for="search-big" class="hide">{{ _('Search datasets') }}</label>
<input id="search-big" type="text" class="search" name="q" value="{{ c.q }}" autocomplete="off" placeholder="{{ search_placeholder }}" onblur="if(value=='') value = 'Search datasets...'" onfocus="if(value=='Search datasets...') value = ''"/>
Expand All @@ -27,7 +27,7 @@
<div class="results">
<div class="filter-list">
{% for field in c.fields_grouped %}
{% if field != 'collection_package_id' %}
{% if field != 'collection_info' %}
<span class="facet">{{ c.facet_titles.get(field) }}:</span>
{% set search_facets_items = c.search_facets.get(field)['items'] %}
{% for value in c.fields_grouped[field] %}
Expand Down

0 comments on commit 25867f7

Please sign in to comment.