Sha256: 3262df85646f9ce4fbdf38d8de50a982b35476dcc1a1f32fc994590ad6f253c1

Contents?: true

Size: 1.37 KB

Versions: 19

Compression:

Stored size: 1.37 KB

Contents

<div id="content_detail" class="ui-corner-all">
<h1 class="title">NDLサーチ検索によるインポート</h1>
<div id="content_list">
  <p id="notice"><%= notice %></p>

<%= form_for :books, :url => ndl_books_path, :html => {:method => 'get'} do -%>
  <p>
    <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form'} -%>
    <%= submit_tag '検索' -%>
  </p>
<%- end -%>

<% if @query.present? %>
<p><%= @books.total_entries %> 件が見つかりました。</p>

<table class="index">
  <tr>
    <th></th>
    <th>書名</th>
  </tr>
  <% @books.each do |book| %>
    <tr class="line<%= cycle("0", "1") -%>">
      <td>
        <%= link_to_import(book.at('./dc:identifier[@xsi:type="dcndl:JPNO"]').try(:content).to_s) %>
      </td>
      <td>
        <%= link_to book.at('./title').content, book.at('./link').content %>
        <br />
        <%= book.xpath('./dc:creator').collect(&:content).join(' ') %>
      	<%= book.xpath('./dc:publisher').collect(&:content).join(' ') %>
        (<%= Time.zone.parse(book.at('./pubDate').content).year %>,
        ISBN: <%= book.at('./dc:identifier[@xsi:type="dcndl:ISBN"]').try(:content).to_s %>)
      </td>
    </tr>
  <% end %>
</table>

<br />

<%= will_paginate(@books) %>
<% else %>
  <%= javascript_tag("$('#search_form_top').focus()") -%>
<% end %>

</div>
</div>

<div id="submenu" class="ui-corner-all">
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
enju_ndl-0.0.32 app/views/ndl_books/index.html.erb
enju_ndl-0.0.31 app/views/ndl_books/index.html.erb
enju_ndl-0.0.30 app/views/ndl_books/index.html.erb
enju_ndl-0.0.29 app/views/ndl_books/index.html.erb
enju_ndl-0.0.27 app/views/ndl_books/index.html.erb
enju_ndl-0.0.26 app/views/ndl_books/index.html.erb
enju_ndl-0.0.25 app/views/ndl_books/index.html.erb
enju_ndl-0.0.24 app/views/ndl_books/index.html.erb
enju_ndl-0.0.23 app/views/ndl_books/index.html.erb
enju_ndl-0.0.22 app/views/ndl_books/index.html.erb
enju_ndl-0.0.21 app/views/ndl_books/index.html.erb
enju_ndl-0.0.20 app/views/ndl_books/index.html.erb
enju_ndl-0.0.19 app/views/ndl_books/index.html.erb
enju_ndl-0.0.18 app/views/ndl_books/index.html.erb
enju_ndl-0.0.17 app/views/ndl_books/index.html.erb
enju_ndl-0.0.16 app/views/ndl_books/index.html.erb
enju_ndl-0.0.15 app/views/ndl_books/index.html.erb
enju_ndl-0.0.14 app/views/ndl_books/index.html.erb
enju_ndl-0.0.13 app/views/ndl_books/index.html.erb