ea165055942e3dec064ce671ef06a1c4ce218fb2
[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"
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     }
24 }
25 function Help() {
26     newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
27 }
28
29 function addauthority() {
30     X = document.forms[0].authtype.value;
31     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
32 }
33 function searchauthority() {
34     X = document.forms[0].authtype2.value;
35     Y = document.forms[0].value.value;
36     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";
37 }
38 //]]>
39 </script>
40 </head>
41 <body id="auth_searchresultlist" class="auth">
42 [% INCLUDE 'header.inc' %]
43 [% INCLUDE 'authorities-search.inc' %]
44
45 <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>
46
47 <div id="doc" class="yui-t7">
48    
49    <div id="bd">
50     <div id="yui-main">
51     <div class="yui-g">
52     
53     [% INCLUDE 'authorities-toolbar.inc' %]
54 <h1>Authority search results</h1>
55
56 [% IF ( total ) %]
57 <div class="pages">[% pagination_bar %]</div>
58
59 <p id="authorities_searchresultlist_current_page_info">
60   Results [% from %] to [% to %] of [% total %]
61 </p>
62
63 <div id="authorities_searchresultlist_results">
64   <table>
65     <tr>
66       <th colspan="2">Summary</th>
67 [% UNLESS ( isEDITORS ) %]
68       <th>Used in</th>
69 [% END %]
70     [% IF ( CAN_user_editauthorities ) %]
71       <th>&nbsp;</th>
72     [% END %]
73     </tr>
74 [% FOREACH resul IN result %]
75     [% UNLESS ( loop.odd ) %]
76     <tr class="highlight">
77     [% ELSE %]
78     <tr>
79     [% END %]
80       <td>[% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=" %]</td>
81       <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
82   [% UNLESS ( resul.isEDITORS ) %]
83       <td>
84         <a href="../catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid %]" class="button">[% resul.used %] records(s)</a>
85       </td>
86   [% END %]
87       [% IF ( CAN_user_editauthorities ) %]
88           <td>
89               <a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]">Edit</a>
90               [% UNLESS ( resul.used ) %]
91                    | <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
92               [% END %]
93           </td>
94       [% END %]
95     </tr>
96 [% END %]
97   </table>
98 </div>
99
100 <div class="paginationBar">[% pagination_bar %]</div>
101
102 [% ELSE %]
103   No results found
104 [% END %]
105 </div>
106 </div>
107 </div>
108 [% INCLUDE 'intranet-bottom.inc' %]