Sha256: d62dbd6f99f16fec24bc62afe8ce7a2b675d7653af4b0d343716d2f0bd2003fb

Contents?: true

Size: 640 Bytes

Versions: 13

Compression:

Stored size: 640 Bytes

Contents

<% # container for all documents in index view -%>
<div id="documents">
  <% facet_name = grouping_facet %>
  <%- if facet_name -%>
    <%- @response.docs.group_by {|d| d[facet_name]}.each do |grouping| -%>
      <%= render :partial => 'catalog/_index_partials/default_group', :locals => {:docs => grouping[1].map { |x| SolrDocument.new(x) }, :facet_name => facet_name, :facet_value => grouping[0].to_s} %>
    <%- end -%>
  <%- else -%>
    <%= render :partial => 'catalog/_index_partials/default_group', :locals => {:docs => @response.docs.map { |x| SolrDocument.new(x) }, :facet_name => nil, :facet_value => nil} %>
  <%- end -%>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hydra-head-4.1.3 app/views/catalog/_document_list.html.erb
hydra-head-4.1.2 app/views/catalog/_document_list.html.erb
hydra-head-4.1.1 app/views/catalog/_document_list.html.erb
hydra-head-4.1.0 app/views/catalog/_document_list.html.erb
hydra-head-4.0.3 app/views/catalog/_document_list.html.erb
hydra-head-4.0.2 app/views/catalog/_document_list.html.erb
hydra-head-4.0.1 app/views/catalog/_document_list.html.erb
hydra-head-4.0.0 app/views/catalog/_document_list.html.erb
hydra-head-4.0.0.rc6 app/views/catalog/_document_list.html.erb
hydra-head-4.0.0.rc5 app/views/catalog/_document_list.html.erb
hydra-head-4.0.0.rc4 app/views/catalog/_document_list.html.erb
hydra-head-4.0.0.rc3 app/views/catalog/_document_list.html.erb
hydra-head-4.0.0.rc2 app/views/catalog/_document_list.html.erb