blob: e363989afb234a824297c5a0ed63d12d64040d63 [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' %>
Akron179c8ac2015-06-30 19:30:50 +020019 %# TODO: Create 'align' parameter
20 %# TODO: Create 'show' parameter with comma separated list
21 %= hidden_field 'cs' => stash('cs'), id => 'collection-show'
22 %= hidden_field 'collection-name' => stash('collection-name'), id => 'collection-name'
Akronc1457bf2015-06-11 19:24:00 +020023 %= text_field 'collection', id => 'collection'
Akron9cc3eaf2015-06-10 22:15:52 +020024
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000025 <%= loc 'with' %>
26 <span class="select">
27 %= select_field 'ql', [[Poliqarp => 'poliqarp'], ['Cosmas II' => 'cosmas2'], ['Annis' => 'annis'], ['CQL v1.2' => 'cql']], id => 'ql-field'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000028 </span>
29 <div class="button right">
30 % param(cutoff => 1) unless param 'q';
31 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
Akron229bd412015-05-28 19:01:19 +020032 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span></span><%= loc('glimpse') %></label>
Nils Diewaldac62a5d2015-05-08 00:09:08 +000033 <%= 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 +000034 </div>
35 </form>
36</header>