Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance...
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-authoritiessearchresultlist.tt
1 [% USE Koha %]
2 [% PROCESS 'opac-authorities.inc' %]
3 [% PROCESS 'authorities-search-results.inc' %]
4 [% pagination = BLOCK %]
5     <div class="pagination">
6         <ul>
7             [% IF ( displayprev ) %]
8                 <li>
9                     <a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage |html %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby|html %]">
10                         &laquo;
11                     </a>
12                 </li>
13             [% END %]
14             [% FOREACH number IN numbers %]
15                 [% IF ( number.highlight ) %]
16                     <li class="active"><a href="#">[% number.number %]</a></li>
17                 [% ELSE %]
18                     <li><a href="opac-authorities-home.pl?startfrom=[% number.startfrom %]&amp;[% FOREACH searchdat IN number.searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage |html %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby|html %]">[% number.number %]</a></li>
19                 [% END %]
20             [% END %]
21             [% IF ( displaynext ) %]
22                 <li>
23                     <a href="opac-authorities-home.pl?startfrom=[% startfromnext %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]&amp;resultsperpage=[% resultsperpage |html %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby|html %]">&raquo;</a>
24                 </li>
25             [% END %]
26         </ul>
27     </div> <!-- / #pages -->
28 [% END %]
29 [% INCLUDE 'doc-head-open.inc' %]
30 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; [% IF ( total ) %]Authority search result[% ELSE %]No results found[% END %]</title>
31 [% INCLUDE 'doc-head-close.inc' %]
32 [% BLOCK cssinclude %][% END %]
33 </head>
34 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesresultlist' bodyclass='scrollto' %]
35 [% INCLUDE 'masthead.inc' %]
36
37     <div class="main">
38         <ul class="breadcrumb">
39             <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
40             <li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a> <span class="divider">&rsaquo;</span></li>
41             <li><a href="#">Results</a></li>
42         </ul>
43
44         <div class="container-fluid">
45             <div class="row-fluid">
46                 [% IF ( OpacNav || OpacNavBottom ) %]
47                     <div class="span2">
48                         <div id="navigation">
49                             [% INCLUDE 'navigation.inc' %]
50                         </div>
51                     </div>
52                     <div class="span10">
53                 [% ELSE %]
54                     <div class="span12">
55                 [% END %]
56                     <div id="userauthsearchresults" class="maincontent">
57                         <h1>Authority search results</h1>
58
59                         [% pagination %]
60
61                         <div id="results">
62                             [% IF ( total ) %]
63                                 [% IF ( countfuzzy ) %]
64                                     <b>Showing [% resultcount %] of about [% total %] results</b>
65                                 [% ELSE %]
66                                     <b>Results [% from %] to [% to %] of [% total %]</b>
67                                 [% END %]
68                             [% ELSE %]
69                                 No results found.
70                             [% END %]
71                         </div>
72
73                         [% IF ( total ) %]
74                             <div class="searchresults">
75                                 <table class="table table-bordered table-striped">
76                                     <thead>
77                                         <tr>
78                                             <th>Authorized headings</th>
79                                             <th>Type of heading</th>
80                                             [% UNLESS ( isEDITORS ) %]
81                                                 <th>Biblio records</th>
82                                             [% END %]
83                                             <th>Full heading</th>
84                                         </tr>
85                                     </thead>
86                                     <tbody>
87                                         [% FOREACH resul IN result %]
88                                             <tr>
89                                                 <td>[% PROCESS authresult summary=resul.summary %]</td>
90                                                 <td>[% resul.authtype %]</td>
91                                                 [% UNLESS ( resul.isEDITORS ) %]
92                                                     <td>
93                                                          <a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid %]">[% resul.used %] biblios</a>
94                                                     </td>
95                                                 [% END %]
96                                                 <td>
97                                                     <a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View full heading</a>
98                                                 </td>
99                                             </tr>
100                                         [% END %]
101                                     </tbody>
102                                 </table>
103                             </div> <!-- / .searchresults -->
104
105                             [% pagination %]
106
107                         [% END # / IF total %]
108                     </div> <!-- / #userauthsearchresults -->
109                 </div> <!-- / .span10/12 -->
110             </div> <!-- / .row-fluid -->
111         </div> <!-- / .container-fluid -->
112     </div> <!-- / .main -->
113
114 [% INCLUDE 'opac-bottom.inc' %]
115 [% BLOCK jsinclude %][% END %]