Bug 21208: Fix housebound deliverer/chooser names
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / searchresultlist-auth.tt
1 [% USE Asset %]
2 [% SET footerjs = 1 %]
3 [% PROCESS 'authorities-search-results.inc' %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Cataloging authority plugin</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8
9 <body id="auth_searchresultlist_auth" class="auth">
10     <div class="container-fluid">
11
12         <h1>Authority search results</h1>
13         [% INCLUDE 'auth-finder-search.inc' %]
14         [% IF ( total ) %]<div class="resultnumber">
15             [% IF ( displayprev ) %]
16                     <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 %]">
17                         &lt;&lt;
18                     </a>
19                 [% END %]
20                 [% FOREACH number IN numbers %]
21                     [% IF ( number.highlight ) %]
22                         [% number.number %]
23                     [% ELSE %]
24                         <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 %]">
25                             [% number.number %]</a>
26                     [% END %]
27                 [% END %]
28                 [% IF ( displaynext ) %]
29                     <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 %]">
30                         &gt;&gt;</a>
31                 [% END %]
32             <div>
33                 
34                     <p><b>Results [% from %] to [% to %] of [% total %]</b></p>
35                 [% ELSE %]
36                     
37                 
38             </div><p>No results found</p>[% END %]
39         </div>
40         [% IF ( result ) %]<div id="resultlist">
41             <table>
42                 <tr>
43                     <th>Summary</th>
44                     <th>Used</th>
45                     <th>Get it!</th>
46                     <th>Other action</th>
47                 </tr>
48                 [% FOREACH resul IN result %]
49                     <tr>
50                         <td>[% PROCESS authresult summary=resul.summary %]</td>
51                         <td>[% resul.used %] times</td>
52                         <td>
53                             [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
54                                 [% FOREACH authorized IN resul.summary.authorized %]
55                                     <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '[% loop.count %]')" title="[% authorized.heading | html %]">[% loop.count %]</a>
56                                 [% END %]
57                           [% ELSE %]
58                                 <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid %]', '[% index %]', '')"><i class="fa fa-plus"></i> Choose</a>
59                           [% END %]
60                         </td>
61                         <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit authority</a></td>
62                     </tr>
63                 [% END %]
64             </table>
65     
66         </div>
67         <div class="resultnumber">
68             [% IF ( displayprev ) %]
69                     <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 %]">
70                         &lt;&lt;
71                     </a>
72                 [% END %]
73                 [% FOREACH number IN numbers %]
74                     [% IF ( number.highlight ) %]
75                         [% number.number %]
76                     [% ELSE %]
77                         <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 %]">
78                             [% number.number %]</a>
79                     [% END %]
80                 [% END %]
81                 [% IF ( displaynext ) %]
82                     <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 %]">
83                         &gt;&gt;</a>
84                 [% END %]
85         </div>[% END %]
86     </div>
87
88 [% MACRO jsinclude BLOCK %]
89     <script type="text/javascript">
90         var index = "[% index %]";
91         var authtypecode = "[% authtypecode %]";
92     </script>
93     [% Asset.js("js/auth-finder-search.js") %]
94     <script type="text/javascript">
95
96         function jumpfull(page){
97             window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
98         }
99
100         function doauth(authid, index, repet){
101             [% IF source == 'auth' %]
102                 var e = document.getElementById("relationship");
103                 var relationship = e.options[e.selectedIndex].value;
104
105                 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
106             [% ELSE %]
107                 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
108             [% END %]
109         }
110     </script>
111 [% END %]
112
113 [% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]