diff --git a/templates/components/search/controls.html.twig b/templates/components/search/controls.html.twig index ee2d5e02cfe0..2ff9d5403f55 100644 --- a/templates/components/search/controls.html.twig +++ b/templates/components/search/controls.html.twig @@ -38,236 +38,239 @@ {% endif %}
-
+ {% if not original_params.hide_controls %} +
- {% set mainform = mainform ?? true %} - {% set showaction = showaction ?? true %} - {% if mainform and showaction %} -
- {% endif %} -
-
- {% set is_filter_active = false %} - {% if active_search_name|length %} - {% set is_filter_active = true %} - {% endif %} - {% set animation_cls = "animate__animated animate__zoomIn" %} + {% set mainform = mainform ?? true %} + {% set showaction = showaction ?? true %} + {% if mainform and showaction %} + + {% endif %} + {% if not original_params.hide_criteria %} +
+
+ {% set is_filter_active = false %} + {% if active_search_name|length %} + {% set is_filter_active = true %} + {% endif %} + {% set animation_cls = "animate__animated animate__zoomIn" %} - {% set active_savedsearch_class = active_savedsearch ? "btn-active-search" : "" %} - + {% set active_savedsearch_class = active_savedsearch ? "btn-active-search" : "" %} + + {% if not user_pref('show_search_form') %} + {% set active_filter_class = is_filter_active ? "btn-active-search" : "btn-ghost-secondary" %} + + + {% endif %} +
- {% if not user_pref('show_search_form') %} - {% set active_filter_class = is_filter_active ? "btn-active-search" : "btn-ghost-secondary" %} - {% endif %}
+ {% endif %} - {% if data['search']['as_map'] != 1 %} - {% set active_sort_class = active_sort ? "btn-active-sort" : "" %} - - + {% if mainform and showaction %} + + {% endif %} -
- {% if mainform and showaction %} - - - {% endif %} +
+
+ {% do call([itemtype, 'showSearchStatusArea']) %} +
-
-
- {% do call([itemtype, 'showSearchStatusArea']) %} + {% if user_pref('search_pagination_on_top') %} + {% if data['display_type'] != constant('Search::GLOBAL_SEARCH') and data['search']['as_map'] == 0 %} + + {% endif %} + {% endif %}
- {% if user_pref('search_pagination_on_top') %} - {% if data['display_type'] != constant('Search::GLOBAL_SEARCH') and data['search']['as_map'] == 0 %} - - {% endif %} - {% endif %} -
+
+ {% if may_be_located %} +
+ {% set table_class = (data['search']['as_map'] == 0 ? "btn-ghost-info" : "") %} + + -
- {% if may_be_located %} -
- {% set table_class = (data['search']['as_map'] == 0 ? "btn-ghost-info" : "") %} - -
+ {% endif %} - {% set located_class = (data['search']['as_map'] == 1 ? "btn-ghost-info" : "") %} - - -
- {% endif %} - - {% if may_be_browsed %} - - {% endif %} + {% if may_be_browsed %} + + {% endif %} - {% if may_be_deleted %} - - {% endif %} + {% if may_be_deleted %} + + {% endif %} - {% if may_be_unpublished %} - - {% endif %} + {% if may_be_unpublished %} + + {% endif %} - {% if can_config and count > 0 %} - - - {% endif %} + {% if can_config and count > 0 %} + + + {% endif %} - {% if count > 0 %} - - {% set exporthref = path('/front/report.dynamic.php') ~ "?" ~ { - 'item_type': itemtype, - 'sort': sort, - 'order': order, - 'start': start, - }|url_encode ~ '&' ~ posthref %} - - - {% endif %} + {% if count > 0 %} + + {% set exporthref = path('/front/report.dynamic.php') ~ "?" ~ { + 'item_type': itemtype, + 'sort': sort, + 'order': order, + 'start': start, + }|url_encode ~ '&' ~ posthref %} + + + {% endif %} +
-
+ {% endif %}