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 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
6 |
//<![CDATA[ |
|
|
7 |
|
7 |
function confirm_deletion(id) { |
8 |
function confirm_deletion(id) { |
8 |
var is_confirmed = confirm(_("Are you sure you want to delete this authority?")); |
9 |
var is_confirmed = confirm(_("Are you sure you want to delete this authority?")); |
9 |
if (is_confirmed) { |
10 |
if (is_confirmed) { |
Lines 21-26
function confirm_deletion(id) {
Link Here
|
21 |
+ "&resultsperpage=[% resultsperpage %]"; |
22 |
+ "&resultsperpage=[% resultsperpage %]"; |
22 |
} |
23 |
} |
23 |
} |
24 |
} |
|
|
25 |
|
24 |
function Help() { |
26 |
function Help() { |
25 |
newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes'); |
27 |
newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes'); |
26 |
} |
28 |
} |
Lines 34-40
function searchauthority() {
Link Here
|
34 |
Y = document.forms[0].value.value; |
36 |
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"; |
37 |
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 |
} |
38 |
} |
37 |
|
|
|
38 |
//]]> |
39 |
//]]> |
39 |
</script> |
40 |
</script> |
40 |
[% INCLUDE 'authorities_js.inc' %] |
41 |
[% INCLUDE 'authorities_js.inc' %] |
Lines 64-98
function searchauthority() {
Link Here
|
64 |
|
65 |
|
65 |
<div id="authorities_searchresultlist_results"> |
66 |
<div id="authorities_searchresultlist_results"> |
66 |
<table> |
67 |
<table> |
67 |
<tr> |
68 |
<tr> |
68 |
<th colspan="2">Summary</th> |
69 |
<th colspan="2">Summary</th> |
69 |
[% UNLESS ( isEDITORS ) %] |
70 |
[% UNLESS ( isEDITORS ) %] |
70 |
<th>Used in</th> |
71 |
<th>Used in</th> |
71 |
[% END %] |
72 |
[% END %] |
72 |
[% IF ( CAN_user_editauthorities ) %] |
73 |
[% IF ( CAN_user_editauthorities ) %] |
73 |
<th> </th> |
74 |
<th> </th> |
74 |
[% END %] |
75 |
[% END %] |
75 |
</tr> |
76 |
</tr> |
76 |
[% FOREACH resul IN result %] |
77 |
[% FOREACH resul IN result %] |
77 |
<tr data-authid="[% resul.authid %]"> |
|
|
78 |
<td>[% PROCESS authresult summary=resul.summary %]</td> |
78 |
<td>[% PROCESS authresult summary=resul.summary %]</td> |
79 |
<td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td> |
79 |
<td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td> |
80 |
[% UNLESS ( resul.isEDITORS ) %] |
80 |
[% UNLESS ( resul.isEDITORS ) %] |
81 |
<td> |
81 |
<td> |
82 |
<a href="../catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% resul.authid %]" class="button">[% resul.used %] records(s)</a> |
82 |
<a href="../catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% resul.authid %]" class="button">[% resul.used %] records(s)</a> |
83 |
</td> |
83 |
</td> |
84 |
[% END %] |
84 |
[% END %] |
85 |
[% IF ( CAN_user_editauthorities ) %] |
85 |
[% IF ( CAN_user_editauthorities ) %] |
86 |
<td> |
86 |
<td> |
87 |
<a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]">Edit</a> |
87 |
<div class="dropdown"> |
88 |
| <a class="merge_auth" href="#merge">Merge</a> |
88 |
<a class="btn btn-mini dropdown-toggle" id="authactions[% resul.authid %]" role="button" data-toggle="dropdown" href="#"> |
89 |
[% UNLESS ( resul.used ) %] |
89 |
Actions <b class="caret"></b></a> |
90 |
| <a href="javascript:confirm_deletion([% resul.authid %])">Delete</a> |
90 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid %]"> |
91 |
[% END %] |
91 |
<li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit</a></li> |
92 |
</td> |
92 |
<li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li> |
93 |
[% END %] |
93 |
[% UNLESS ( resul.used ) %] |
|
|
94 |
<li><a onclick='return confirm_deletion("[% resul.authid %]")'><i class="fa fa-trash"></i> Delete</a></li> |
95 |
[% END %] |
96 |
</ul> |
97 |
</div> |
98 |
</td> |
99 |
[% END %] |
94 |
</tr> |
100 |
</tr> |
95 |
[% END %] |
101 |
[% END %] |
96 |
</table> |
102 |
</table> |
97 |
</div> |
103 |
</div> |
98 |
|
104 |
|
99 |
- |
|
|