<% unless result["mobile_link"] %>

<%= render partial: "/quick_search/search/result_title", locals: { link: result['link'], title: result['title'], date: result['date'] } %>

<% else %>

<%= render partial: "/quick_search/search/result_title", locals: { link: result['link'], title: result['title'], date: result['date'] } %>

<%= render partial: "/quick_search/search/result_title", locals: { link: result['mobile_link'], title: result['title'], date: result['date'] } %>

<% end %> <% if result.description %>

<%= result["description"].html_safe %>

<% end %> <% if result["author"]%> <% author = result["author"].html_safe %> <% end %>

<%= truncate(author, length: 80, separator: '; ') %>

<% if result.citation %>

<%= render partial: '/quick_search/search/citation', locals: {:result => result} %>

<% end %>

<%= result["format"] %> <% if result['fulltext'] %> <%= link_to result["link"], {:class => ''} do %> Full Text Online  <% end %> <% end %>

<% if result['availability'] %> <% if result["availability"] == "Available" %> <% else %> <% end %> <% end %> <% if result['location'] %> <%= result['location'] %> <% end %>