Bug 10021: Remove notify columns in circ/branchoverdues.tt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / searchresultlist.tt
1 [% PROCESS 'authorities-search-results.inc' %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Authorities &rsaquo; Authority search results</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript">
6 //<![CDATA[
7
8 function confirm_deletion(id) {
9     var is_confirmed = confirm(_("Are you sure you want to delete this authority?"));
10     if (is_confirmed) {
11       window.location="authorities-home.pl?op=delete"
12           + "&authid=" + id
13           + "&type=intranet"
14           + "&authtypecode=[% authtypecode %]"
15           + "&marclist=[% marclist %]"
16           + "&and_or=[% and_or %]"
17           + "&excluding=[% excluding %]"
18           + "&operator=[% operator %]"
19           + "&orderby=[% orderby %]"
20           + "&value=[% value |url %]"
21           + "&startfrom=[% startfrom %]"
22           + "&resultsperpage=[% resultsperpage %]"
23           + "&csrf_token=[% csrf_token %]";
24     }
25 }
26
27 function Help() {
28     newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
29 }
30
31 function addauthority() {
32     X = document.forms[0].authtype.value;
33     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
34 }
35 function searchauthority() {
36     X = document.forms[0].authtype2.value;
37     Y = document.forms[0].value.value;
38     window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
39 }
40 //]]>
41 </script>
42 [% INCLUDE 'authorities_js.inc' %]
43 </head>
44 <body id="auth_searchresultlist" class="auth">
45 [% INCLUDE 'header.inc' %]
46 [% INCLUDE 'authorities-search.inc' %]
47
48 <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>
49
50 <div id="doc" class="yui-t7">
51    
52    <div id="bd">
53     <div id="yui-main">
54     <div class="yui-g">
55     
56     [% INCLUDE 'authorities-toolbar.inc' %]
57 <h1>Authority search results</h1>
58
59 <div id="merge_in_progress"></div>
60 [% IF ( total ) %]
61 <div class="pages">[% pagination_bar %]</div>
62
63 <p id="authorities_searchresultlist_current_page_info">
64   Results [% from %] to [% to %] of [% total %]
65 </p>
66
67 <div id="authorities_searchresultlist_results">
68   <table>
69       <tr>
70         <th colspan="2">Summary</th>
71         [% UNLESS ( isEDITORS ) %]
72           <th>Used in</th>
73         [% END %]
74         [% IF ( CAN_user_editauthorities ) %]
75           <th>&nbsp;</th>
76         [% END %]
77       </tr>
78     [% FOREACH resul IN result %]
79     <tr data-authid="[% resul.authid %]">
80       <td>[% PROCESS authresult summary=resul.summary %]</td>
81       <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
82     [% UNLESS ( resul.isEDITORS ) %]
83       <td>
84       [% IF resul.used > 0 %]
85           <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>
86       [% ELSE %]
87           0 records
88       [% END %]
89       </td>
90     [% END %]
91     [% IF ( CAN_user_editauthorities ) %]
92       <td>
93       <div class="dropdown">
94         <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid %]" role="button" data-toggle="dropdown" href="#">
95         Actions <b class="caret"></b></a>
96         <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid %]">
97           <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit</a></li>
98           <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
99           [% UNLESS ( resul.used ) %]
100             <li><a onclick='return confirm_deletion("[% resul.authid %]")'><i class="fa fa-trash"></i> Delete</a></li>
101           [% END %]
102         </ul>
103       </div>
104       </td>
105     [% END %]
106     </tr>
107     [% END %]
108   </table>
109 </div>
110
111 <div class="pages">[% pagination_bar %]</div>
112
113 [% ELSE %]
114   No results found
115 [% END %]
116 </div>
117 </div>
118 </div>
119 [% INCLUDE 'intranet-bottom.inc' %]