<b><%= t('geoblacklight.relations.descendant', count: @relations.descendants['numFound']) %></b>
<% @relations.descendants['docs'][0..2].each do |descendant| %>
  <li>
    <%= link_to solr_document_path(descendant['layer_slug_s']) do %>
      <span class='geoblacklight geoblacklight-relations-descendant'></span> <%= descendant['dc_title_s'] %>
    <% end %>
  </li>
<% end %>
<% unless (@relations.descendants['numFound'].to_i <= 3) %>
  <li>
    <%= link_to search_catalog_path({f: {"#{Settings.FIELDS.SOURCE}" => [@relations.search_id]}}) do %>
      <%= t('geoblacklight.relations.browse_all', count: @relations.descendants['numFound']) %>
    <% end %>
  </li>
<% end %>
