blob: 017d81877b822b1bdaa249664641f06f59b8509f [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>
Akronc1457bf2015-06-11 19:24:00 +020010 <form autocomplete="off" action="<%= url_for 'index' %>" id="searchform">
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>
Akronc1457bf2015-06-11 19:24:00 +020015
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000016 <!-- Search in the following virtual collection -->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000017 <div id="vc-view"></div>
Akronc1457bf2015-06-11 19:24:00 +020018 <%= loc 'in' %>
19 %= hidden_field 'vc-name' => stash('vc-name'), id => 'vc-name'
20 %= text_field 'collection', id => 'collection'
Akron9cc3eaf2015-06-10 22:15:52 +020021
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000022 <%= loc 'with' %>
23 <span class="select">
24 %= select_field 'ql', [[Poliqarp => 'poliqarp'], ['Cosmas II' => 'cosmas2'], ['Annis' => 'annis'], ['CQL v1.2' => 'cql']], id => 'ql-field'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000025 </span>
26 <div class="button right">
27 % param(cutoff => 1) unless param 'q';
28 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
Akron229bd412015-05-28 19:01:19 +020029 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span></span><%= loc('glimpse') %></label>
Nils Diewaldac62a5d2015-05-08 00:09:08 +000030 <%= 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 +000031 </div>
32 </form>
33</header>