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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt (-5 / +37 lines)
Lines 1-3 Link Here
1
[% USE Branches %]
2
[% USE KohaDates %]
3
[% USE ItemTypes %]
1
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Reports &rsaquo; Patrons with the most checkouts</title>
5
<title>Koha &rsaquo; Reports &rsaquo; Patrons with the most checkouts</title>
3
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
Lines 57-68 function Dopop(link) { Link Here
57
60
58
61
59
	[% FOREACH mainloo IN mainloop %]
62
	[% FOREACH mainloo IN mainloop %]
60
        <h1>Top [% mainloo.limit %] List patrons for checkouts</h1>
63
        <h1>Patrons with the most checkouts</h1>
61
		[% IF ( mainloo.loopfilter ) %]
64
		[% IF ( mainloo.loopfilter ) %]
62
            <p>Filtered on:</p>
65
            [% IF mainloo.loopfilter.size %]
63
			[% FOREACH loopfilte IN mainloo.loopfilter %]
66
                <p>Filtered on:</p>
64
					<p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %]  [% END %]</p>
67
                <ul>
65
			[% END %]
68
                    [% FOREACH loopfilte IN mainloo.loopfilter %]
69
                        <li>
70
                            [% SWITCH loopfilte.crit -%]
71
                                [% CASE "Issue From" -%]
72
                                    Checked out after [% loopfilte.filter | $KohaDates %]
73
                                [% CASE "Issue To" -%]
74
                                    Checked out before [% loopfilte.filter | $KohaDates %]
75
                                [% CASE "Return From" -%]
76
                                    Checked in after [% loopfilte.filter | $KohaDates %]
77
                                [% CASE "Return To" -%]
78
                                    Checked in before [% loopfilte.filter | $KohaDates %]
79
                                [% CASE "Branch" -%]
80
                                    Library is [% Branches.GetName( loopfilte.filter ) %]
81
                                [% CASE "Doc Type" -%]
82
                                    Item type is [% ItemTypes.GetDescription( loopfilte.filter ) %]
83
                                [% CASE "Bor Cat" -%]
84
                                    Patron category code is [% loopfilte.filter %]
85
                                [% CASE "Day" -%]
86
                                    Day is [% loopfilte.filter %]
87
                                [% CASE "Month" -%]
88
                                    Month is [% loopfilte.filter %]
89
                                [% CASE "Year" -%]
90
                                    Year is [% loopfilte.filter %]
91
                                [% CASE # default case -%]
92
                                    [% loopfilte.crit %] = [% loopfilte.filter %]
93
                            [% END -%]
94
                        </li>
95
                    [% END %]
96
                </ul>
97
            [% END %]
66
		[% END %]
98
		[% END %]
67
		
99
		
68
		<table>
100
		<table>
(-)a/reports/bor_issues_top.pl (-2 / +1 lines)
Lines 181-187 sub calculate { Link Here
181
                $cell{err} = 1 if (@$filters[$i]<@$filters[$i-1]) ;
181
                $cell{err} = 1 if (@$filters[$i]<@$filters[$i-1]) ;
182
            }
182
            }
183
            # format the dates filters, otherwise just fill as is
183
            # format the dates filters, otherwise just fill as is
184
            $cell{filter} .= ($i>=4) ? @$filters[$i] : format_date(@$filters[$i]);
184
            $cell{filter} .= @$filters[$i];
185
			defined ($cellmap[$i]) and
185
			defined ($cellmap[$i]) and
186
				$cell{crit} .= $cellmap[$i];
186
				$cell{crit} .= $cellmap[$i];
187
            push @loopfilter, \%cell;
187
            push @loopfilter, \%cell;
188
- 

Return to bug 12587