Sha256: 3de703962fa2c7240e72573f9b5a0028a803a83daacebaec8262e4122bee49e0

Contents?: true

Size: 677 Bytes

Versions: 5

Compression:

Stored size: 677 Bytes

Contents

<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 %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geoblacklight-1.6.0 app/views/relation/_descendants.html.erb
geoblacklight-1.5.1 app/views/relation/_descendants.html.erb
geoblacklight-1.5.0 app/views/relation/_descendants.html.erb
geoblacklight-1.4.0 app/views/relation/_descendants.html.erb
geoblacklight-1.3.0 app/views/relation/_descendants.html.erb