<%= render :partial => 'search/image', :object => product %>
<% if product.available %>
<% if product.price && product.price > 0 %>
<% has_discount = product.discount && product.discount > 0 %>
<% if product.price %>
<%=_("from") if has_discount %><%= price_span(product.price, :class => "search-product-price " + (has_discount ? 'with-discount' : '')) %>
<% if has_discount %>
<%=_("by")%><%= price_span(product.price_with_discount, :class => "search-product-price") %>
<% end %>
<% if product.unit %>
<%= _('/') %> <%= product.unit.name %>
<% end %>
<% end %>
<% end %>
<% else %>
<%= _('Not available') %>
<% end %>
<%= link_to_product product, :class => 'search-result-title' %>
<%= _('Supplier') %> <%= link_to_homepage(product.enterprise.name, product.enterprise.identifier) %>
<% if product.description %>
<% desc_stripped = strip_tags(product.description) %>
<%= _('Description') %> <%= excerpt(desc_stripped, desc_stripped.first(3), 300) %>
<% end %>
<% if product.enterprise.region %>
<%= _('City') %>
<%= city_with_state(product.enterprise.region) %>
<% end %>
<% if product.product_qualifiers.count > 0 %>
<%= _('Qualifiers') %>
<% product.product_qualifiers.each do |pq| %>
<% if pq.qualifier %>
<%= pq.qualifier.name + (pq.certifier.nil? ? _(";") : '') %>
<% end %>
<% if pq.certifier %>
<%= _('cert. ') + pq.certifier.name + _(";") %>
<% end %>
<% end %>
<% end %>