|
Lines 2-9
Link Here
|
| 2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
| 3 |
<title>Koha › Authorities › Authority search results</title> |
3 |
<title>Koha › Authorities › Authority search results</title> |
| 4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
| 5 |
<script type="text/javascript" > |
5 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
|
|
6 |
[% INCLUDE 'datatables.inc' %] |
| 7 |
<script type="text/javascript"> |
| 6 |
//<![CDATA[ |
8 |
//<![CDATA[ |
|
|
9 |
|
| 10 |
$(document).ready(function() { |
| 11 |
$('#auth-search-table').dataTable($.extend(true, {}, dataTablesDefaults, { |
| 12 |
"autoWidth": false, |
| 13 |
"aoColumnDefs": [ |
| 14 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
| 15 |
], |
| 16 |
"sPaginationType": "four_button" |
| 17 |
})); |
| 18 |
}); |
| 19 |
|
| 7 |
function confirm_deletion(id) { |
20 |
function confirm_deletion(id) { |
| 8 |
var is_confirmed = confirm(_("Are you sure you want to delete this authority?")); |
21 |
var is_confirmed = confirm(_("Are you sure you want to delete this authority?")); |
| 9 |
if (is_confirmed) { |
22 |
if (is_confirmed) { |
|
Lines 21-26
function confirm_deletion(id) {
Link Here
|
| 21 |
+ "&resultsperpage=[% resultsperpage %]"; |
34 |
+ "&resultsperpage=[% resultsperpage %]"; |
| 22 |
} |
35 |
} |
| 23 |
} |
36 |
} |
|
|
37 |
|
| 24 |
function Help() { |
38 |
function Help() { |
| 25 |
newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes'); |
39 |
newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes'); |
| 26 |
} |
40 |
} |
|
Lines 34-40
function searchauthority() {
Link Here
|
| 34 |
Y = document.forms[0].value.value; |
48 |
Y = document.forms[0].value.value; |
| 35 |
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"; |
49 |
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"; |
| 36 |
} |
50 |
} |
| 37 |
|
|
|
| 38 |
//]]> |
51 |
//]]> |
| 39 |
</script> |
52 |
</script> |
| 40 |
[% INCLUDE 'authorities_js.inc' %] |
53 |
[% INCLUDE 'authorities_js.inc' %] |
|
Lines 63-102
function searchauthority() {
Link Here
|
| 63 |
</p> |
76 |
</p> |
| 64 |
|
77 |
|
| 65 |
<div id="authorities_searchresultlist_results"> |
78 |
<div id="authorities_searchresultlist_results"> |
| 66 |
<table> |
79 |
<table id="auth-search-table"> |
| 67 |
<tr> |
80 |
<thead> |
| 68 |
<th colspan="2">Summary</th> |
81 |
<tr> |
| 69 |
[% UNLESS ( isEDITORS ) %] |
82 |
<th colspan="2">Summary</th> |
| 70 |
<th>Used in</th> |
83 |
[% UNLESS ( isEDITORS ) %] |
| 71 |
[% END %] |
84 |
<th>Used in</th> |
| 72 |
[% IF ( CAN_user_editauthorities ) %] |
85 |
[% END %] |
| 73 |
<th> </th> |
86 |
[% IF ( CAN_user_editauthorities ) %] |
| 74 |
[% END %] |
87 |
<th> </th> |
| 75 |
</tr> |
88 |
[% END %] |
| 76 |
[% FOREACH resul IN result %] |
89 |
</tr> |
| 77 |
[% UNLESS ( loop.odd ) %] |
90 |
</thead> |
| 78 |
<tr data-authid="[% resul.authid %]" class="highlight"> |
91 |
<tbody> |
| 79 |
[% ELSE %] |
92 |
[% FOREACH resul IN result %] |
| 80 |
<tr data-authid="[% resul.authid %]"> |
93 |
[% UNLESS ( loop.odd ) %] |
| 81 |
[% END %] |
94 |
<tr data-authid="[% resul.authid %]" class="highlight"> |
|
|
95 |
[% ELSE %] |
| 96 |
<tr data-authid="[% resul.authid %]"> |
| 97 |
[% END %] |
| 82 |
<td>[% PROCESS authresult summary=resul.summary %]</td> |
98 |
<td>[% PROCESS authresult summary=resul.summary %]</td> |
| 83 |
<td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td> |
99 |
<td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td> |
| 84 |
[% UNLESS ( resul.isEDITORS ) %] |
100 |
[% UNLESS ( resul.isEDITORS ) %] |
| 85 |
<td> |
101 |
<td> |
| 86 |
<a href="../catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% resul.authid %]" class="button">[% resul.used %] records(s)</a> |
102 |
<a href="../catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% resul.authid %]" class="button">[% resul.used %] records(s)</a> |
| 87 |
</td> |
103 |
</td> |
| 88 |
[% END %] |
104 |
[% END %] |
| 89 |
[% IF ( CAN_user_editauthorities ) %] |
105 |
[% IF ( CAN_user_editauthorities ) %] |
| 90 |
<td> |
106 |
<td> |
| 91 |
<a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]">Edit</a> |
107 |
<div class="dropdown"> |
| 92 |
| <a class="merge_auth" href="#merge">Merge</a> |
108 |
<a class="btn btn-mini dropdown-toggle" id="authactions[% resul.authid %]" role="button" data-toggle="dropdown" href="#"> |
| 93 |
[% UNLESS ( resul.used ) %] |
109 |
Actions <b class="caret"></b></a> |
| 94 |
| <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a> |
110 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid %]"> |
| 95 |
[% END %] |
111 |
<li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit</a></li> |
| 96 |
</td> |
112 |
<li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li> |
| 97 |
[% END %] |
113 |
[% UNLESS ( resul.used ) %] |
|
|
114 |
<li><a href="#" onclick='return confirm_deletion("[% resul.authid %]")'><i class="fa fa-times"></i> Delete</a></li> |
| 115 |
[% END %] |
| 116 |
</ul> |
| 117 |
</div> |
| 118 |
</td> |
| 119 |
[% END %] |
| 98 |
</tr> |
120 |
</tr> |
| 99 |
[% END %] |
121 |
[% END %] |
|
|
122 |
</tbody> |
| 100 |
</table> |
123 |
</table> |
| 101 |
</div> |
124 |
</div> |
| 102 |
|
125 |
|
| 103 |
- |
|
|