Lines 42-54
Link Here
|
42 |
<table> |
42 |
<table> |
43 |
<tr> |
43 |
<tr> |
44 |
<th>Summary</th> |
44 |
<th>Summary</th> |
|
|
45 |
<th>Heading type</th> |
45 |
<th>Used</th> |
46 |
<th>Used</th> |
46 |
<th>Get it!</th> |
47 |
<th>Get it!</th> |
47 |
<th>Other action</th> |
48 |
<th>Other action</th> |
48 |
</tr> |
49 |
</tr> |
49 |
[% FOREACH resul IN result %] |
50 |
[% FOREACH resul IN result %] |
50 |
<tr> |
51 |
<tr> |
51 |
<td>[% PROCESS authresult summary=resul.summary %]</td> |
52 |
<td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td> |
|
|
53 |
<td>[% resul.summary.label | html %]</td> |
52 |
<td>[% resul.used | html %] times</td> |
54 |
<td>[% resul.used | html %] times</td> |
53 |
<td> |
55 |
<td> |
54 |
[% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %] |
56 |
[% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %] |
Lines 86-91
Link Here
|
86 |
</div>[% END %] |
88 |
</div>[% END %] |
87 |
</div> |
89 |
</div> |
88 |
|
90 |
|
|
|
91 |
<!-- Authority details modal --> |
92 |
<div class="modal" id="authorityDetail" tabindex="-1" role="dialog" aria-labelledby="authorityDetailLabel"> |
93 |
<div class="modal-dialog" role="document"> |
94 |
<div class="modal-content"> |
95 |
<div class="modal-header"> |
96 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
97 |
<h4 class="modal-title" id="authorityDetailLabel"></h4> |
98 |
</div> |
99 |
<div class="modal-body"> |
100 |
<img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> |
101 |
</div> |
102 |
<div class="modal-footer"> |
103 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
104 |
</div> |
105 |
</div> |
106 |
</div> |
107 |
</div> |
108 |
|
89 |
[% MACRO jsinclude BLOCK %] |
109 |
[% MACRO jsinclude BLOCK %] |
90 |
<script> |
110 |
<script> |
91 |
var index = "[% index | html %]"; |
111 |
var index = "[% index | html %]"; |
Lines 93-99
Link Here
|
93 |
</script> |
113 |
</script> |
94 |
[% Asset.js("js/auth-finder-search.js") | $raw %] |
114 |
[% Asset.js("js/auth-finder-search.js") | $raw %] |
95 |
<script> |
115 |
<script> |
|
|
116 |
$(document).ready(function(){ |
117 |
$(".authorizedheading a").on("click", function(e){ |
118 |
e.preventDefault(); |
119 |
var authid = $(this).data("authid"); |
120 |
|
121 |
$.get("/cgi-bin/koha/authorities/detail.pl", { authid : authid }, function( data ){ |
122 |
var auth_detail = $(data).find("#authoritiestabs"); |
123 |
auth_detail.find("ul").remove(); |
124 |
$("#authorityDetail .modal-title").html(_("Authority") + " " + authid ); |
125 |
$("#authorityDetail .modal-body").html( auth_detail ); |
126 |
}); |
96 |
|
127 |
|
|
|
128 |
$("#authorityDetail").modal("show"); |
129 |
}); |
130 |
$("#authorityDetail").on("hidden.bs.modal", function(){ |
131 |
$("#authorityDetail .modal-body, #authorityDetail .modal-title").html(""); |
132 |
$("#authorityDetail .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /></div>"); |
133 |
}); |
134 |
}); |
97 |
function jumpfull(page){ |
135 |
function jumpfull(page){ |
98 |
window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top'); |
136 |
window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top'); |
99 |
} |
137 |
} |