Bug 30874: Remove category_type
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / svc / suggestion.tt
1 [% USE Koha %]
2 [% USE AdditionalContents %]
3 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
4 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5 [% IF (render=='standalone') %]
6     [% INCLUDE 'doc-head-open.inc' %]
7     <title>Search suggestions</title>
8     [% INCLUDE 'doc-head-close.inc' %]
9     [% BLOCK cssinclude %][% END %]
10     </head>
11     <body id="opac-suggestion" class="opac">
12     [% INCLUDE 'masthead.inc' %]
13
14     <div class="main">
15         <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
16             <ol class="breadcrumb">
17                 <li class="breadcrumb-item">
18                     <a href="/cgi-bin/koha/opac-main.pl">Home</a>
19                 </li>
20                 <li class="breadcrumb-item active">
21                     <a href="#" aria-current="page">Search suggestions</a>
22                 </li>
23             </ol>
24         </nav> <!-- /#breadcrumbs -->
25
26         <div class="container-fluid">
27             <div class="row">
28                 [% IF ( OpacNav || OpacNavBottom ) %]
29                     <div class="col-lg-2">
30                         <div id="navigation">
31                             [% INCLUDE 'navigation.inc' %]
32                         </div>
33                     </div>
34                     <div class="col-10 order-first order-md-first order-lg-2">
35                 [% ELSE %]
36                     <div class="col order-first order-md-first order-lg-2">
37                 [% END %]
38                    <div id="searchsuggestions">
39             <h1 class="title">Suggestions</h1>
40 [% END %]
41
42 [% IF suggestions && suggestions.size %]
43     <div>
44         <span class="suggestionlabel">Did you mean:</span>
45         [% FOREACH suggestion IN suggestions %]
46             <span class="searchsuggestion"><a href="/cgi-bin/koha/opac-search.pl?q=[% suggestion.search |uri %]">[% suggestion.label | html %]</a></span>
47         [% END %]
48     </div>
49 [% ELSE %]
50     <span class="nosuggestions">Sorry, no suggestions.</span>
51 [% END %]
52
53 [% IF (render=='standalone') %]
54                     </div> <!-- / #searchsuggestions -->
55                 </div> <!-- / .span10/12 -->
56             </div> <!-- / .row -->
57         </div> <!-- / .container-fluid -->
58     </div> <!-- / .main -->
59     [% INCLUDE 'opac-bottom.inc' %]
60     [% BLOCK jsinclude %][% END %]
61 [% END %]