<% hi = hl[doc['url']] %>
<h2><%=link_to hi['title'], doc['url'] %></h2>

<%
snippets = []
[hi['summary'],hi['intended_reader'],hi['from_author'],hi['toc']].each { |e|
  snippets.concat(e) if e
}
%>
<div class="articles"><%= snippets.join("...") %></div><br/>
<div class="articles">著者：<%= doc['author'].join(", ") if doc['author'] %></div>
<%
infos = []
infos << "#{doc['price']}円" if doc['price']
infos << "#{doc['pages']}ページ" if doc['pages']
infos << doc['isbn'] if doc['isbn']
%>
<div class="articles">定価：<%= infos.join(" | ") %></div>
<hr/>
