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

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (-1 / +9 lines)
Lines 2579-2584 fieldset.rows table.mceListBox { Link Here
2579
    box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .5);
2579
    box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .5);
2580
}
2580
}
2581
2581
2582
.inline {
2583
    display : inline;
2584
}
2585
2586
.nowrap {
2587
    white-space: nowrap;
2588
}
2589
2582
.tag_editor {
2590
.tag_editor {
2583
    background: transparent url("../../img/edit-tag.png") top left no-repeat;
2591
    background: transparent url("../../img/edit-tag.png") top left no-repeat;
2584
    display : block;
2592
    display : block;
Lines 2589-2592 fieldset.rows table.mceListBox { Link Here
2589
    text-indent: 100%;
2597
    text-indent: 100%;
2590
    white-space: nowrap;
2598
    white-space: nowrap;
2591
    overflow: hidden;
2599
    overflow: hidden;
2592
}
2600
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-21 / +85 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="[% themelang %]/css/datatables.css" />
14
	<script type="text/javascript">
38
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
39
[% INCLUDE 'datatables-strings.inc' %]
40
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>	<script type="text/javascript">
15
	//<![CDATA[
41
	//<![CDATA[
16
42
17
function placeHold () {
43
function placeHold () {
Lines 62-71 function placeHold () { Link Here
62
        $(".holdsep").text("| ");
88
        $(".holdsep").text("| ");
63
        $(".hold").text(_("Place Hold"));
89
        $(".hold").text(_("Place Hold"));
64
        $("#downloadcartc").empty();
90
        $("#downloadcartc").empty();
65
        yuiToolbar();
91
66
        $("#itemst").tablesorter({
92
        /* Define two custom functions (asc and desc) for string sorting */
67
            headers: { 0: { sorter: false }}
93
        jQuery.fn.dataTableExt.oSort['callnumbers-asc']  = function(x,y) {
68
        });
94
                var x_array = x.split("<div>");
95
                var y_array = y.split("<div>");
96
97
                /* Pop the first elements, they are empty strings */
98
                x_array.shift();
99
                y_array.shift();
100
101
                x_array.sort();
102
                y_array.sort();
103
104
                x = x_array.shift();
105
                y = y_array.shift();
106
107
                return ((x < y) ? -1 : ((x > y) ?  1 : 0));
108
        };
109
110
        jQuery.fn.dataTableExt.oSort['callnumbers-desc'] = function(x,y) {
111
                var x_array = x.split("<div>");
112
                var y_array = y.split("<div>");
113
114
                /* Pop the first elements, they are empty strings */
115
                x_array.shift();
116
                y_array.shift();
117
118
                x_array.sort();
119
                y_array.sort();
120
121
                x = x_array.pop();
122
                y = y_array.pop();
123
124
                return ((x < y) ?  1 : ((x > y) ? -1 : 0));
125
        };
126
127
        $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
128
            "sDom": 't',
129
            "aoColumnDefs": [
130
                { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
131
                { "aTargets": [ 3 ], "sType": 'callnumbers' },
132
            ],
133
            "aaSorting": [[ 1, "asc" ]],
134
            "bPaginate": false
135
        }));
136
69
	});
137
	});
70
	//]]>
138
	//]]>
71
	</script>
139
	</script>
Lines 279-301 function placeHold () { Link Here
279
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
347
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
280
[% END %]
348
[% END %]
281
349
282
283
[% END %]
350
[% END %]
351
284
</p>
352
</p>
285
    <table id="itemst">
353
    <table id="itemst">
286
	<thead><tr>
354
	<thead><tr>
287
	    [% UNLESS ( print_basket ) %]<th>&nbsp;</th>[% END %]
355
	    [% UNLESS ( print_basket ) %]<th>&nbsp;</th>[% END %]
288
	    <th>Title</th>
356
	    <th>Title</th>
289
        <th>Item type</th>
357
        <th>Item type</th>
290
	    <th>Location</th>
358
        <th>Items</th>
291
        </tr></thead>
359
        </tr></thead>
292
360
293
        [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
361
        [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
294
            [% IF ( BIBLIO_RESULT.even ) %]
295
                <tr class="highlight">
296
            [% ELSE %]
297
                <tr>
362
                <tr>
298
            [% END %]
299
            [% UNLESS ( print_basket ) %]<td>
363
            [% UNLESS ( print_basket ) %]<td>
300
                        <input type="checkbox" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" />
364
                        <input type="checkbox" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" />
301
365
Lines 317-330 function placeHold () { Link Here
317
381
318
						</td>
382
						</td>
319
            <td>[% BIBLIO_RESULT.description %]</td>
383
            <td>[% BIBLIO_RESULT.description %]</td>
320
                <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %][% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
384
            <td>
321
                    <p>
385
                [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
322
                        [% ITEM_RESULT.branchname %] [% ITEM_RESULT.location_description %]
386
                    [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
323
                        [% IF ( ITEM_RESULT.itemcallnumber ) %]
387
                        <div><span class="nowrap"><strong>[% ITEM_RESULT.itemcallnumber %]</strong> [% ITEM_RESULT.branchname %] <span class="shelvingloc inline">[% ITEM_RESULT.location_description %]</span></span></div>
324
                            ([% ITEM_RESULT.itemcallnumber %])
388
                    [% END %]
325
                        [% END %]
389
                [% ELSE %]
326
                    </p>
390
                    This record has no items.
327
                    [% END %][% ELSE %]This record has no items.[% END %]</td>
391
                [% END %]
392
            </td>
328
            </tr>
393
            </tr>
329
        [% END %]
394
        [% END %]
330
    </table></form>
395
    </table></form>
331
- 

Return to bug 9456