Bug 34791: Add links to HTML Customizations to CookieConsent preferences
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / searchresultlist.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("Authority search results") | html %] &rsaquo;
10     [% t("Authorities") | html %] &rsaquo;
11     [% t("Koha") | html %]
12 [% END %]</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% Asset.css("css/addbiblio.css") | $raw %]
15 <style>
16 .usefor {
17     padding: 0;
18     margin: 0;
19 }
20 .usefor li {
21     list-style-type: none;
22 }
23 </style>
24 </head>
25
26 <body id="auth_searchresultlist" class="auth">
27 [% WRAPPER 'header.inc' %]
28     [% INCLUDE 'authorities-search.inc' %]
29 [% END %]
30
31 [% WRAPPER 'sub-header.inc' %]
32     [% WRAPPER breadcrumbs %]
33         [% WRAPPER breadcrumb_item %]
34             <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
35         [% END %]
36         [% WRAPPER breadcrumb_item bc_active= 1 %]
37             <span>Authority search results</span>
38         [% END %]
39     [% END #/ WRAPPER breadcrumbs %]
40 [% END #/ WRAPPER sub-header.inc %]
41
42 <div class="main container-fluid">
43     <div class="row">
44         <div class="col-md-8 col-md-offset-2">
45
46     [% INCLUDE 'authorities-toolbar.inc' %]
47 <h1>Authority search results</h1>
48
49 <div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
50 <div class="page-section">
51     [% IF ( query_error ) %]
52         <div class="dialog alert"><p><strong>Error:</strong> [% query_error | html %]</p></div>
53     [% END %]
54
55     [% IF ( total ) %]
56     <div class="pages">[% pagination_bar | $raw %]</div>
57
58     <p id="authorities_searchresultlist_current_page_info">
59       Results [% from | html %] to [% to | html %] of [% total | html %]
60     </p>
61
62     <div id="authorities_searchresultlist_results">
63       <table>
64           <tr>
65             <th>Summary</th>
66             <th>Heading type</th>
67             [% UNLESS ( isEDITORS ) %]
68               <th>Used in</th>
69             [% END %]
70             [% IF Koha.Preference('ShowHeadingUse') %]
71               <th class="heading_use">Heading use</th>
72             [% END %]
73             [% IF ( CAN_user_editauthorities ) %]
74               <th>&nbsp;</th>
75             [% END %]
76           </tr>
77         [% FOREACH resul IN result %]
78         <tr data-authid="[% resul.authid | html %]">
79           <td>
80             [% IF resul.html %]
81               [% resul.html | $raw %]
82             [% ELSE %]
83               [% PROCESS authresult summary=resul.summary authid=resul.authid %]
84             [% END %]
85           </td>
86           <td>[% resul.authtype | html %]</td>
87         [% UNLESS ( resul.isEDITORS ) %]
88           <td>
89           [% IF resul.used > 0 %]
90               <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid | uri %]" class="button">[% resul.used | html %] record(s)</a>
91           [% ELSE %]
92               0 records
93           [% END %]
94           </td>
95         [% END %]
96         [% IF Koha.Preference('ShowHeadingUse') %]
97             <td class="heading_use"><ul class="usefor">
98                 <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li>
99                 <li>[% IF resul.subject %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Subject</li>
100                 <li>[% IF resul.series %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Series Title</li>
101             </ul></td>
102         [% END %]
103         [% IF ( CAN_user_editauthorities ) %]
104           <td>
105           <div class="btn-group dropup">
106             <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid | html %]" role="button" data-toggle="dropdown" href="#">
107             Actions <b class="caret"></b></a>
108             <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]">
109               <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li>
110               <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
111               [% UNLESS ( resul.used ) %]
112                 <li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash-can"></i> Delete</a></li>
113               [% END %]
114               <li class="authority_preview">
115                 <a data-authid="[% resul.authid | html %]" href="/cgi-bin/koha/authorities/detail.pl?authid=[% resul.authid | uri %]"><i class="fa-solid fa-eye"></i> MARC preview</a>
116               </li>
117             </ul>
118           </div>
119           </td>
120         [% END %]
121         </tr>
122         [% END %]
123       </table>
124     </div>
125
126     [% INCLUDE 'authority-detail-modal.inc' %]
127
128     <div class="pages">[% pagination_bar | $raw %]</div>
129
130     [% ELSE %]
131       No results found
132     [% END %]
133 </div> <!-- /.page-section -->
134 </div>
135 </div>
136
137 [% MACRO jsinclude BLOCK %]
138     [% INCLUDE 'authorities_js.inc' %]
139     [% Asset.js("js/authorities-detail-modal.js") | $raw %]
140 [% END %]
141
142 [% INCLUDE 'intranet-bottom.inc' %]