Bug 10691: use authority ID in see-also links in authority search results (staff)
[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
15 function doauth(authid, index, repet)
16 {
17 [% IF source == 'auth' %]
18     var e = document.getElementById("relationship");
19     var relationship = e.options[e.selectedIndex].value;
20
21     jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
22 [% ELSE %]
23     jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
24 [% END %]
25 }
26 </script>
27 </head>
28 <body id="auth_searchresultlist_auth" class="auth">
29 <div id="custom-doc" class="yui-t7">
30
31    <div id="bd">
32            <div id="yui-main">
33                    <div class="yui-b"><div class="yui-g">
34
35         <h1>Authority search results</h1>
36         [% INCLUDE 'auth-finder-search.inc' %]
37         [% IF ( total ) %]<div id="resultnumber">
38             [% IF ( displayprev ) %]
39                     <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 %]">
40                         &lt;&lt;
41                     </a>
42                 [% END %]
43                 [% FOREACH number IN numbers %]
44                     [% IF ( number.highlight ) %]
45                         [% number.number %]
46                     [% ELSE %]
47                         <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 %]">
48                             [% number.number %]</a>
49                     [% END %]
50                 [% END %]
51                 [% IF ( displaynext ) %]
52                     <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 %]">
53                         &gt;&gt;</a>
54                 [% END %]
55             <div>
56                 
57                     <p><b>Results [% from %] to [% to %] of [% total %]</b></p>
58                 [% ELSE %]
59                     
60                 
61             </div><p>No results found</p>[% END %]
62         </div>
63         [% IF ( result ) %]<div id="resultlist">
64             <table>
65                 <tr>
66                     <th>Summary</th>
67                     <th>Used</th>
68                     <th>Get it!</th>
69                     <th>Other action</th>
70                 </tr>
71                 [% FOREACH resul IN result %]
72                     <tr>
73                         <td>[% PROCESS authresult summary=resul.summary %]</td>
74                         <td>[% resul.used %] times</td>
75                         <td>
76                           [% IF resul.repets %]
77                             [% FOREACH repet IN resul.repets %]
78                             <a href="javascript:doauth('[% resul.authid %]', '[% repet.index %]', '[% repet.repet %]')" title="[% repet.value %]">[% repet.repet %]</a>
79                             [% END %]
80                           [% ELSE %]
81                             <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '')">choose</a>
82                           [% END %]
83                         </td>
84                         <td><a href="authorities.pl?authid=[% resul.authid %]">Edit authority</a></td>
85                     </tr>
86                 [% END %]
87             </table>
88     
89         </div>
90         <div id="resultnumber">
91             [% IF ( displayprev ) %]
92                     <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 %]">
93                         &lt;&lt;
94                     </a>
95                 [% END %]
96                 [% FOREACH number IN numbers %]
97                     [% IF ( number.highlight ) %]
98                         [% number.number %]
99                     [% ELSE %]
100                         <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 %]">
101                             [% number.number %]</a>
102                     [% END %]
103                 [% END %]
104                 [% IF ( displaynext ) %]
105                     <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 %]">
106                         &gt;&gt;</a>
107                 [% END %]
108         </div>[% END %]
109 </div>
110 </div>
111 </div>
112 </div>
113 </div>
114 [% INCLUDE 'popup-bottom.inc' %]