Bug 24224: Convert OpacNavBottom system preference to additional content
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-authoritiessearchresultlist.tt
1 [% USE raw %]
2 [% USE Koha %]
3 [% USE AdditionalContents %]
4 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
5 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
6 [% PROCESS 'opac-authorities.inc' %]
7 [% PROCESS 'authorities-search-results.inc' %]
8 [% BLOCK pagination %]
9     <nav class="pagination pagination-sm noprint" aria-label="Search results pagination">
10         <ul class="pagination">
11             [% IF ( displayprev ) %]
12                 <li class="page-item">
13                     <a class="page-link" href="opac-authorities-home.pl?startfrom=[% startfromprev | uri %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term | uri %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage | uri %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode | uri %]&amp;orderby=[% orderby | uri %]" aria-label="Go to the previous page">
14                         <i class="fa fa-fw fa-angle-left" aria-hidden="true"></i>  Previous
15                     </a>
16                 </li>
17             [% END %]
18             [% FOREACH number IN numbers %]
19                 [% IF ( number.highlight ) %]
20                     <li class="page-item disabled">
21                         <a class="page-link" href="#" aria-disabled="true" aria-label="Current page: Page [% number.number | html %]">[% number.number | html %]</a>
22                     </li>
23                 [% ELSE %]
24                     <li class="page-item">
25                         <a class="page-link" href="opac-authorities-home.pl?startfrom=[% number.startfrom | uri %]&amp;[% FOREACH searchdat IN number.searchdata %][% searchdat.term | uri %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage | uri %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode | uri %]&amp;orderby=[% orderby | uri %]" aria-label="Go to page [% number.number | html %]">[% number.number | html %]</a>
26                     </li>
27                 [% END %]
28             [% END %]
29             [% IF ( displaynext ) %]
30                 <li class="page-item">
31                     <a class="page-link" href="opac-authorities-home.pl?startfrom=[% startfromnext | uri %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term | uri %]=[% searchdat.val |url %]&amp;[% END %]&amp;resultsperpage=[% resultsperpage | uri %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode | uri %]&amp;orderby=[% orderby | uri %]" aria-label="Go to the next page">
32                         Next <i class="fa fa-fw fa-angle-double-right" aria-hidden="true"></i>
33                     </a>
34                 </li>
35             [% END %]
36         </ul>
37     </nav> <!-- / #pages -->
38 [% END %]
39 [% INCLUDE 'doc-head-open.inc' %]
40 <title>[% IF ( total ) %]Authority search result[% ELSE %]No results found[% END %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
41 [% INCLUDE 'doc-head-close.inc' %]
42 [% BLOCK cssinclude %][% END %]
43 </head>
44 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesresultlist' bodyclass='scrollto' %]
45 [% INCLUDE 'masthead.inc' %]
46
47     <div class="main">
48         <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
49             <ol class="breadcrumb">
50                 <li class="breadcrumb-item">
51                     <a href="/cgi-bin/koha/opac-main.pl">Home</a>
52                 </li>
53                 <li class="breadcrumb-item">
54                     <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
55                 </li>
56                 <li class="breadcrumb-item active">
57                     <a href="#" aria-current="page">Results</a>
58                 </li>
59             </ol>
60         </nav> <!-- /#breadcrumbs -->
61
62         <div class="container-fluid">
63             <div class="row">
64                 [% IF ( OpacNav || OpacNavBottom ) %]
65                     <div class="col-lg-2">
66                         <div id="navigation">
67                             [% INCLUDE 'navigation.inc' %]
68                         </div>
69                     </div>
70                     <div class="col-lg-10 order-first order-md-first order-lg-2">
71                 [% ELSE %]
72                     <div class="col order-first order-md-first order-lg-2">
73                 [% END %]
74                     <div id="userauthsearchresults" class="maincontent">
75                         <h1>Authority search results</h1>
76
77                         [% IF total %]
78                             <div class="pages">[% pagination_bar | $raw %]</div>
79                         [% END %]
80                         <div id="results">
81                             [% IF ( total ) %]
82                                 [% IF ( countfuzzy ) %]
83                                     <p><strong>Showing [% resultcount | html %] of about [% total | html %] results</strong></p>
84                                 [% ELSE %]
85                                     <p><strong>Results [% from | html %] to [% to | html %] of [% total | html %]</strong></p>
86                                 [% END %]
87                             [% ELSE %]
88                                 No results found.
89                             [% END %]
90                         </div>
91
92                         [% IF ( total ) %]
93                             <div class="searchresults">
94                                 <table class="table table-bordered table-striped">
95                                     <caption class="sr-only">Authority search results</caption>
96                                     <thead>
97                                         <tr>
98                                             <th colspan="2">Authorized headings</th>
99                                             <th>Type of heading</th>
100                                             [% UNLESS ( isEDITORS ) %]
101                                                 <th>Biblio records</th>
102                                             [% END %]
103                                         </tr>
104                                     </thead>
105                                     <tbody>
106                                         [% FOREACH resul IN result %]
107                                             <tr>
108                                                 <td>[% PROCESS authresult summary=resul.summary %]</td>
109                                                 <td><a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% resul.authid | uri %]">Details</a>
110                                                 <td>[% resul.authtype | html %]</td>
111                                                 [% UNLESS ( resul.isEDITORS ) %]
112                                                     <td>
113                                                          [% IF resul.used > 0 %]<a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid | uri %]">[% resul.used | html %] biblios</a>[% ELSE %]0 biblios[% END %]
114                                                     </td>
115                                                 [% END %]
116                                             </tr>
117                                         [% END %]
118                                     </tbody>
119                                 </table>
120                             </div> <!-- / .searchresults -->
121
122                             <div class="pages">[% pagination_bar | $raw %]</div>
123
124                         [% END # / IF total %]
125                     </div> <!-- / #userauthsearchresults -->
126                 </div> <!-- / .col-lg-10/12 -->
127             </div> <!-- / .row -->
128         </div> <!-- / .container-fluid -->
129     </div> <!-- / .main -->
130
131 [% INCLUDE 'opac-bottom.inc' %]
132 [% BLOCK jsinclude %][% END %]