Lines 2-7
Link Here
|
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
4 |
[% USE KohaDates %] |
4 |
[% USE KohaDates %] |
|
|
5 |
[% USE TablesSettings %] |
5 |
[% USE AuthorisedValues %] |
6 |
[% USE AuthorisedValues %] |
6 |
[% USE Branches %] |
7 |
[% USE Branches %] |
7 |
[% SET footerjs = 1 %] |
8 |
[% SET footerjs = 1 %] |
Lines 285-341
Link Here
|
285 |
<thead> |
286 |
<thead> |
286 |
<tr> |
287 |
<tr> |
287 |
[% IF ( itemsloop ) %] |
288 |
[% IF ( itemsloop ) %] |
288 |
<th class="checkall"> </th> |
289 |
<th class="checkall" data-colname="checkbox"> </th> |
289 |
[% END %] |
290 |
[% END %] |
290 |
[% UNLESS ( item_level_itypes ) %] |
291 |
[% UNLESS ( item_level_itypes ) %] |
291 |
<th>Item type</th> |
292 |
<th data-colname="item_type">Item type</th> |
292 |
[% END %] |
293 |
[% END %] |
293 |
[% IF sortfield == 'title' %] |
294 |
[% IF sortfield == 'title' %] |
294 |
<th class="sorting_[% direction | html %]"> |
295 |
<th class="sorting_[% direction | html %]" data-colname="title"> |
295 |
[% ELSE %] |
296 |
[% ELSE %] |
296 |
<th class="sorting"> |
297 |
<th class="sorting" data-colname="title"> |
297 |
[% END %] |
298 |
[% END %] |
298 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a> |
299 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a> |
299 |
</th> |
300 |
</th> |
300 |
[% IF sortfield == 'author' %] |
301 |
[% IF sortfield == 'author' %] |
301 |
<th class="sorting_[% direction | html %]"> |
302 |
<th class="sorting_[% direction | html %]" data-colname="author"> |
302 |
[% ELSE %] |
303 |
[% ELSE %] |
303 |
<th class="sorting"> |
304 |
<th class="sorting" data-colname="author"> |
304 |
[% END %] |
305 |
[% END %] |
305 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a> |
306 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a> |
306 |
</th> |
307 |
</th> |
307 |
[% IF sortfield == 'dateadded' %] |
308 |
[% IF sortfield == 'dateadded' %] |
308 |
<th class="sorting_[% direction | html %]"> |
309 |
<th class="sorting_[% direction | html %]" data-colname="date_added"> |
309 |
[% ELSE %] |
310 |
[% ELSE %] |
310 |
<th class="sorting"> |
311 |
<th class="sorting" data-colname="date_added"> |
311 |
[% END %] |
312 |
[% END %] |
312 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=dateadded&direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a> |
313 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=dateadded&direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a> |
313 |
</th> |
314 |
</th> |
314 |
[% IF sortfield == 'itemcallnumber' %] |
315 |
[% IF sortfield == 'itemcallnumber' %] |
315 |
<th class="sorting_[% direction | html %]"> |
316 |
<th class="sorting_[% direction | html %]" data-colname="call_number"> |
316 |
[% ELSE %] |
317 |
[% ELSE %] |
317 |
<th class="sorting"> |
318 |
<th class="sorting" data-colname="call_number"> |
318 |
[% END %] |
319 |
[% END %] |
319 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a> |
320 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a> |
320 |
</th> |
321 |
</th> |
321 |
</tr> |
322 |
</tr> |
322 |
</thead> |
323 |
</thead> |
|
|
324 |
<tbody> |
323 |
[% FOREACH itemsloo IN itemsloop %] |
325 |
[% FOREACH itemsloo IN itemsloop %] |
324 |
<tr> |
326 |
<tr> |
325 |
[% IF itemsloop %] |
327 |
[% IF itemsloop %] |
326 |
<td> |
328 |
<td data-colname="checkbox"> |
327 |
<input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" /> |
329 |
<input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" /> |
328 |
</td> |
330 |
</td> |
329 |
[% END %] |
331 |
[% END %] |
330 |
[% UNLESS ( item_level_itypes ) %] |
332 |
[% UNLESS ( item_level_itypes ) %] |
331 |
<td> |
333 |
<td data-colname="item_type"> |
332 |
[% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %] |
334 |
[% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %] |
333 |
<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" /> |
335 |
<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" /> |
334 |
[% END %] |
336 |
[% END %] |
335 |
<span class="itypetext">[% itemsloo.description | html %]</span> |
337 |
<span class="itypetext">[% itemsloo.description | html %]</span> |
336 |
</td> |
338 |
</td> |
337 |
[% END %] |
339 |
[% END %] |
338 |
<td> |
340 |
<td data-colname="title"> |
339 |
[% IF ( itemsloo.XSLTBloc ) %] |
341 |
[% IF ( itemsloo.XSLTBloc ) %] |
340 |
[% itemsloo.XSLTBloc | $raw %] |
342 |
[% itemsloo.XSLTBloc | $raw %] |
341 |
[% ELSE %] |
343 |
[% ELSE %] |
Lines 363-375
Link Here
|
363 |
[% END %] |
365 |
[% END %] |
364 |
</p> |
366 |
</p> |
365 |
</td> |
367 |
</td> |
366 |
<td> |
368 |
<td data-colname="author"> |
367 |
[% itemsloo.author | html %] |
369 |
[% itemsloo.author | html %] |
368 |
</td> |
370 |
</td> |
369 |
<td> |
371 |
<td data-colname="date_added"> |
370 |
[% itemsloo.dateadded | $KohaDates%] |
372 |
[% itemsloo.dateadded | $KohaDates%] |
371 |
</td> |
373 |
</td> |
372 |
<td> |
374 |
<td data-colname="call_number"> |
373 |
<ul> |
375 |
<ul> |
374 |
[% FOREACH item IN itemsloo.ITEM_RESULTS %] |
376 |
[% FOREACH item IN itemsloo.ITEM_RESULTS %] |
375 |
<li> |
377 |
<li> |
Lines 388-393
Link Here
|
388 |
</td> |
390 |
</td> |
389 |
</tr> |
391 |
</tr> |
390 |
[% END #/FOREACH itemsloo %] |
392 |
[% END #/FOREACH itemsloo %] |
|
|
393 |
</tbody> |
391 |
</table> <!-- /#searchresults --> |
394 |
</table> <!-- /#searchresults --> |
392 |
<div class="pages">[% pagination_bar | $raw %]</div> |
395 |
<div class="pages">[% pagination_bar | $raw %]</div> |
393 |
</form> |
396 |
</form> |
Lines 593-598
Link Here
|
593 |
|
596 |
|
594 |
[% MACRO jsinclude BLOCK %] |
597 |
[% MACRO jsinclude BLOCK %] |
595 |
[% INCLUDE 'datatables.inc' %] |
598 |
[% INCLUDE 'datatables.inc' %] |
|
|
599 |
[% INCLUDE 'columns_settings.inc' %] |
596 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
600 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
597 |
[% IF print %] |
601 |
[% IF print %] |
598 |
<script> |
602 |
<script> |
Lines 617-623
Link Here
|
617 |
[% IF op == 'list' %] |
621 |
[% IF op == 'list' %] |
618 |
$(document).ready(function(){ |
622 |
$(document).ready(function(){ |
619 |
var public = [% public | html %]; |
623 |
var public = [% public | html %]; |
620 |
|
|
|
621 |
var dtListResults = $("#listresultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
624 |
var dtListResults = $("#listresultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
622 |
"aaSorting": [[ 5, "asc" ]], |
625 |
"aaSorting": [[ 5, "asc" ]], |
623 |
'bServerSide': true, |
626 |
'bServerSide': true, |
Lines 717-722
Link Here
|
717 |
[% IF shelf AND op == 'view' %] |
720 |
[% IF shelf AND op == 'view' %] |
718 |
var Sticky; |
721 |
var Sticky; |
719 |
$(document).ready(function(){ |
722 |
$(document).ready(function(){ |
|
|
723 |
var column_settings = [% TablesSettings.GetColumns( 'catalogue', 'lists', 'searchresults', 'json' ) | $raw %]; |
724 |
KohaTable("searchresults", { |
725 |
'bPaginate': false, |
726 |
'bAutoWidth': false, |
727 |
"bKohaColumnsUseNames": true, |
728 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
729 |
}, column_settings ); |
720 |
Sticky = $("#searchheader"); |
730 |
Sticky = $("#searchheader"); |
721 |
Sticky.hcSticky({ |
731 |
Sticky.hcSticky({ |
722 |
stickTo: "#listform", |
732 |
stickTo: "#listform", |
723 |
- |
|
|