[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Authorities › Authority search results</title>
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" >
+<script type="text/javascript">
//<![CDATA[
+
function confirm_deletion(id) {
var is_confirmed = confirm(_("Are you sure you want to delete this authority?"));
if (is_confirmed) {
+ "&resultsperpage=[% resultsperpage %]";
}
}
+
function Help() {
newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
}
Y = document.forms[0].value.value;
window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
}
-
//]]>
</script>
[% INCLUDE 'authorities_js.inc' %]
<div id="authorities_searchresultlist_results">
<table>
- <tr>
- <th colspan="2">Summary</th>
-[% UNLESS ( isEDITORS ) %]
- <th>Used in</th>
-[% END %]
- [% IF ( CAN_user_editauthorities ) %]
- <th> </th>
- [% END %]
- </tr>
-[% FOREACH resul IN result %]
+ <tr>
+ <th colspan="2">Summary</th>
+ [% UNLESS ( isEDITORS ) %]
+ <th>Used in</th>
+ [% END %]
+ [% IF ( CAN_user_editauthorities ) %]
+ <th> </th>
+ [% END %]
+ </tr>
+ [% FOREACH resul IN result %]
<tr data-authid="[% resul.authid %]">
<td>[% PROCESS authresult summary=resul.summary %]</td>
<td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
- [% UNLESS ( resul.isEDITORS ) %]
+ [% UNLESS ( resul.isEDITORS ) %]
<td>
<a href="../catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% resul.authid %]" class="button">[% resul.used %] records(s)</a>
</td>
- [% END %]
- [% IF ( CAN_user_editauthorities ) %]
- <td>
- <a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]">Edit</a>
- | <a class="merge_auth" href="#merge">Merge</a>
- [% UNLESS ( resul.used ) %]
- | <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a>
- [% END %]
- </td>
- [% END %]
+ [% END %]
+ [% IF ( CAN_user_editauthorities ) %]
+ <td>
+ <div class="dropdown">
+ <a class="btn btn-mini dropdown-toggle" id="authactions[% resul.authid %]" role="button" data-toggle="dropdown" href="#">
+ Actions <b class="caret"></b></a>
+ <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid %]">
+ <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit</a></li>
+ <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
+ [% UNLESS ( resul.used ) %]
+ <li><a onclick='return confirm_deletion("[% resul.authid %]")'><i class="fa fa-trash"></i> Delete</a></li>
+ [% END %]
+ </ul>
+ </div>
+ </td>
+ [% END %]
</tr>
-[% END %]
+ [% END %]
</table>
</div>