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