<%= t('activerecord.models.subject') -%>
<%- unless @subject_facet.blank? -%>
<%- @subject_facet[0..19].each do |facet| -%>
<%- subject = Subject.find_by(id: facet.value) -%>
<%- if subject -%>
-
<%= link_to "#{subject.term} (#{facet.count})", url_for(params.permit.merge(page: nil, subject: "\"#{subject.term}\"", view: nil, only_path: true)) -%>
<%- end -%>
<%- end -%>
<%- if @subject_by_term -%>
- <%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(subject: nil, page: nil, view: nil, only_path: true)) -%>
<%- end -%>
<%- else -%>
<%= t('page.no_subject') -%>
<%- end -%>