Sha256: f584d805986597f588a29c720c991c6091f53d0fea6c677f661ba9c42be89024

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

<%#
Copyright © 2012 The Pennsylvania State University

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
%>

<% # container for all documents in index view -%>
<div id="documents" class="clear">
  <% facet_name = grouping_facet %>
  <%- if facet_name -%>
    <%- @response.docs.group_by {|d| d[facet_name]}.each do |grouping| -%>
      <%= render :partial => 'dashboard/_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 => 'dashboard/_index_partials/default_group', :locals => {:docs => @response.docs.map { |x| SolrDocument.new(x) }, :facet_name => nil, :facet_value => nil} %>
  <%- end -%>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sufia-0.0.1.pre1 app/views/dashboard/_document_list.html.erb