Bug 10860: In-House Use
[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 //]]>
40 </script>
41 [% INCLUDE 'authorities_js.inc' %]
42 </head>
43 <body id="auth_searchresultlist" class="auth">
44 [% INCLUDE 'header.inc' %]
45 [% INCLUDE 'authorities-search.inc' %]
46
47 <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>
48
49 <div id="doc" class="yui-t7">
50    
51    <div id="bd">
52     <div id="yui-main">
53     <div class="yui-g">
54     
55     [% INCLUDE 'authorities-toolbar.inc' %]
56 <h1>Authority search results</h1>
57
58 <div id="merge_in_progress"></div>
59 [% IF ( total ) %]
60 <div class="pages">[% pagination_bar %]</div>
61
62 <p id="authorities_searchresultlist_current_page_info">
63   Results [% from %] to [% to %] of [% total %]
64 </p>
65
66 <div id="authorities_searchresultlist_results">
67   <table>
68     <tr>
69       <th colspan="2">Summary</th>
70 [% UNLESS ( isEDITORS ) %]
71       <th>Used in</th>
72 [% END %]
73     [% IF ( CAN_user_editauthorities ) %]
74       <th>&nbsp;</th>
75     [% END %]
76     </tr>
77 [% FOREACH resul IN result %]
78     [% UNLESS ( loop.odd ) %]
79     <tr data-authid="[% resul.authid %]" class="highlight">
80     [% ELSE %]
81     <tr data-authid="[% resul.authid %]">
82     [% END %]
83       <td>[% PROCESS authresult summary=resul.summary %]</td>
84       <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
85   [% UNLESS ( resul.isEDITORS ) %]
86       <td>
87         <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>
88       </td>
89   [% END %]
90       [% IF ( CAN_user_editauthorities ) %]
91           <td>
92               <a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]">Edit</a>
93               | <a class="merge_auth" href="#merge">Merge</a>
94               [% UNLESS ( resul.used ) %]
95                    | <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
96               [% END %]
97           </td>
98       [% END %]
99     </tr>
100 [% END %]
101   </table>
102 </div>
103
104 <div class="paginationBar">[% pagination_bar %]</div>
105
106 [% ELSE %]
107   No results found
108 [% END %]
109 </div>
110 </div>
111 </div>
112 [% INCLUDE 'intranet-bottom.inc' %]