Bug 34791: Add links to HTML Customizations to CookieConsent preferences
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / searchresultlist-auth.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% PROCESS 'i18n.inc' %]
5 [% SET footerjs = 1 %]
6 [% PROCESS 'authorities-search-results.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% FILTER collapse %]
9     [% t("Cataloging authority plugin") | html %] &rsaquo;
10     [% t("Koha") | html %]
11 [% END %]</title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% Asset.css("css/addbiblio.css") | $raw %]
14 <style>
15 .usefor {
16     padding: 0;
17     margin: 0;
18 }
19 .usefor li {
20     list-style-type: none;
21 }
22 #clear-form {
23     border:0;
24     background:none;
25     color:#004d99;
26     padding-left:1em;
27 }
28 #clear-form:hover {
29     color:#538200;
30 }
31 </style>
32 </head>
33
34 <body id="auth_searchresultlist_auth" class="auth">
35     <div class="container-fluid">
36
37         <h1>Authority search results</h1>
38         [% INCLUDE 'auth-finder-search.inc' %]
39         [% IF ( total ) %]<div class="resultnumber">
40             [% IF ( displayprev ) %]
41                     <a href="auth_finder.pl?startfrom=[% startfromprev | uri %]&amp;authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index | uri %]&amp;tagid=[% tagid | uri %]&amp;orderby=[% orderby | uri %]&amp;source=[% source | uri %]">
42                         &lt;&lt;
43                     </a>
44                 [% END %]
45                 [% FOREACH number IN numbers %]
46                     [% IF ( number.highlight ) %]
47                         [% number.number | html %]
48                     [% ELSE %]
49                         <a href="auth_finder.pl?startfrom=[% number.startfrom | uri %]&amp;authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN number.searchdata %]&amp;[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index | uri %]&amp;tagid=[% tagid | uri %]&amp;orderby=[% orderby | uri %]&amp;source=[% source | uri %]">
50                             [% number.number | html %]</a>
51                     [% END %]
52                 [% END %]
53                 [% IF ( displaynext ) %]
54                     <a href="auth_finder.pl?startfrom=[% startfromnext | uri %]&amp;authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index | uri %]&amp;tagid=[% tagid | uri %]&amp;orderby=[% orderby | uri %]&amp;source=[% source | uri %]">
55                         &gt;&gt;</a>
56                 [% END %]
57             <div>
58                 
59                     <p><strong>Results [% from | html %] to [% to | html %] of [% total | html %]</strong></p>
60                 [% ELSE %]
61                     
62                 
63             </div><p>No results found</p>[% END %]
64         </div>
65         [% IF ( result ) %]<div id="resultlist">
66             <table>
67                 <tr>
68                     <th>Summary</th>
69                     <th>Heading type</th>
70                     <th>Used</th>
71                     [% IF Koha.Preference('ShowHeadingUse') %]
72                         <th class="heading_use">Heading use</th>
73                     [% END %]
74                     <th>Get it!</th>
75                     <th>Other action</th>
76                 </tr>
77                 [% FOREACH resul IN result %]
78                     <tr>
79                         <td>[% PROCESS authresult summary=resul.summary authid=resul.authid auth_preview=1 %]</td>
80                         <td>[% resul.summary.label | html %]</td>
81                         <td>[% resul.used | html %] times</td>
82                         [% IF Koha.Preference('ShowHeadingUse') %]
83                             <td class="heading_use"><ul class="usefor">
84                                 <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li>
85                                 <li>[% IF resul.subject %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Subject</li>
86                                 <li>[% IF resul.series %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Series Title</li>
87                             </ul></td>
88                         [% END %]
89                         <td>
90                             [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
91                                 [% FOREACH authorized IN resul.summary.authorized %]
92                                     <a href="javascript:doauth('[% resul.authid | uri %]', '[% index | uri %]', '[% loop.count | uri %]')" title="[% authorized.heading | html %]">[% loop.count | html %]</a>
93                                 [% END %]
94                           [% ELSE %]
95                                 <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid | html %]', '[% index | html %]', '')"><i class="fa fa-plus"></i> Choose</a>
96                           [% END %]
97                         </td>
98                         <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit authority</a></td>
99                     </tr>
100                 [% END %]
101             </table>
102     
103         </div>
104         <div class="resultnumber">
105             [% IF ( displayprev ) %]
106                     <a href="auth_finder.pl?startfrom=[% startfromprev | uri %]&amp;authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&amp;op=do_search&amp;type=intranetamp;&amp;index=[% index | uri %]&amp;tagid=[% tagid | uri %]&amp;orderby=[% orderby | uri %]&amp;source=[% source | uri %]">
107                         &lt;&lt;
108                     </a>
109                 [% END %]
110                 [% FOREACH number IN numbers %]
111                     [% IF ( number.highlight ) %]
112                         [% number.number | html %]
113                     [% ELSE %]
114                         <a href="auth_finder.pl?startfrom=[% number.startfrom | uri %]&amp;authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN number.searchdata %]&amp;[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index | uri %]&amp;tagid=[% tagid | uri %]&amp;orderby=[% orderby | uri %]&amp;source=[% source | uri %]">
115                             [% number.number | html %]</a>
116                     [% END %]
117                 [% END %]
118                 [% IF ( displaynext ) %]
119                     <a href="auth_finder.pl?startfrom=[% startfromnext | uri %]&amp;authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index | uri %]&amp;tagid=[% tagid | uri %]&amp;orderby=[% orderby | uri %]&amp;source=[% source | uri %]">
120                         &gt;&gt;</a>
121                 [% END %]
122         </div>[% END %]
123     </div>
124
125 [% INCLUDE 'authority-detail-modal.inc' %]
126
127 [% MACRO jsinclude BLOCK %]
128     <script>
129         var index = "[% index | html %]";
130         var authtypecode = "[% authtypecode | html %]";
131     </script>
132     [% Asset.js("js/auth-finder-search.js") | $raw %]
133     [% Asset.js("js/authorities-detail-modal.js") | $raw %]
134     <script>
135         function jumpfull(page){
136             window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
137         }
138
139         function doauth(authid, index, repet){
140             [% IF source == 'auth' %]
141                 var e = document.getElementById("relationship");
142                 var relationship = e.options[e.selectedIndex].value;
143
144                 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
145             [% ELSE %]
146                 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
147             [% END %]
148         }
149     </script>
150 [% END %]
151
152 [% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]