Bug 24224: Convert OpacNavBottom system preference to additional content
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-authorities-home.tt
1 [% USE Koha %]
2 [% USE AdditionalContents %]
3 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
4 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Authority search &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
9 </head>
10 [% INCLUDE 'bodytag.inc' bodyid='opac-authorities' bodyclass='scrollto' %]
11 [% INCLUDE 'masthead.inc' %]
12
13     <div class="main">
14         <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
15             <ol class="breadcrumb">
16                 <li class="breadcrumb-item">
17                     <a href="/cgi-bin/koha/opac-main.pl">Home</a>
18                 </li>
19                 <li class="breadcrumb-item active">
20                     <a href="#" aria-current="page">Authority search</a>
21                 </li>
22             </ol>
23         </nav> <!-- /#breadcrumbs -->
24
25         <div class="container-fluid">
26             <div class="row">
27                 [% IF ( OpacNav || OpacNavBottom ) %]
28                     <div class="col-lg-2">
29                         <div id="navigation">
30                             [% INCLUDE 'navigation.inc' %]
31                         </div>
32                     </div>
33                     <div class="col-10 order-first order-md-first order-lg-2">
34                 [% ELSE %]
35                     <div class="col order-first order-md-first order-lg-2">
36                 [% END %]
37                     <div id="userauthhome" class="maincontent">
38                         <form name="f" action="/cgi-bin/koha/opac-authorities-home.pl" method="get">
39                             <input type="hidden" name="op" value="do_search" />
40                             <input type="hidden" name="type" value="opac" />
41                             <fieldset class="rows">
42                                 <legend><h1>Authority search</h1></legend>
43                                 <ol>
44                                     <li>
45                                         <label for="authtypecode">Authority type: </label>
46                                         <select name="authtypecode" id="authtypecode">
47                                             [% FOREACH authority_type IN authority_types %]
48                                                 [% IF authority_type.authtypecode == authtypecode %]
49                                                     <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
50                                                 [% ELSE %]
51                                                     <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
52                                                 [% END %]
53                                             [% END %]
54                                         </select>
55                                     </li>
56                                     <li>
57                                         <label for="anywhere">Search options:</label>
58                                         <select name="operator" id="anywhere">
59                                             <option value="contains">contains</option>
60                                             <option value="start">starts with</option>
61                                             <option value="exact">is exactly</option>
62                                         </select>
63                                     </li>
64                                     <li>
65                                         <label for="value">Term(s):</label>
66                                         <input type="text" name="value" id="value" value="[% value | html %]" />
67                                     </li>
68                                     <li>
69                                         <label for="marclist">Where:</label>
70                                         <select name="marclist" id="marclist">
71                                             <option value="all" selected="selected">in the complete record</option>
72                                             <option value="match">in any heading</option>
73                                             <option value="mainentry">in main entry</option>
74                                         </select>
75                                     </li>
76                                     <li>
77                                         <input type="hidden" name="and_or" value="and" />
78                                         <input type="hidden" name="excluding" value="" />
79                                         <label for="orderby">Order by: </label>
80                                         <select name="orderby" id="orderby">
81                                             <option value="">None</option>
82                                             <option value="HeadingAsc" selected="selected">Heading ascendant</option>
83                                             <option value="HeadingDsc">Heading descendant</option>
84                                         </select>
85                                     </li>
86                                 </ol>
87                             </fieldset>
88                             <fieldset class="action">
89                                 <input type="submit" value="Submit" class="btn btn-primary" />
90                             </fieldset>
91                         </form>
92                     </div> <!-- / #userauthhome -->
93                 </div> <!-- / .col-lg-10/12 -->
94             </div> <!-- / .row -->
95         </div> <!-- / .container-fluid -->
96     </div> <!-- / .main -->
97
98 [% INCLUDE 'opac-bottom.inc' %]
99 [% BLOCK jsinclude %][% END %]