memberentryC.tmpl:add test to modify link name
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / authorities / searchresultlist.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 Koha -- Authorities -- Search result list 
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- TMPL_INCLUDE NAME="menus.inc" -->
6 <!-- TMPL_INCLUDE NAME="menu-authorities.inc" -->
7
8 <h1 class="authority">Authority search results</h1>
9
10 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
11
12 <p id="authorities_searchresultlist_current_page_info">
13 <!-- TMPL_IF name="total" -->
14   Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" -->
15 <!-- TMPL_ELSE -->
16   No results found.
17 <!-- /TMPL_IF -->
18 </p>
19
20 <div id="authorities_searchresultlist_results">
21   <table>
22     <tr>
23       <th>Summary</th>
24 <!-- TMPL_UNLESS name="isEDITORS" -->
25       <th>Used in</th>
26 <!-- /TMPL_UNLESS -->
27       <th>View</th>
28       <th>Delete</th>
29     </tr>
30 <!-- TMPL_LOOP NAME="result" -->
31     <tr>
32       <td><!-- TMPL_VAR NAME="summary" --></td>
33   <!-- TMPL_UNLESS name="isEDITORS" -->
34       <td>
35         <a href="../search.marc/search.pl?type=intranet&amp;op=do_search&amp;marclist=<!-- TMPL_VAR NAME="biblio_fields" -->&amp;operator==&amp;value=<!-- TMPL_VAR NAME="authid" -->&amp;and_or=and&amp;excluding=" class="button authority"><!-- TMPL_VAR NAME="used" --> biblio(s)</a>
36       </td>
37   <!-- /TMPL_UNLESS -->
38       <td>
39         <a href="detail.pl?authid=<!-- TMPL_VAR NAME="authid" -->">Authority number <!-- TMPL_VAR NAME="authid" --></a>
40       </td>
41       <td>
42   <!-- TMPL_UNLESS name="used" -->
43         <a href="javascript:confirm_deletion(<!-- TMPL_VAR NAME="authid" -->)">Delete</a>
44   <!-- /TMPL_UNLESS -->
45       </td>
46     </tr>
47 <!-- /TMPL_LOOP -->
48   </table>
49 </div>
50
51 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
52
53 <script language="JavaScript" type="text/javascript" >
54
55 function confirm_deletion(id) {
56         
57         var is_confirmed = confirm('Are you sure you want to delete this authority?');
58         if (is_confirmed) {
59                 window.location="authorities-home.pl?op=delete&amp;authid="+id;
60         }
61 }
62 </script>
63
64 <!-- TMPL_INCLUDE name="intranet-bottom.inc" -->