app/views/search/journal_search.html.erb in umlaut-3.3.1 vs app/views/search/journal_search.html.erb in umlaut-4.0.0.beta1
- old
+ new
@@ -1,6 +1,6 @@
-<h2><%= @page_title %></h2>
+<h1><%= @page_title %></h1>
<%= form_tag({:controller=>'search', :action=>'journal_search'}, {:method=>'get', :name=>'OpenURL', :id=>'OpenURL', :class => "form-inline form-very-inline"}) %>
<div class="umlaut-search-form">
<fieldset>
<%= hidden_field_tag "rfr_id", "info:sid/sfxit.com:citation" %>
<%= hidden_field_tag "rft.title", "", {:class => "rft_title"} %>
@@ -11,31 +11,31 @@
# amongst serveral possible title matches. Preserve them on refinement of search terms.
-%>
<% params.slice("rft.date", "__year", "__month", "__day", "rft.volume", "rft.issue", "rft.spage").each_pair do |key, value| %>
<%= hidden_field_tag key, value %>
<% end %>
- <div class="control-group">
- <%= label :journal, :title, "Journal Title:" %>
- <%= text_field :journal, :title, {:name=>'rft.jtitle', :value=>params['rft.jtitle'], :class=>"title_search input-xlarge", :autocomplete => "off"} %>
- <select name="umlaut.title_search_type" class="title_search_type input-medium">
- <%= options_for_select({"contains" => "contains", "begins with" => "begins", "exact match" => "exact"}, params["umlaut.title_search_type"]) %>
+ <div class="form-group">
+ <%= label :journal, :title, t('umlaut.search.journal_title') + ':' %>
+ <%= text_field :journal, :title, {:name=>'rft.jtitle', :value=>params['rft.jtitle'], :class=>"title_search form-control", :autocomplete => "off"} %>
+ <select name="umlaut.title_search_type" class="title_search_type form-control">
+ <%= options_for_select({t('umlaut.search.contains') => "contains", t('umlaut.search.begins_with') => "begins", t('umlaut.search.exact_match') => "exact"}, params["umlaut.title_search_type"]) %>
</select>
</div>
- <div class="control-group">
- <%= submit_tag "Search", {:name=>"Generate_OpenURL2", :class => "btn"} %>
- <%= link_to('More search options', {:controller=>'search'}, :class => "inline-help") %>
+ <div class="form-group">
+ <%= submit_tag t('umlaut.search.action_label'), {:name=>"Generate_OpenURL2", :class => "btn btn-default"} %>
+ <%= link_to(t('umlaut.search.more_search_options'), {:controller=>'search'}, :class => "inline-help") %>
</div>
</fieldset>
</div>
</form>
<% if params["action"] == "journal_list" %>
<%= render :partial=>"a_to_z" %>
<% end %>
<% unless @hits == 0%>
- <h3>Showing results <%= @start_result_num %> through <%= @end_result_num %> of <%= @hits %></h3>
+ <h3><%= t( 'umlaut.search.showing_results', start: @start_result_num, until: @end_result_num, total: @hits) %></h3>
<% end %>
<% if params["rft.jtitle"] %>
- <div class="note"><em><strong>Note:</strong> Alternate titles might have matched your search terms</em></div>
+ <div class="note"><em><strong><%= t 'umlaut.search.note' %>:</strong> <%= t 'umlaut.search.other_titles_might' %> </em></div>
<% end %>
<div class='umlaut-pagination pagination'>
<%= render :partial=>'pager' %>
</div>
<div class="umlaut-results">
\ No newline at end of file