Merge remote-tracking branch 'origin/new/bug_7818'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / searchresultlist-auth.tt
1 [% PROCESS 'authorities-search-results.inc' %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Cataloging authority plugin</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <style type="text/css">
6 #custom-doc { width:51.46em;*width:50.17em;min-width:675px; margin:auto; text-align:left; } 
7 </style>
8 <script type="text/javascript">
9
10 function jumpfull(page)
11 {       
12     window.open(page,'','fullscreen,scrollbars');
13 }
14 </script>
15 </head>
16 <body id="auth_searchresultlist_auth" class="auth">
17 <div id="custom-doc" class="yui-t7">
18
19    <div id="bd">
20            <div id="yui-main">
21                    <div class="yui-b"><div class="yui-g">
22
23         <h1>Authority search results</h1>
24         [% INCLUDE 'auth-finder-search.inc' %]
25         [% IF ( total ) %]<div id="resultnumber">
26             [% IF ( displayprev ) %]
27                     <a href="auth_finder.pl?startfrom=[% startfromprev %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
28                         &lt;&lt;
29                     </a>
30                 [% END %]
31                 [% FOREACH number IN numbers %]
32                     [% IF ( number.highlight ) %]
33                         [% number.number %]
34                     [% ELSE %]
35                         <a href="auth_finder.pl?startfrom=[% number.startfrom %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN number.searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
36                             [% number.number %]</a>
37                     [% END %]
38                 [% END %]
39                 [% IF ( displaynext ) %]
40                     <a href="auth_finder.pl?startfrom=[% startfromnext %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
41                         &gt;&gt;</a>
42                 [% END %]
43             <div>
44                 
45                     <p><b>Results [% from %] to [% to %] of [% total %]</b></p>
46                 [% ELSE %]
47                     
48                 
49             </div><p>No results found</p>[% END %]
50         </div>
51         [% IF ( result ) %]<div id="resultlist">
52             <table>
53                 <tr>
54                     <th>Summary</th>
55                     <th>Used</th>
56                     <th>Get it!</th>
57                     <th>Other action</th>
58                 </tr>
59                 <tr>
60                     <td>&nbsp;</td>
61                     <td>&nbsp;</td>
62                     <td>
63                         <a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=0&amp;index=[% index %]')" class="button">
64                             Clear
65                         </a>
66                     </td>
67                     <td>&nbsp;</td>
68                 </tr>
69                 [% FOREACH resul IN result %]
70                     <tr>
71                         <td>[% PROCESS authresult summary=resul.summary %]</td>
72                         <td>[% resul.used %] times</td>
73                         <td>
74                           [% IF resul.repets %]
75                             [% FOREACH repet IN resul.repets %]
76                             <a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=[% resul.authid %]&amp;index=[% repet.index %]&amps;repet=[% repet.repet %]')" title="[% repet.value %]">[% repet.repet %]</a>
77                             [% END %]
78                           [% ELSE %]
79                             <a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=[% resul.authid %]&amp;index=[% index %]')">choose</a>
80                           [% END %]
81                         </td>
82                         <td><a href="authorities.pl?authid=[% resul.authid %]">Edit authority</a></td>
83                     </tr>
84                 [% END %]
85             </table>
86     
87         </div>
88         <div id="resultnumber">
89             [% IF ( displayprev ) %]
90                     <a href="auth_finder.pl?startfrom=[% startfromprev %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranetamp;&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
91                         &lt;&lt;
92                     </a>
93                 [% END %]
94                 [% FOREACH number IN numbers %]
95                     [% IF ( number.highlight ) %]
96                         [% number.number %]
97                     [% ELSE %]
98                         <a href="auth_finder.pl?startfrom=[% number.startfrom %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN number.searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
99                             [% number.number %]</a>
100                     [% END %]
101                 [% END %]
102                 [% IF ( displaynext ) %]
103                     <a href="auth_finder.pl?startfrom=[% startfromnext %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
104                         &gt;&gt;</a>
105                 [% END %]
106         </div>[% END %]
107 </div>
108 </div>
109 </div>
110 </div>
111 </div>
112 [% INCLUDE 'popup-bottom.inc' %]