blob: 8992b0f7577ce8c566596a743b4b15866909b70d [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">
Akronc82b1bc2018-11-18 18:06:14 +01004 %= content_block 'headerButtonGroup'
Nils Diewald19402142015-04-30 15:44:52 +00005 </div>
Akronc1457bf2015-06-11 19:24:00 +02006 <form autocomplete="off" action="<%= url_for 'index' %>" id="searchform">
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00007 <div id="searchbar">
Akron36c020f2018-03-19 16:25:26 +01008 %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'off', autocorrect => 'off', autocapitalize => 'off'
hebasta5df796f2019-05-21 15:27:12 +02009 <button type="submit" id="qsubmit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000010 </div>
Akronc1457bf2015-06-11 19:24:00 +020011
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000012 <!-- Search in the following virtual collection -->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000013 <div id="vc-view"></div>
Akronc1457bf2015-06-11 19:24:00 +020014 <%= loc 'in' %>
Akron179c8ac2015-06-30 19:30:50 +020015 %# TODO: Create 'align' parameter
Akronc1457bf2015-06-11 19:24:00 +020016 %= text_field 'collection', id => 'collection'
Akron9cc3eaf2015-06-10 22:15:52 +020017
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000018 <%= loc 'with' %>
19 <span class="select">
Akronef351fa2017-11-22 19:44:50 +010020 %= 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 +000021 </span>
22 <div class="button right">
23 % param(cutoff => 1) unless param 'q';
24 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
Akrone9e5e832019-04-02 14:56:23 +020025 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span id="glimpse"></span><%= loc('glimpse') %></label>
Akron6a535d42015-08-26 20:16:58 +020026 <%= 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 +000027 </div>
Akron1120a582017-10-17 12:29:16 +020028 <div class="clear"></div>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000029 </form>
30</header>