blob: f714af88ea53bf2742afc3d5b66284a50bc29275 [file] [log] [blame]
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00001<header>
Nils Diewaldeb25f5f2015-05-08 00:44:42 +00002 <%= link_to 'index', class => 'logo', begin %><h1><span><%= title() // loc('korap_desc') %></span></h1><% end %>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00003 <div class="button top">
Nils Diewald19402142015-04-30 15:44:52 +00004<!--
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00005 <a href="#"
6 class="login"
7 title="<%= loc 'login' %>"><span><%= loc 'login' %></span></a>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00008-->
Nils Diewald19402142015-04-30 15:44:52 +00009 </div>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000010 <form autocomplete="off" action="<%= url_for 'index' %>">
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000011 <div id="searchbar">
Nils Diewald9922edf2015-05-07 20:03:33 +000012 %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'off', autocorrect => 'off', autocapitalize => 'off'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000013 <button type="submit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
14 </div>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000015 <!-- Search in the following virtual collection -->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000016 <div id="vc-view"></div>
Akron9cc3eaf2015-06-10 22:15:52 +020017 <%= loc 'in' %> <input type="hidden" id="vc-name" name="vc-name" value="<%= stash('vc-name') %>" />
18 <input type="text" name="vc" id="vc" value="<%= stash 'vc-query' %>" />
19
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000020 <%= loc 'with' %>
21 <span class="select">
22 %= select_field 'ql', [[Poliqarp => 'poliqarp'], ['Cosmas II' => 'cosmas2'], ['Annis' => 'annis'], ['CQL v1.2' => 'cql']], id => 'ql-field'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000023 </span>
24 <div class="button right">
25 % param(cutoff => 1) unless param 'q';
26 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
Akron229bd412015-05-28 19:01:19 +020027 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span></span><%= loc('glimpse') %></label>
Nils Diewaldac62a5d2015-05-08 00:09:08 +000028 <%= link_to 'doc_start', title => loc('tutorial'), class => "tutorial", id => "view-tutorial", begin %><span><%= loc 'tutorial' %></span><% end %>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000029 </div>
30 </form>
31</header>