<% unless @search.description.blank? %>
<%= @search.description %>
<% end %> <% if @results.empty? %>

<%= I18n.t('searches.none') %>.

<% else %> <% @results.each do |res| %> <% end %>
<% if res.is_a? Thing %> <%= res.title %>
<%= I18n.t('activerecord.attributes.thing.authors') %>: <%= authors_or_editors(res) %>
<%= I18n.t('activerecord.attributes.thing.publisher') %>: <%= string_maybe(res.publisher) %>
<%= I18n.t('activerecord.attributes.thing.year') %>: <%= string_maybe(res.year) %>
<%= I18n.t('activerecord.attributes.thing.kind') %>: <%= I18n.t("things.kind.#{res.kind}") %>
<% if res.note.present? %>
<%= I18n.t('activerecord.attributes.thing.note') %>: <%= res.note %>
<% end %> <% unless res.url.blank? %> <% end %>
<% else %> <%= I18n.t('comments.title') %> <%= I18n.t('general.in') %> «<%= res.thing.title %>»
<%= res.content %>
<% end %>
<% end %>