Sha256: 3864016b1b0efa100be9842794b4e00a690c3f98c20454f5ada7369010919208

Contents?: true

Size: 1.52 KB

Versions: 10

Compression:

Stored size: 1.52 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('enju_ndl.import_from_ndl_search') %></h1>
<div id="content_list">
  <p id="notice"><%= notice %></p>

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

<% if @query.present? %>
  <p><%= t('enju_ndl.number_of_search_results', :count => @books.total_count) %></p>

<table class="table table-striped index">
  <tr>
    <th></th>
    <th><%= t('activerecord.attributes.manifestation.original_title') %></th>
  </tr>
  <% @books.each do |book| %>
    <tr class="line<%= cycle("0", "1") -%>">
      <td>
        <%= link_to_import_from_ndl(book.itemno) %>
      </td>
      <td>
        <strong><%= link_to "#{book.title} #{book.volume}".strip , book.permalink %></strong>
        <br />
        <%= book.creator %>
      	<%= book.publisher %>
        (<%= book.issued %>,
        ISBN: <%= book.isbn %>)
      </td>
    </tr>
  <% end %>
</table>

<br />

<%= paginate(@books) %>
<% else %>
  <%= javascript_tag("$(function(){$('#search_form_top').focus()})") %>
<% end %>

</div>
</div>

<% if @query.present? %>
<div id="submenu" class="ui-corner-all ui-widget-content">
  <ul>
    <li><%= link_to t('enju_ndl.same_query_in_ndl_search'), "http://iss.ndl.go.jp/books?any=#{u(@query)}" -%></li>
  </ul>
</div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
enju_ndl-0.3.0 app/views/ndl_books/index.html.erb
enju_ndl-0.3.0.rc.1 app/views/ndl_books/index.html.erb
enju_ndl-0.3.0.beta.1 app/views/ndl_books/index.html.erb
enju_ndl-0.2.3 app/views/ndl_books/index.html.erb
enju_ndl-0.2.2 app/views/ndl_books/index.html.erb
enju_ndl-0.2.1 app/views/ndl_books/index.html.erb
enju_ndl-0.2.0 app/views/ndl_books/index.html.erb
enju_ndl-0.2.0.beta.3 app/views/ndl_books/index.html.erb
enju_ndl-0.2.0.beta.2 app/views/ndl_books/index.html.erb
enju_ndl-0.2.0.beta.1 app/views/ndl_books/index.html.erb