Sha256: fb9acf0d98091a3e31627a1c427ea4842b1d69af9d5929b24993e681e1abbb75

Contents?: true

Size: 685 Bytes

Versions: 11

Compression:

Stored size: 685 Bytes

Contents

<% 
  item = data[:_]
  subset = data.reject { |k,v| ! k.is_a?(String) }
%>

<li class="<%= subset.empty? ? 'h-leaf' : 'h-node'  %>">
  <% if item.nil? %>
    <%= key %>              
  <% else %>
    <% if facet_in_params?(field_name, item.qvalue) %>
      <%= render_selected_qfacet_value( field_name, item )%>
    <% else %>
      <%= render_qfacet_value(field_name, item) %>              
    <% end %>
  <% end %>
  <% unless subset.empty? %>
  <ul>
    <%=
      raw(subset.keys.sort.collect { |subkey| 
        render :partial => 'facet_hierarchy_item', :locals => { :field_name => field_name, :data => subset[subkey], :key => subkey } 
      })
    %>
  </ul>
  <% end %>
</li>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-hierarchy-3.0.0 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-2.0.0 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-1.1.0 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-1.0.1 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-1.0.0 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-0.2.0 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-0.1.1 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-0.1.0 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-0.0.3 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-0.0.2 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb
blacklight-hierarchy-0.0.1 app/views/blacklight/hierarchy/_facet_hierarchy_item.html.erb