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