<%= link_to_previous_page @facet_field.paginator, raw(t('views.pagination.previous')), params: @facet_field.search_state.to_h, param_name: param_name, class: 'btn btn-link', data: { blacklight_modal: "preserve" } do %>
<%= content_tag :span, raw(t('views.pagination.previous')), class: 'disabled btn' %>
<% end %>
<%= link_to_next_page @facet_field.paginator, raw(t('views.pagination.next')), params: @facet_field.search_state.to_h, param_name: param_name, class: 'btn btn-link', data: { blacklight_modal: "preserve" } do %>
<%= content_tag :span, raw(t('views.pagination.next')), class: 'disabled btn' %>
<% end %>
<% if @facet_field.paginator.sort == 'index' -%>
<%= t('blacklight.search.facets.sort.index') %>
<%= link_to(t('blacklight.search.facets.sort.count'), sort_facet_url('count'), class: "sort_change numeric btn btn-outline-secondary", data: { blacklight_modal: "preserve" }) %>
<% elsif @facet_field.paginator.sort == 'count' -%>
<%= link_to(t('blacklight.search.facets.sort.index'), sort_facet_url('index'), class: "sort_change az btn btn-outline-secondary", data: { blacklight_modal: "preserve" }) %>
<%= t('blacklight.search.facets.sort.count') %>
<% end -%>