Sha256: 3ed27db67bce6780e11aaa6b17f1f43da4b32449186b0d01e38bda9bee84e487

Contents?: true

Size: 1.85 KB

Versions: 7

Compression:

Stored size: 1.85 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('enju_loc.import_from_loc_search') %></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>
<%= form_for :loc_search, :url => loc_search_index_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_loc.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_loc(book.lccn) %>
    </td>
    <td>
      <strong><%= link_to_unless( book.lccn.blank?, book.title, "http://lccn.loc.gov/#{ book.lccn }" ) do book.title end %></strong><br />
      <%=h book.creator -%><br />
      <% if book.publisher.present? %>
      <%=h book.publisher -%>,
      <% end %>
      <%=h book.pubyear -%>
      <% if book.isbn.present? %>
      (ISBN: <%=h book.isbn -%>)
      <% end %>
    </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_loc.same_query_in_loc_search'), "https://catalog.loc.gov/vwebv/search?searchArg=#{u(@query)}&searchCode=GKEY%5E*&searchType=0" %></li>
    <% if defined?(EnjuNdl) %>
      <li><%= link_to t('enju_ndl.import_from_ndl_search'), ndl_books_path( :query => @query ) %></li>
    <% end %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enju_loc-0.3.1 app/views/loc_search/index.html.erb
enju_loc-0.3.0 app/views/loc_search/index.html.erb
enju_loc-0.3.0.beta.1 app/views/loc_search/index.html.erb
enju_loc-0.2.0 app/views/loc_search/index.html.erb
enju_loc-0.2.0.beta.3 app/views/loc_search/index.html.erb
enju_loc-0.2.0.beta.2 app/views/loc_search/index.html.erb
enju_loc-0.2.0.beta.1 app/views/loc_search/index.html.erb