blob: 682b36501bc33cbb1ad869c07079115e3805a4e0 [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">
Akrone5ef4e02017-04-19 17:07:52 +02004
5% if (stash('user')) {
6 %# TODO: CSRF protection
7 <a href="<%= url_for 'logout' %>"
8 class="logout"
9 title="<%= loc 'logout' %>: <%= stash('user') %>"><span><%= loc 'logout' %></span></a>
10% };
11
Nils Diewald19402142015-04-30 15:44:52 +000012 </div>
Akronc1457bf2015-06-11 19:24:00 +020013 <form autocomplete="off" action="<%= url_for 'index' %>" id="searchform">
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000014 <div id="searchbar">
Akron056901d2016-06-20 17:42:35 +020015 %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'corpus-query', autocorrect => 'off', autocapitalize => 'off'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000016 <button type="submit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
17 </div>
Akronc1457bf2015-06-11 19:24:00 +020018
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000019 <!-- Search in the following virtual collection -->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000020 <div id="vc-view"></div>
Akronc1457bf2015-06-11 19:24:00 +020021 <%= loc 'in' %>
Akron179c8ac2015-06-30 19:30:50 +020022 %# TODO: Create 'align' parameter
Akron7716f012015-07-01 20:38:32 +020023 %= hidden_field 'collection-name' => param('collection-name'), id => 'collection-name'
Akronc1457bf2015-06-11 19:24:00 +020024 %= text_field 'collection', id => 'collection'
Akron9cc3eaf2015-06-10 22:15:52 +020025
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000026 <%= loc 'with' %>
27 <span class="select">
Akronef351fa2017-11-22 19:44:50 +010028 %= select_field 'ql', [[loc('QL_poliqarp') => 'poliqarp'], [loc('QL_cosmas2') => 'cosmas2'], [loc('QL_annis') => 'annis'], [loc('QL_cql') => 'cql'], [loc('QL_fcsql') => 'fcsql']], id => 'ql-field'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000029 </span>
30 <div class="button right">
31 % param(cutoff => 1) unless param 'q';
32 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
Akron229bd412015-05-28 19:01:19 +020033 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span></span><%= loc('glimpse') %></label>
Akron6a535d42015-08-26 20:16:58 +020034 <%= link_to 'doc_start', title => loc('tutorial'), class => "tutorial", id => "view-tutorial", tabindex => '-1', begin %><span><%= loc 'tutorial' %></span><% end %>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000035 </div>
Akron1120a582017-10-17 12:29:16 +020036 <div class="clear"></div>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000037 </form>
38</header>