Sha256: 32cd268fa9b254479141a3d232db245655d9f3c7c21e5e31e2f449cff427524f

Contents?: true

Size: 690 Bytes

Versions: 5

Compression:

Stored size: 690 Bytes

Contents

<li>
  <b><%= t('geoblacklight.relations.descendant', count: @relations.descendants['numFound']) %></b>
</li>
<% @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 %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geoblacklight-1.9.1 app/views/relation/_descendants.html.erb
geoblacklight-1.9.0 app/views/relation/_descendants.html.erb
geoblacklight-1.8.0 app/views/relation/_descendants.html.erb
geoblacklight-1.7.1 app/views/relation/_descendants.html.erb
geoblacklight-1.7.0 app/views/relation/_descendants.html.erb