Bug 8208 follow-up: move Clear and Create new buttons out of results
[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 function confirm_deletion(id) {
8     
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&amp;authid="+id;
12     }
13 }
14 function Help() {
15     newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
16 }
17
18 function addauthority() {
19     X = document.forms[0].authtype.value;
20     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
21 }
22 function searchauthority() {
23     X = document.forms[0].authtype2.value;
24     Y = document.forms[0].value.value;
25     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";
26 }
27 //]]>
28 </script>
29 </head>
30 <body id="auth_searchresultlist" class="auth">
31 [% INCLUDE 'header.inc' %]
32 [% INCLUDE 'authorities-search.inc' %]
33
34 <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>
35
36 <div id="doc" class="yui-t7">
37    
38    <div id="bd">
39     <div id="yui-main">
40     <div class="yui-g">
41     
42     [% INCLUDE 'authorities-toolbar.inc' %]
43 <h1>Authority search results</h1>
44
45 [% IF ( total ) %]
46 <div class="pages">[% pagination_bar %]</div>
47
48 <p id="authorities_searchresultlist_current_page_info">
49   Results [% from %] to [% to %] of [% total %]
50 </p>
51
52 <div id="authorities_searchresultlist_results">
53   <table>
54     <tr>
55       <th colspan="2">Summary</th>
56 [% UNLESS ( isEDITORS ) %]
57       <th>Used in</th>
58 [% END %]
59       <th>Delete</th>
60     </tr>
61 [% FOREACH resul IN result %]
62     [% UNLESS ( loop.odd ) %]
63     <tr class="highlight">
64     [% ELSE %]
65     <tr>
66     [% END %]
67       <td>[% PROCESS authresult summary=resul.summary %]</td>
68       <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
69   [% UNLESS ( resul.isEDITORS ) %]
70       <td>
71         <a href="../catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid %]" class="button">[% resul.used %] biblio(s)</a>
72       </td>
73   [% END %]
74       <td>
75   [% UNLESS ( resul.used ) %]
76         <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
77   [% END %]
78       </td>
79     </tr>
80 [% END %]
81   </table>
82 </div>
83
84 <div class="paginationBar">[% pagination_bar %]</div>
85
86 [% ELSE %]
87   No results found
88 [% END %]
89 </div>
90 </div>
91 </div>
92 [% INCLUDE 'intranet-bottom.inc' %]