<%- search_fields_for_advanced_search.each do |key, field_def| -%>
  <div class="form-group advanced-search-field">
      <%= label_tag key, "#{field_def.label }", :class => "col-sm-3 control-label" %>
      <div class="col-sm-9">
      	<% if key =~ /^(all_fields|title|author|subject)$/ %>
          <!-- TODO: autocomplete breaks the field length -->
          <%#= text_field_tag key, label_tag_default_for(key), :class => 'form-control', :autocomplete => :off, data: { autocomplete_enabled: autocomplete_enabled?, autocomplete_path: '/:controller/suggest/:category' } %>
          <%= text_field_tag key, label_tag_default_for(key), :class => 'form-control' %>
        <% else %>
          <%= text_field_tag key, label_tag_default_for(key), :class => 'form-control' %>
        <% end %>  
      </div>
  </div>
<%- end -%>

<%- search_fields_for_advanced_search.each do |key, field_def| -%>
  <div class="form-group advanced-search-field">
      <%= label_tag key, "#{field_def.label }", :class => "col-sm-3 control-label" %>
      <div class="col-sm-12">
      	<% if key =~ /^(all_fields|title|author|subject)$/ %>
          <!-- TODO: autocomplete breaks the field length -->
          <%#= text_field_tag key, label_tag_default_for(key), :class => 'form-control', :autocomplete => :off, data: { autocomplete_enabled: autocomplete_enabled?, autocomplete_path: '/:controller/suggest/:category' } %>
          <%= text_field_tag key, label_tag_default_for(key), :class => 'form-control' %>
        <% else %>
          <%= text_field_tag key, label_tag_default_for(key), :class => 'form-control' %>
        <% end %>  
      </div>
  </div>
<%- end -%>

Fix advanced search field width
Fix advanced search field width
