Bug 31028: Only show pending concerns if there are some
[koha-ffzg.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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
28     <ol>
29         <li>
30             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
31         </li>
32         <li>
33             <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
34         </li>
35         <li>
36             <a href="#" aria-current="page">
37                 Authority search results
38             </a>
39         </li>
40     </ol>
41 </nav>
42 [% END %]
43
44 <div class="main container-fluid">
45     <div class="row">
46         <div class="col-md-8 col-md-offset-2">
47
48     [% INCLUDE 'authorities-toolbar.inc' %]
49 <h1>Authority search results</h1>
50
51 <div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
52 <div class="page-section">
53     [% IF ( total ) %]
54     <div class="pages">[% pagination_bar | $raw %]</div>
55
56     <p id="authorities_searchresultlist_current_page_info">
57       Results [% from | html %] to [% to | html %] of [% total | html %]
58     </p>
59
60     <div id="authorities_searchresultlist_results">
61       <table>
62           <tr>
63             <th>Summary</th>
64             <th>Heading type</th>
65             [% UNLESS ( isEDITORS ) %]
66               <th>Used in</th>
67             [% END %]
68             [% IF Koha.Preference('ShowHeadingUse') %]
69               <th class="heading_use">Heading use</th>
70             [% END %]
71             [% IF ( CAN_user_editauthorities ) %]
72               <th>&nbsp;</th>
73             [% END %]
74           </tr>
75         [% FOREACH resul IN result %]
76         <tr data-authid="[% resul.authid | html %]">
77           <td>
78             [% IF resul.html %]
79               [% resul.html | $raw %]
80             [% ELSE %]
81               [% PROCESS authresult summary=resul.summary authid=resul.authid %]
82             [% END %]
83           </td>
84           <td>[% resul.authtype | html %]</td>
85         [% UNLESS ( resul.isEDITORS ) %]
86           <td>
87           [% IF resul.used > 0 %]
88               <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>
89           [% ELSE %]
90               0 records
91           [% END %]
92           </td>
93         [% END %]
94         [% IF Koha.Preference('ShowHeadingUse') %]
95             <td class="heading_use"><ul class="usefor">
96                 <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li>
97                 <li>[% IF resul.subject %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Subject</li>
98                 <li>[% IF resul.series %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Series Title</li>
99             </ul></td>
100         [% END %]
101         [% IF ( CAN_user_editauthorities ) %]
102           <td>
103           <div class="btn-group dropup">
104             <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid | html %]" role="button" data-toggle="dropdown" href="#">
105             Actions <b class="caret"></b></a>
106             <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]">
107               <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
108               <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
109               [% UNLESS ( resul.used ) %]
110                 <li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash"></i> Delete</a></li>
111               [% END %]
112               <li class="authority_preview">
113                 <a data-authid="[% resul.authid | html %]" href="/cgi-bin/koha/authorities/detail.pl?authid=[% resul.authid | uri %]"><i class="fa fa-eye"></i> MARC preview</a>
114               </li>
115             </ul>
116           </div>
117           </td>
118         [% END %]
119         </tr>
120         [% END %]
121       </table>
122     </div>
123
124     [% INCLUDE 'authority-detail-modal.inc' %]
125
126     <div class="pages">[% pagination_bar | $raw %]</div>
127
128     [% ELSE %]
129       No results found
130     [% END %]
131 </div> <!-- /.page-section -->
132 </div>
133 </div>
134
135 [% MACRO jsinclude BLOCK %]
136     [% INCLUDE 'authorities_js.inc' %]
137     [% Asset.js("js/authorities-detail-modal.js") | $raw %]
138 [% END %]
139
140 [% INCLUDE 'intranet-bottom.inc' %]