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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-4 / +2 lines)
Lines 52-60 Link Here
52
[% IF ( do_it ) %]
52
[% IF ( do_it ) %]
53
	[% FOREACH mainloo IN mainloop %]
53
	[% FOREACH mainloo IN mainloop %]
54
		<h1>Catalog statistics</h1>
54
		<h1>Catalog statistics</h1>
55
	    <canvas id="catChart" width="1000" height="400"></canvas>
55
        <canvas id="catChart" width="1000" height="400"></canvas>
56
        <div id="toolbar" class="btn-toolbar"><div class="btn-group"><a id="updateChart" class="btn" href="#">Click to change to <span id="chartType">Line</span> Chart</a></div></div>
56
        <div id="toolbar" class="btn-toolbar"><div class="btn-group"><a id="updateChart" class="btn" href="#">Click to change to <span id="chartType">Line</span> Chart</a></div></div>
57
	[% IF ( mainloo.loopfilter ) %]
57
    [% IF ( mainloo.loopfilter ) %]
58
            <p>Filtered on:</p>
58
            <p>Filtered on:</p>
59
			[% FOREACH loopfilte IN mainloo.loopfilter %]
59
			[% FOREACH loopfilte IN mainloo.loopfilter %]
60
					<p>[% loopfilte.crit %] =[% loopfilte.filter %]</p>
60
					<p>[% loopfilte.crit %] =[% loopfilte.filter %]</p>
Lines 298-305 Link Here
298
    var catChart = new Chart(ctx).Bar( chartData, {});
298
    var catChart = new Chart(ctx).Bar( chartData, {});
299
299
300
    $("#updateChart").click(function() {
300
    $("#updateChart").click(function() {
301
        console.log("Updating Chart: ");
302
303
        // Replace the chart canvas element
301
        // Replace the chart canvas element
304
        $('#catChart').replaceWith('<canvas id="catChart" width="1000" height="400"></canvas>');
302
        $('#catChart').replaceWith('<canvas id="catChart" width="1000" height="400"></canvas>');
305
303
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt (-2 lines)
Lines 320-327 Link Here
320
    var circChart = new Chart(ctx).Bar( chartData, {});
320
    var circChart = new Chart(ctx).Bar( chartData, {});
321
321
322
    $("#updateChart").click(function() {
322
    $("#updateChart").click(function() {
323
        console.log("Updating Chart: ");
324
325
        // Replace the chart canvas element
323
        // Replace the chart canvas element
326
        $('#circChart').replaceWith('<canvas id="circChart" width="1000" height="400"></canvas>');
324
        $('#circChart').replaceWith('<canvas id="circChart" width="1000" height="400"></canvas>');
327
325
(-)a/reports/catalogue_stats.pl (-1 / +1 lines)
Lines 507-513 if($barcodefilter){ Link Here
507
		push @looprow,{ 'rowtitle' => ($row eq "zzEMPTY")?"NULL":$row,
507
		push @looprow,{ 'rowtitle' => ($row eq "zzEMPTY")?"NULL":$row,
508
						'loopcell' => \@loopcell,
508
						'loopcell' => \@loopcell,
509
						'hilighted' => ($hilighted *= -1 > 0),
509
						'hilighted' => ($hilighted *= -1 > 0),
510
						'totalrow' => $table{$row}->{totalrow},
510
                        'totalrow' => $table{$row}->{totalrow},
511
                        'fill' => ${$colors}[$loopcount]->{fill},
511
                        'fill' => ${$colors}[$loopcount]->{fill},
512
                        'stroke' => ${$colors}[$loopcount]->{stroke},
512
                        'stroke' => ${$colors}[$loopcount]->{stroke},
513
                        'point' => ${$colors}[$loopcount]->{point},
513
                        'point' => ${$colors}[$loopcount]->{point},
(-)a/reports/issues_stats.pl (-2 / +1 lines)
Lines 486-492 sub calculate { Link Here
486
			'rowtitle_display' => $row->{rowtitle_display},
486
			'rowtitle_display' => $row->{rowtitle_display},
487
			'rowtitle' => $rowtitle,
487
			'rowtitle' => $rowtitle,
488
			'loopcell' => \@loopcell,
488
			'loopcell' => \@loopcell,
489
			'totalrow' => $table{$rowtitle}->{totalrow},
489
            'totalrow' => $table{$rowtitle}->{totalrow},
490
            'fill' => ${$colors}[$loopcount]->{fill},
490
            'fill' => ${$colors}[$loopcount]->{fill},
491
            'stroke' => ${$colors}[$loopcount]->{stroke},
491
            'stroke' => ${$colors}[$loopcount]->{stroke},
492
            'point' => ${$colors}[$loopcount]->{point},
492
            'point' => ${$colors}[$loopcount]->{point},
493
- 

Return to bug 13219