Sha256: 0965593f65c0846ab0b031ead1f4d990463d8af06fea679ca0598586ce5b6110

Contents?: true

Size: 671 Bytes

Versions: 14

Compression:

Stored size: 671 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.RELATIONSHIPS_SHOWN.send(rel).field}" => [@relations.link_id]}}) do %>
      <%= t('geoblacklight.relations.browse_all', count: @relations.send(rel)['numFound']) %>
    <% end %>
  </li>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
geoblacklight-4.4.2 app/views/relation/_relations.html.erb
geoblacklight-4.4.1 app/views/relation/_relations.html.erb
geoblacklight-4.4.0 app/views/relation/_relations.html.erb
geoblacklight-4.4.0.rc1 app/views/relation/_relations.html.erb
geoblacklight-4.3.0 app/views/relation/_relations.html.erb
geoblacklight-4.2.0 app/views/relation/_relations.html.erb
geoblacklight-4.1.1 app/views/relation/_relations.html.erb
geoblacklight-4.1.0 app/views/relation/_relations.html.erb
geoblacklight-4.0.0 app/views/relation/_relations.html.erb
geoblacklight-4.0.0.pre.rc3 app/views/relation/_relations.html.erb
geoblacklight-4.0.0.pre.rc2 app/views/relation/_relations.html.erb
geoblacklight-4.0.0.pre.rc1 app/views/relation/_relations.html.erb
geoblacklight-4.0.0.pre.alpha.3 app/views/relation/_relations.html.erb
geoblacklight-4.0.0.pre.alpha.2 app/views/relation/_relations.html.erb