Bug 8692: Authorities search form does not correspond to current search query
[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       <th>Delete</th>
71     </tr>
72 [% FOREACH resul IN result %]
73     [% UNLESS ( loop.odd ) %]
74     <tr class="highlight">
75     [% ELSE %]
76     <tr>
77     [% END %]
78       <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>
79       <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
80   [% UNLESS ( resul.isEDITORS ) %]
81       <td>
82         <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>
83       </td>
84   [% END %]
85       <td>
86   [% UNLESS ( resul.used ) %]
87         <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
88   [% END %]
89       </td>
90     </tr>
91 [% END %]
92   </table>
93 </div>
94
95 <div class="paginationBar">[% pagination_bar %]</div>
96
97 [% ELSE %]
98   No results found
99 [% END %]
100 </div>
101 </div>
102 </div>
103 [% INCLUDE 'intranet-bottom.inc' %]