Bug 13464 - Standardize the pagination class
[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     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"
11           + "&authid=" + id
12           + "&type=intranet"
13           + "&authtypecode=[% authtypecode %]"
14           + "&marclist=[% marclist %]"
15           + "&and_or=[% and_or %]"
16           + "&excluding=[% excluding %]"
17           + "&operator=[% operator %]"
18           + "&orderby=[% orderby %]"
19           + "&value=[% value |url %]"
20           + "&startfrom=[% startfrom %]"
21           + "&resultsperpage=[% resultsperpage %]";
22     }
23 }
24 function Help() {
25     newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
26 }
27
28 function addauthority() {
29     X = document.forms[0].authtype.value;
30     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
31 }
32 function searchauthority() {
33     X = document.forms[0].authtype2.value;
34     Y = document.forms[0].value.value;
35     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";
36 }
37
38 //]]>
39 </script>
40 [% INCLUDE 'authorities_js.inc' %]
41 </head>
42 <body id="auth_searchresultlist" class="auth">
43 [% INCLUDE 'header.inc' %]
44 [% INCLUDE 'authorities-search.inc' %]
45
46 <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>
47
48 <div id="doc" class="yui-t7">
49    
50    <div id="bd">
51     <div id="yui-main">
52     <div class="yui-g">
53     
54     [% INCLUDE 'authorities-toolbar.inc' %]
55 <h1>Authority search results</h1>
56
57 <div id="merge_in_progress"></div>
58 [% IF ( total ) %]
59 <div class="pages">[% pagination_bar %]</div>
60
61 <p id="authorities_searchresultlist_current_page_info">
62   Results [% from %] to [% to %] of [% total %]
63 </p>
64
65 <div id="authorities_searchresultlist_results">
66   <table>
67     <tr>
68       <th colspan="2">Summary</th>
69 [% UNLESS ( isEDITORS ) %]
70       <th>Used in</th>
71 [% END %]
72     [% IF ( CAN_user_editauthorities ) %]
73       <th>&nbsp;</th>
74     [% END %]
75     </tr>
76 [% FOREACH resul IN result %]
77     <tr data-authid="[% resul.authid %]">
78       <td>[% PROCESS authresult summary=resul.summary %]</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 %] records(s)</a>
83       </td>
84   [% END %]
85       [% IF ( CAN_user_editauthorities ) %]
86           <td>
87               <a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]">Edit</a>
88               | <a class="merge_auth" href="#merge">Merge</a>
89               [% UNLESS ( resul.used ) %]
90                    | <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
91               [% END %]
92           </td>
93       [% END %]
94     </tr>
95 [% END %]
96   </table>
97 </div>
98
99 <div class="pages">[% pagination_bar %]</div>
100
101 [% ELSE %]
102   No results found
103 [% END %]
104 </div>
105 </div>
106 </div>
107 [% INCLUDE 'intranet-bottom.inc' %]