View | Details | Raw Unified | Return to bug 9456
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-19 / +63 lines)
Lines 9-17 Link Here
9
    @import url([% themelang %]/css/print.css);
9
    @import url([% themelang %]/css/print.css);
10
</style>
10
</style>
11
    [% ELSE %][% INCLUDE 'doc-head-close.inc' %]
11
    [% ELSE %][% INCLUDE 'doc-head-close.inc' %]
12
    <style type="text/css">
13
        td table {
14
            font-size: 85%;
15
            border: 0;
16
        }
17
        td table th:first-child,
18
        td table th.sorting:first-child,
19
        td table th.sorting_asc:first-child,
20
        td table th.sorting_desc:first-child {
21
            border-right : 1px solid #99BEC9;
22
        }
23
        td table th,
24
        td table th.sorting,
25
        td table th.sorting_asc,
26
        td table th.sorting_desc {
27
            background-color: #E6F0F2;
28
            border-color: #99BEC9;
29
            border-width: 0px 0px 1px 0px;
30
        }
31
        td table td {
32
            border-width: 0px 0px 1px 0px;
33
            border-color: #B8D7E0;
34
        }
35
    </style>
12
	<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
36
	<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
13
	<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
37
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
14
	<script type="text/javascript">
38
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
39
[% INCLUDE 'datatables-strings.inc' %]
40
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>	<script type="text/javascript">
15
	//<![CDATA[
41
	//<![CDATA[
16
42
17
function placeHold () {
43
function placeHold () {
Lines 65-73 function placeHold () { Link Here
65
        $(".hold").text(_("Place Hold"));
91
        $(".hold").text(_("Place Hold"));
66
        $("#downloadcartc").empty();
92
        $("#downloadcartc").empty();
67
        yuiToolbar();
93
        yuiToolbar();
68
        $("#itemst").tablesorter({
94
        $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
69
            headers: { 0: { sorter: false }}
95
            "sDom": 't',
70
        });
96
            "aoColumnDefs": [
97
                { "aTargets": [ 0,3 ], "bSortable": false, "bSearchable": false },
98
            ],
99
            "aaSorting": [[ 1, "asc" ]],
100
            "bPaginate": false
101
        }));
102
        $(".itemstable").dataTable($.extend(true, {}, dataTablesDefaults, {
103
            "sDom": 't',
104
            "bPaginate": false
105
        }));
106
71
	});
107
	});
72
108
73
function yuiToolbar() {
109
function yuiToolbar() {
Lines 321-335 function yuiToolbar() { Link Here
321
	    [% UNLESS ( print_basket ) %]<th>&nbsp;</th>[% END %]
357
	    [% UNLESS ( print_basket ) %]<th>&nbsp;</th>[% END %]
322
	    <th>Title</th>
358
	    <th>Title</th>
323
        <th>Item type</th>
359
        <th>Item type</th>
324
	    <th>Location</th>
360
        <th>Items</th>
325
        </tr></thead>
361
        </tr></thead>
326
362
327
        [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
363
        [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
328
            [% IF ( BIBLIO_RESULT.even ) %]
329
                <tr class="highlight">
330
            [% ELSE %]
331
                <tr>
364
                <tr>
332
            [% END %]
333
            [% UNLESS ( print_basket ) %]<td>
365
            [% UNLESS ( print_basket ) %]<td>
334
                        <input type="checkbox" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" />
366
                        <input type="checkbox" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" />
335
367
Lines 351-364 function yuiToolbar() { Link Here
351
383
352
						</td>
384
						</td>
353
            <td>[% BIBLIO_RESULT.description %]</td>
385
            <td>[% BIBLIO_RESULT.description %]</td>
354
                <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %][% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
386
            <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
355
                    <p>
387
                <table class="itemstable">
356
                        [% ITEM_RESULT.branchname %] [% ITEM_RESULT.location_description %]
388
                <thead>
357
                        [% IF ( ITEM_RESULT.itemcallnumber ) %]
389
                    <th>Location</th>
358
                            ([% ITEM_RESULT.itemcallnumber %])
390
                    <th>Call number</th>
359
                        [% END %]
391
                </thead>
360
                    </p>
392
                <tbody>
361
                    [% END %][% ELSE %]This record has no items.[% END %]</td>
393
                    [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
394
                        <tr>
395
                            <td>[% ITEM_RESULT.branchname %] <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
396
                            <td>
397
                                [% IF ( ITEM_RESULT.itemcallnumber ) %]
398
                                    ([% ITEM_RESULT.itemcallnumber %])
399
                                [% END %]
400
                            </td>
401
                        </tr>
402
                    [% END %]
403
                </tbody>
404
                </table>
405
                [% ELSE %]This record has no items.[% END %]
406
            </td>
362
            </tr>
407
            </tr>
363
        [% END %]
408
        [% END %]
364
    </table></form>
409
    </table></form>
365
- 

Return to bug 9456