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