Sha256: 04ef3cb9e1c481e54c0438b01e88ed04bdefc1ce820f5af87c9259a1d47455d9

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

<h4><%= t('activerecord.models.library') -%></h4>
<ul>
  <%- libraries = params[:library].to_s.split -%>
  <%- @library_facet.each do |facet| -%>
    <%- current_libraries = libraries.dup -%>
    <%- library = Library.where(:name => facet.value).select([:name, :display_name]).first -%>
    <%- if library -%>
      <li>
        <%= library_facet(library, current_libraries, facet) %>
      </li>
    <%- end -%>
  <%- end -%>
  <%- if params[:library] -%>
    <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:library => nil, :page => nil, :view => nil, :only_path => true)) -%></li>
  <%- end -%>
</ul>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_biblio-0.0.3 app/views/manifestations/_library_facet.html.erb
enju_biblio-0.0.2 app/views/manifestations/_library_facet.html.erb
enju_biblio-0.0.1 app/views/manifestations/_library_facet.html.erb