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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-10 / +48 lines)
Lines 1-4 Link Here
1
[% USE Branches %]
1
[% USE Branches %]
2
[% USE TablesSettings %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Reports [% IF ( do_it ) %]&rsaquo; Catalog statistics &rsaquo; Results[% ELSE %]&rsaquo; Catalog statistics[% END %]</title>
5
<title>Koha &rsaquo; Reports [% IF ( do_it ) %]&rsaquo; Catalog statistics &rsaquo; Results[% ELSE %]&rsaquo; Catalog statistics[% END %]</title>
Lines 26-39 Link Here
26
			[% END %]
27
			[% END %]
27
		[% END %]
28
		[% END %]
28
		
29
		
29
		<table>
30
        <table id="catalogue_stats">
30
			<tr>
31
            <thead>
31
				<th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
32
                <tr>
32
				[% FOREACH loopco IN mainloo.loopcol %]
33
                    <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
33
					<th>[% loopco.coltitle | html %]</th>
34
                    [% FOREACH loopco IN mainloo.loopcol %]
34
				[% END %]
35
                        <th>[% loopco.coltitle | html %]</th>
35
				<th>TOTAL</th>
36
                    [% END %]
36
			</tr>
37
                    <th>TOTAL</th>
38
                </tr>
39
            </thead>
40
            <tbody>
37
				[% FOREACH loopro IN mainloo.looprow %]
41
				[% FOREACH loopro IN mainloo.looprow %]
38
					<tr>
42
					<tr>
39
						[% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
43
						[% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
Lines 50-57 Link Here
50
						</td>
54
						</td>
51
					</tr>
55
					</tr>
52
				[% END %]
56
				[% END %]
57
            </tbody>
58
            <tfoot>
53
				<tr>
59
				<tr>
54
					<th>TOTAL</th>
60
                    <th>TOTAL (all results)</th>
55
					[% FOREACH loopfoote IN mainloo.loopfooter %]
61
					[% FOREACH loopfoote IN mainloo.loopfooter %]
56
						<th>
62
						<th>
57
							[% loopfoote.totalcol | html %]
63
							[% loopfoote.totalcol | html %]
Lines 59-64 Link Here
59
					[% END %]
65
					[% END %]
60
					<th>[% mainloo.total | html %]</th>
66
					<th>[% mainloo.total | html %]</th>
61
				</tr>
67
				</tr>
68
            </tfoot>
62
		</table>
69
		</table>
63
	[% END %]
70
	[% END %]
64
[% ELSE %]
71
[% ELSE %]
Lines 303-308 Link Here
303
310
304
[% MACRO jsinclude BLOCK %]
311
[% MACRO jsinclude BLOCK %]
305
    [% INCLUDE 'calendar.inc' %]
312
    [% INCLUDE 'calendar.inc' %]
313
    [% INCLUDE 'datatables.inc' %]
314
    [% INCLUDE 'columns_settings.inc' %]
306
    <script>
315
    <script>
307
        function changeRemovedDateTrStatus() {
316
        function changeRemovedDateTrStatus() {
308
            var Cellvalue = $("input[name='Cellvalue']:checked").val();
317
            var Cellvalue = $("input[name='Cellvalue']:checked").val();
Lines 335-340 Link Here
335
                changeRemovedDateTrStatus();
344
                changeRemovedDateTrStatus();
336
            });
345
            });
337
            changeRemovedDateTrStatus();
346
            changeRemovedDateTrStatus();
347
348
            columns_settings = [% FILTER collapse %]
349
                [
350
                    {
351
                        "is_hidden": 0,
352
                        "columnname": "[% mainloo.line | html %]_[% mainloo.column | html %]",
353
                        "cannot_be_toggled": 1,
354
                        "cannot_be_modified": 1
355
                    },
356
                    [% FOREACH loopco IN mainloo.loopcol %]
357
                        {
358
                            "is_hidden": 0,
359
                            "columnname": "[% loopco.coltitle | html %]",
360
                            "cannot_be_toggled": 0,
361
                            "cannot_be_modified": 0
362
                        },
363
                    [% END %]
364
                    {
365
                        "is_hidden": 0,
366
                        "columnname": "total",
367
                        "cannot_be_toggled": 0,
368
                        "cannot_be_modified": 0
369
                    },
370
                ];
371
            [% END %]
372
373
            var catalogue_stats = KohaTable("catalogue_stats", {
374
                'autoWidth': false,
375
                'paging': false,
376
            }, columns_settings );
338
        });
377
        });
339
    </script>
378
    </script>
340
[% END %]
379
[% END %]
341
- 

Return to bug 26091