SIGNED-OFF Bug 7590 Cataloging authorities search result page is broken
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / searchresultlist.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Authorities &rsaquo; Authority search results</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" >
5 //<![CDATA[
6 function confirm_deletion(id) {
7     
8     var is_confirmed = confirm('Are you sure you want to delete this authority?');
9     if (is_confirmed) {
10         window.location="authorities-home.pl?op=delete&amp;authid="+id;
11     }
12 }
13 function Help() {
14     newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
15 }
16
17 function addauthority() {
18     X = document.forms[0].authtype.value;
19     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
20 }
21 function searchauthority() {
22     X = document.forms[0].authtype2.value;
23     Y = document.forms[0].value.value;
24     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";
25 }
26 //]]>
27 </script>
28 </head>
29 <body>
30 [% INCLUDE 'header.inc' %]
31 [% INCLUDE 'authorities-search.inc' %]
32
33 <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>
34
35 <div id="doc" class="yui-t7">
36    
37    <div id="bd">
38     <div id="yui-main">
39     <div class="yui-g">
40     
41     [% INCLUDE 'authorities-toolbar.inc' %]
42 <h1>Authority search results</h1>
43
44 [% IF ( total ) %]
45 <div class="pages">[% pagination_bar %]</div>
46
47 <p id="authorities_searchresultlist_current_page_info">
48   Results [% from %] to [% to %] of [% total %]
49 </p>
50
51 <div id="authorities_searchresultlist_results">
52   <table>
53     <tr>
54       <th colspan="2">Summary</th>
55 [% UNLESS ( isEDITORS ) %]
56       <th>Used in</th>
57 [% END %]
58       <th>Delete</th>
59     </tr>
60 [% FOREACH resul IN result %]
61     [% UNLESS ( loop.odd ) %]
62     <tr class="highlight">
63     [% ELSE %]
64     <tr>
65     [% END %]
66       <td>[% resul.summary %]</td>
67       <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
68   [% UNLESS ( resul.isEDITORS ) %]
69       <td>
70         <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>
71       </td>
72   [% END %]
73       <td>
74   [% UNLESS ( resul.used ) %]
75         <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
76   [% END %]
77       </td>
78     </tr>
79 [% END %]
80   </table>
81 </div>
82
83 <div class="paginationBar">[% pagination_bar %]</div>
84
85 [% ELSE %]
86   No results found
87 [% END %]
88 </div>
89 </div>
90 </div>
91 [% INCLUDE 'intranet-bottom.inc' %]