Sha256: 62d31d72271d3f80bd100b74cafc3489848546b85cbf713bbe6d744f90cc9e97

Contents?: true

Size: 649 Bytes

Versions: 2

Compression:

Stored size: 649 Bytes

Contents

<% @relations.send(rel)['docs'][0..2].each do |entry| %>
  <li class="list-group-item border-bottom-0">
    <%= link_to solr_document_path(entry[Settings.FIELDS.ID]) do %>
      <%= relations_icon(entry, value.icon) unless value.icon.nil? %>
      <%= entry[Settings.FIELDS.TITLE] %>
    <% end %>
  </li>
<% end %>
<% unless (@relations.send(rel)['numFound'].to_i <= 3) %>
  <li class="list-group-item border-bottom-0">
    <%= link_to search_catalog_path({f: {"#{Settings.FIELDS.SOURCE}" => [@relations.link_id]}}) do %>
      <%= t('geoblacklight.relations.browse_all', count: @relations.send(rel)['numFound']) %>
    <% end %>
  </li>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geoblacklight-4.0.0.pre.alpha.1 app/views/relation/_relations.html.erb
geoblacklight-4.0.0.pre.alpha app/views/relation/_relations.html.erb