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