|
Lines 2-7
Link Here
|
| 2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
| 3 |
[% SET footerjs = 1 %] |
3 |
[% SET footerjs = 1 %] |
| 4 |
[% USE Koha %] |
4 |
[% USE Koha %] |
|
|
5 |
[% USE ColumnsSettings %] |
| 5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
| 6 |
<title>Koha › Z39.50/SRU search results</title> |
7 |
<title>Koha › Z39.50/SRU search results</title> |
| 7 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
[% INCLUDE 'doc-head-close.inc' %] |
|
Lines 204-210
Link Here
|
| 204 |
[% IF ( show_prevbutton ) %] |
205 |
[% IF ( show_prevbutton ) %] |
| 205 |
<input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" /> |
206 |
<input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" /> |
| 206 |
[% END %] |
207 |
[% END %] |
| 207 |
Page [% current_page | html %] / [% total_pages | html %] |
208 |
<span id="result_pagenumbers">Showing page [% current_page | html %] of [% total_pages | html %]</span> |
| 208 |
[% IF ( show_nextbutton ) %] |
209 |
[% IF ( show_nextbutton ) %] |
| 209 |
<input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" /> |
210 |
<input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" /> |
| 210 |
[% END %] |
211 |
[% END %] |
|
Lines 234-239
Link Here
|
| 234 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
235 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
| 235 |
[% Asset.js("js/z3950_search.js") | $raw %] |
236 |
[% Asset.js("js/z3950_search.js") | $raw %] |
| 236 |
[% INCLUDE 'datatables.inc' %] |
237 |
[% INCLUDE 'datatables.inc' %] |
|
|
238 |
[% INCLUDE 'columns_settings.inc' %] |
| 237 |
<script> |
239 |
<script> |
| 238 |
$(document).ready(function(){ |
240 |
$(document).ready(function(){ |
| 239 |
|
241 |
|
|
Lines 248-262
Link Here
|
| 248 |
}); |
250 |
}); |
| 249 |
}); |
251 |
}); |
| 250 |
|
252 |
|
| 251 |
$("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
253 |
var columns_settings = [% ColumnsSettings.GetColumns( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %]; |
| 252 |
"sDom": 't', |
254 |
var thetable = KohaTable("resultst", { |
| 253 |
"aoColumnDefs": [ |
255 |
"aoColumnDefs": [ |
| 254 |
{ "aTargets": [ -1,-2,-3 ], "bSortable": false, "bSearchable": false }, |
256 |
{ "targets": [ "NoSort" ],"sortable": false,"searchable": false }, |
| 255 |
{ "aTargets": [ 1 ], "sType": "nsb-nse" }, |
257 |
{ "aTargets": [ 1 ], "sType": "nsb-nse" }, |
| 256 |
], |
258 |
], |
| 257 |
"aaSorting": [[ 1, "asc" ]], |
259 |
"aaSorting": [[ 1, "asc" ]], |
| 258 |
"bPaginate": false |
260 |
"bPaginate": false |
| 259 |
})); |
261 |
}, columns_settings ); |
|
|
262 |
|
| 260 |
|
263 |
|
| 261 |
/* Display actions menu anywhere the table is clicked */ |
264 |
/* Display actions menu anywhere the table is clicked */ |
| 262 |
$("td").click(function(event){ |
265 |
$("td").click(function(event){ |
|
Lines 284-289
Link Here
|
| 284 |
} |
287 |
} |
| 285 |
}); |
288 |
}); |
| 286 |
}); |
289 |
}); |
|
|
290 |
|
| 291 |
function columnsInit(){ |
| 292 |
$(".dataTables_info").text( $("#result_pagenumbers").text() ); |
| 293 |
$("#result_pagenumbers").hide(); |
| 294 |
} |
| 287 |
</script> |
295 |
</script> |
| 288 |
[% INCLUDE 'z3950_search.inc' %] |
296 |
[% INCLUDE 'z3950_search.inc' %] |
| 289 |
[% END %] |
297 |
[% END %] |
| 290 |
- |
|
|