Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c80b48cfbd
Fetching contributors…

Cannot retrieve contributors at this time

94 lines (75 sloc) 2.965 kb
<% if flash[:submitted] %>
<div class="row thanks">
<div class='span12 alert alert-success'>
<p><strong>Thanks for your help.</strong> Do another search and choice if you like!</p>
</div>
</div>
<% end %>
<div class="row">
<div class="span12">
<p class="informed">This is a study by the Johns Hopkins Libraries to evaluate potential search services.
Your participation is entirely optional, you will neither be penalized nor
rewarded for your choice of whether or not to participate. All responses are anonymous.
Results may be shared as research findings.</p>
<div class="page-header">
<h1>1. Help us evaluate article search products
<small>by searching for a topic, an article, or anything.</small>
</h1>
</div>
</div>
</div>
<div class="row">
<div class="span12">
<%= form_tag({}, :method => :get, :class => "form-search") do %>
<%= search_field_tag 'q', params[:q], :class => "search-query span6" %>
<%= button_tag 'search', :type => 'submit', :class => "btn btn-primary" %>
<p class="tip"><small>Tip: Enter phrases in "quotation marks" for phrase search.</small></p>
<% end %>
</div>
</div>
<% if @results %>
<%= form_tag(choice_path, :method => :post, :class => "form-choice") do %>
<%= hidden_field_tag "q", params[:q] %>
<%= hidden_field_tag 'query', params[:q] %>
<%= hidden_field_tag 'option_a', @one %>
<%= hidden_field_tag 'option_b', @two %>
<div class="row">
<div class="span12 demographics">
<h2 class="demographic">2. Optional, tell us about yourself</h2>
School/Institution: <%= select_tag("school", options_for_select($schools, session[:school_choice])) %>
Status: <%= select_tag("status", options_for_select($statuses, session[:status_choice])) %>
</div>
</div>
<div class="row">
<div class="span12">
<div class="choice-header">
<h2>3. Which set of results do you prefer <small>as most useful or helpful . </small></h2>
<p>There are two different lists of results, on the left and right. Which better meets your needs?</p>
</div>
</div>
</div>
<div class="row">
<div class="span4 battle-option">
<%= submit_tag 'Prefer A', :class => 'btn btn-large btn-info', :name => "preferA"%>
</div>
<div class="span4 battle-option">
<%= submit_tag "Can't Decide/About the Same", :class => 'btn btn-large btn-info', :name => "preferNone" %>
</div>
<div class="span4 battle-option">
<%= submit_tag 'Prefer B', :class => "btn btn-large btn-info", :name => "preferB" %>
</div>
</div>
<% end %>
<div class="row">
<div class="span6">
<div class="well listA">
<%= bento_search @results[@one] %>
</div>
</div>
<div class="span6">
<div class="well listB">
<%= bento_search @results[@two] %>
</div>
</div>
</div>
<% end %>
Jump to Line
Something went wrong with that request. Please try again.