-
Notifications
You must be signed in to change notification settings - Fork 0
/
ndl.rhtml
25 lines (25 loc) · 1.22 KB
/
ndl.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
<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="worldcat" href="<%=h data[:link] %>"><img src="./ndl.gif" alt="[NDL Search]" title="NDLサーチ"></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>
<% if entry[ :isbn ] %>
<div class="gbs-link">
<script>GBS_insertPreviewButtonLink('ISBN:<%=h entry[ :isbn ] %>');</script>
</div>
<% end %>
<div class="cinii_author"><%=h entry[ :creator ] %></div>
<%= [ :publicationName, :volume, :source, :publisher, :date ].select{|e| entry[e] and not entry[e].empty? }.map{|e| "<span class=\"cinii_#{ e }\">#{ CGI.escapeHTML entry[e] }</span>" }.join( ", " ) %>
<% end %>
</ol>
<div class="cinii_frame"></div>
</div>