-
Notifications
You must be signed in to change notification settings - Fork 0
/
cinii_r.rhtml
26 lines (26 loc) · 1.13 KB
/
cinii_r.rhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="cinii_search">
<div class="cinii_headline">
<strong><%=h data[:q] %>
<span class="additional_keywords"><%=h data[ :additional_keywords ].join("\n") %></span></strong>
<a class="cinii" href="<%=h data[:link] %>"><img src="./cinii.png" alt="[CiNii]" title="CiNii検索" /></a>
<%=h data[ :totalResults ] %>件中
<%=h data[ :count ] * data[ :page ] + 1 %>
- <%=h data[ :page ] * data[ :count ] + data[ :count ] %>件目・・
検索にかかった時間<%= sprintf( '%.02f', data[ :searchTime ] ) %>秒
</div>
<ol start="<%=h data[:count] * data[:page] + 1 %>">
<% data[ :entries ][ data[:count] * data[:page], data[:count] ].each do |entry| %>
<li><div class="cinii_title"><a href="<%=h entry[:url] %>"><%=h entry[:title] %></a></div>
<div class="cinii_author"><%=h entry[ :author ] %></div>
<%= [ :publicationName, :publicationDate ].select{|e| entry[e] }.map{|e| "<span class=\"cinii_#{ e }\">#{ CGI.escapeHTML entry[e] }</span>" }.join(",\n") %>
<span class="score" title="score">
<% if entry[ :score ] %>
<%=h "(%.02f)" % entry[ :score ] %>
<% end %>
</span>
</li>
<% end %>
</ol>
<div class="cinii_frame"></div>
</div>