Bug 19983: Switch single-column templates to Bootstrap grid: Authorities
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / searchresultlist.tt
1 [% SET footerjs = 1 %]
2 [% PROCESS 'authorities-search-results.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Authorities &rsaquo; Authority search results</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7
8 <body id="auth_searchresultlist" class="auth">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'authorities-search.inc' %]
11
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> &rsaquo; Authority search results</div>
13
14 <div class="main container-fluid">
15     <div class="row">
16         <div class="col-md-8 col-md-offset-2">
17
18     [% INCLUDE 'authorities-toolbar.inc' %]
19 <h1>Authority search results</h1>
20
21 <div id="merge_in_progress"></div>
22 [% IF ( total ) %]
23 <div class="pages">[% pagination_bar %]</div>
24
25 <p id="authorities_searchresultlist_current_page_info">
26   Results [% from %] to [% to %] of [% total %]
27 </p>
28
29 <div id="authorities_searchresultlist_results">
30   <table>
31       <tr>
32         <th colspan="2">Summary</th>
33         [% UNLESS ( isEDITORS ) %]
34           <th>Used in</th>
35         [% END %]
36         [% IF ( CAN_user_editauthorities ) %]
37           <th>&nbsp;</th>
38         [% END %]
39       </tr>
40     [% FOREACH resul IN result %]
41     <tr data-authid="[% resul.authid %]">
42       <td>[% PROCESS authresult summary=resul.summary %]</td>
43       <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
44     [% UNLESS ( resul.isEDITORS ) %]
45       <td>
46       [% IF resul.used > 0 %]
47           <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid %]" class="button">[% resul.used %] record(s)</a>
48       [% ELSE %]
49           0 records
50       [% END %]
51       </td>
52     [% END %]
53     [% IF ( CAN_user_editauthorities ) %]
54       <td>
55       <div class="dropdown">
56         <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid %]" role="button" data-toggle="dropdown" href="#">
57         Actions <b class="caret"></b></a>
58         <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid %]">
59           <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit</a></li>
60           <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
61           [% UNLESS ( resul.used ) %]
62             <li><a onclick='return confirm_deletion("[% resul.authid %]")'><i class="fa fa-trash"></i> Delete</a></li>
63           [% END %]
64         </ul>
65       </div>
66       </td>
67     [% END %]
68     </tr>
69     [% END %]
70   </table>
71 </div>
72
73 <div class="pages">[% pagination_bar %]</div>
74
75 [% ELSE %]
76   No results found
77 [% END %]
78 </div>
79 </div>
80
81 [% MACRO jsinclude BLOCK %]
82     [% INCLUDE 'authorities_js.inc' %]
83 [% END %]
84
85 [% INCLUDE 'intranet-bottom.inc' %]