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