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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt (-28 / +30 lines)
Lines 79-116 Link Here
79
                    </p>
79
                    </p>
80
                [% END %]
80
                [% END %]
81
            [% END %]
81
            [% END %]
82
82
            <div class="page-section">
83
            <table>
83
                <table>
84
                <tr>
85
                    <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
86
                    [% FOREACH loopco IN mainloo.loopcol %]
87
                        <th>[% loopco.coltitle | html %]</th>
88
                    [% END %]
89
                    <th>TOTAL</th>
90
                </tr>
91
                [% FOREACH loopro IN mainloo.looprow %]
92
                    <tr>
84
                    <tr>
93
                        <td [% IF loopro.hilighted %]class="hilighted"[% END %]> [% loopro.rowtitle | html %]</td>
85
                        <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
94
                        [% FOREACH loopcel IN loopro.loopcell %]
86
                        [% FOREACH loopco IN mainloo.loopcol %]
95
                            <td>
87
                            <th>[% loopco.coltitle | html %]</th>
96
                                [% IF ( loopcel.value ) %]
97
                                    [% loopcel.value | html %]
98
                                [% ELSE %]
99
                                    &nbsp;
100
                                [% END %]
101
                            </td>
102
                        [% END %]
88
                        [% END %]
103
                        <td> [% loopro.totalrow | html %] </td>
89
                        <th>TOTAL</th>
104
                    </tr>
90
                    </tr>
105
                [% END %]
91
                    [% FOREACH loopro IN mainloo.looprow %]
106
                <tr>
92
                        <tr>
107
                    <th>TOTAL</th>
93
                            <td [% IF loopro.hilighted %]class="hilighted"[% END %]> [% loopro.rowtitle | html %]</td>
108
                    [% FOREACH loopfoote IN mainloo.loopfooter %]
94
                            [% FOREACH loopcel IN loopro.loopcell %]
109
                        <th> [% loopfoote.totalcol | html %] </th>
95
                                <td>
96
                                    [% IF ( loopcel.value ) %]
97
                                        [% loopcel.value | html %]
98
                                    [% ELSE %]
99
                                        &nbsp;
100
                                    [% END %]
101
                                </td>
102
                            [% END %]
103
                            <td> [% loopro.totalrow | html %] </td>
104
                        </tr>
110
                    [% END %]
105
                    [% END %]
111
                    <th>[% mainloo.total | html %]</th>
106
                    <tr>
112
                </tr>
107
                        <th>TOTAL</th>
113
            </table>
108
                        [% FOREACH loopfoote IN mainloo.loopfooter %]
109
                            <th> [% loopfoote.totalcol | html %] </th>
110
                        [% END %]
111
                        <th>[% mainloo.total | html %]</th>
112
                    </tr>
113
                </table>
114
            </div>
115
            <!-- /.page-section -->
114
        [% END %]
116
        [% END %]
115
    [% ELSE %]
117
    [% ELSE %]
116
        <form method="get" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
118
        <form method="get" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt (-27 / +30 lines)
Lines 80-115 Link Here
80
                [% END %]
80
                [% END %]
81
            [% END %]
81
            [% END %]
82
82
83
            <table>
83
            <div class="page-section">
84
                <tr>
84
                <table>
85
                    <th rowspan="2">Rank</th>
86
                    <th rowspan="2">Patron</th>
87
                    <th rowspan="2">Total</th>
88
                    [% FOREACH loopco IN mainloo.loopcol %]
89
                        <th>[% loopco.coltitle | html %]</th>
90
                    [% END %]
91
                </tr>
92
                <tr>
93
                    [% FOREACH loopco IN mainloo.loopcol %]
94
                        <th>Checkout count</th>
95
                    [% END %]
96
                </tr>
97
                [% FOREACH loopro IN mainloo.looprow %]
98
                    <tr>
85
                    <tr>
99
                        <td> [% loopro.rowtitle | html %]</td>
86
                        <th rowspan="2">Rank</th>
100
                        <td>
87
                        <th rowspan="2">Patron</th>
101
                            [% IF ( loopro.reference ) %]
88
                        <th rowspan="2">Total</th>
102
                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.reference | uri %]"> [% IF ( loopro.patron ) %][% loopro.patron | html %][% END %] </a>
89
                        [% FOREACH loopco IN mainloo.loopcol %]
103
                            [% ELSE %]
90
                            <th>[% loopco.coltitle | html %]</th>
104
                                [% IF ( loopro.patron ) %][% loopro.patron | html %][% END %]
105
                            [% END %]
106
                        </td>
107
                        [% FOREACH loopcel IN loopro.loopcell %]
108
                            <td> [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %] </td>
109
                        [% END %]
91
                        [% END %]
110
                    </tr>
92
                    </tr>
111
                [% END %]
93
                    <tr>
112
            </table>
94
                        [% FOREACH loopco IN mainloo.loopcol %]
95
                            <th>Checkout count</th>
96
                        [% END %]
97
                    </tr>
98
                    [% FOREACH loopro IN mainloo.looprow %]
99
                        <tr>
100
                            <td> [% loopro.rowtitle | html %]</td>
101
                            <td>
102
                                [% IF ( loopro.reference ) %]
103
                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.reference | uri %]"> [% IF ( loopro.patron ) %][% loopro.patron | html %][% END %] </a>
104
                                [% ELSE %]
105
                                    [% IF ( loopro.patron ) %][% loopro.patron | html %][% END %]
106
                                [% END %]
107
                            </td>
108
                            [% FOREACH loopcel IN loopro.loopcell %]
109
                                <td> [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %] </td>
110
                            [% END %]
111
                        </tr>
112
                    [% END %]
113
                </table>
114
            </div>
115
            <!-- /.page-section -->
113
        [% END %]
116
        [% END %]
114
    [% ELSE %]
117
    [% ELSE %]
115
        <h1>Patrons with the most checkouts</h1>
118
        <h1>Patrons with the most checkouts</h1>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tt (-13 / +16 lines)
Lines 49-70 Link Here
49
                [% END %]
49
                [% END %]
50
            [% END %]
50
            [% END %]
51
51
52
            <table>
52
            <div class="page-section">
53
                <tr>
53
                <table>
54
                    <th>Num/Patrons</th>
55
                    [% FOREACH loopco IN mainloo.loopcol %]
56
                        <th>[% loopco.coltitle | html %]</th>
57
                    [% END %]
58
                </tr>
59
                [% FOREACH loopro IN mainloo.looprow %]
60
                    <tr>
54
                    <tr>
61
                        <td>[% loopro.rowtitle | html %]</td>
55
                        <th>Num/Patrons</th>
62
                        [% FOREACH loopcel IN loopro.loopcell %]
56
                        [% FOREACH loopco IN mainloo.loopcol %]
63
                            <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] </td>
57
                            <th>[% loopco.coltitle | html %]</th>
64
                        [% END %]
58
                        [% END %]
65
                    </tr>
59
                    </tr>
66
                [% END %]
60
                    [% FOREACH loopro IN mainloo.looprow %]
67
            </table>
61
                        <tr>
62
                            <td>[% loopro.rowtitle | html %]</td>
63
                            [% FOREACH loopcel IN loopro.loopcell %]
64
                                <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] </td>
65
                            [% END %]
66
                        </tr>
67
                    [% END %]
68
                </table>
69
            </div>
70
            <!-- /.page-section -->
68
        [% END %]
71
        [% END %]
69
    [% ELSE %]
72
    [% ELSE %]
70
        <h1>Patrons with no checkouts</h1>
73
        <h1>Patrons with no checkouts</h1>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt (-21 / +24 lines)
Lines 62-92 Link Here
62
                    <p> [% loopfilte.crit | html %] = [% loopfilte.filter | html %] </p>
62
                    <p> [% loopfilte.crit | html %] = [% loopfilte.filter | html %] </p>
63
                [% END %]
63
                [% END %]
64
            [% END %]
64
            [% END %]
65
            <table>
65
            <div class="page-section">
66
                <tr>
66
                <table>
67
                    <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
68
                    [% FOREACH loopco IN mainloo.loopcol %]
69
                        <th>[% IF ( loopco.coltitle_display ) %][% loopco.coltitle_display | html %][% ELSE %][% loopco.coltitle | html %][% END %] </th>
70
                    [% END %]
71
                    <th>TOTAL</th>
72
                </tr>
73
                [% FOREACH loopro IN mainloo.looprow %]
74
                    <tr>
67
                    <tr>
75
                        <td>[% IF ( loopro.rowtitle_display ) %][% loopro.rowtitle_display | html %][% ELSE %][% loopro.rowtitle | html %][% END %] </td>
68
                        <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
76
                        [% FOREACH loopcel IN loopro.loopcell %]
69
                        [% FOREACH loopco IN mainloo.loopcol %]
77
                            <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% ELSE %]&nbsp;[% END %] </td>
70
                            <th>[% IF ( loopco.coltitle_display ) %][% loopco.coltitle_display | html %][% ELSE %][% loopco.coltitle | html %][% END %] </th>
78
                        [% END %]
71
                        [% END %]
79
                        <td>[% loopro.totalrow | html %]</td>
72
                        <th>TOTAL</th>
80
                    </tr>
73
                    </tr>
81
                [% END %]
74
                    [% FOREACH loopro IN mainloo.looprow %]
82
                <tr>
75
                        <tr>
83
                    <th>TOTAL</th>
76
                            <td>[% IF ( loopro.rowtitle_display ) %][% loopro.rowtitle_display | html %][% ELSE %][% loopro.rowtitle | html %][% END %] </td>
84
                    [% FOREACH loopfoote IN mainloo.loopfooter %]
77
                            [% FOREACH loopcel IN loopro.loopcell %]
85
                        <th>[% loopfoote.totalcol | html %]</th>
78
                                <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% ELSE %]&nbsp;[% END %] </td>
79
                            [% END %]
80
                            <td>[% loopro.totalrow | html %]</td>
81
                        </tr>
86
                    [% END %]
82
                    [% END %]
87
                    <th>[% mainloo.total | html %]</th>
83
                    <tr>
88
                </tr>
84
                        <th>TOTAL</th>
89
            </table>
85
                        [% FOREACH loopfoote IN mainloo.loopfooter %]
86
                            <th>[% loopfoote.totalcol | html %]</th>
87
                        [% END %]
88
                        <th>[% mainloo.total | html %]</th>
89
                    </tr>
90
                </table>
91
            </div>
92
            <!-- /.page-section -->
90
        [% END %]
93
        [% END %]
91
    [% ELSE %]
94
    [% ELSE %]
92
        <form method="get" action="/cgi-bin/koha/reports/borrowers_stats.pl">
95
        <form method="get" action="/cgi-bin/koha/reports/borrowers_stats.pl">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt (-24 / +27 lines)
Lines 55-87 Link Here
55
                [% END %]
55
                [% END %]
56
            [% END %]
56
            [% END %]
57
57
58
            <table>
58
            <div class="page-section">
59
                <tr>
59
                <table>
60
                    <th>Rank/Biblioitemnumbers</th> [% FOREACH loopco IN mainloo.loopcol %]
61
                        <th colspan="2">[% loopco.coltitle | html %]</th>
62
                    [% END %]</tr
63
                >
64
                <tr>
65
                    <th>&nbsp;</th>
66
                    [% FOREACH loopco IN mainloo.loopcol %]
67
                        <th>Item</th>
68
                        <th>Count of checkouts</th>
69
                    [% END %]
70
                </tr>
71
                [% FOREACH loopro IN mainloo.looprow %]
72
                    <tr>
60
                    <tr>
73
                        <td>[% loopro.rowtitle | html %]</td>
61
                        <th>Rank/Biblioitemnumbers</th> [% FOREACH loopco IN mainloo.loopcol %]
74
                        [% FOREACH loopcel IN loopro.loopcell %]
62
                            <th colspan="2">[% loopco.coltitle | html %]</th>
75
                            <td>
63
                        [% END %]</tr
76
                                [% IF ( loopcel.reference ) %]
64
                    >
77
                                    <a href="[% PROCESS biblio_a_href biblionumber => loopcel.reference %]">[% loopcel.value | html %]</a>
65
                    <tr>
78
                                [% END %]
66
                        <th>&nbsp;</th>
79
                            </td>
67
                        [% FOREACH loopco IN mainloo.loopcol %]
80
                            <td> [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %] </td>
68
                            <th>Item</th>
69
                            <th>Count of checkouts</th>
81
                        [% END %]
70
                        [% END %]
82
                    </tr>
71
                    </tr>
83
                [% END %]
72
                    [% FOREACH loopro IN mainloo.looprow %]
84
            </table>
73
                        <tr>
74
                            <td>[% loopro.rowtitle | html %]</td>
75
                            [% FOREACH loopcel IN loopro.loopcell %]
76
                                <td>
77
                                    [% IF ( loopcel.reference ) %]
78
                                        <a href="[% PROCESS biblio_a_href biblionumber => loopcel.reference %]">[% loopcel.value | html %]</a>
79
                                    [% END %]
80
                                </td>
81
                                <td> [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %] </td>
82
                            [% END %]
83
                        </tr>
84
                    [% END %]
85
                </table>
86
            </div>
87
            <!-- /.page-section -->
85
        [% END %]
88
        [% END %]
86
    [% ELSE %]
89
    [% ELSE %]
87
        <h1>Most-circulated items</h1>
90
        <h1>Most-circulated items</h1>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-33 / +36 lines)
Lines 53-95 Link Here
53
                [% END %]
53
                [% END %]
54
            [% END %]
54
            [% END %]
55
55
56
            <table id="catalogue_stats">
56
            <div class="page-section">
57
                <thead>
57
                <table id="catalogue_stats">
58
                    <tr>
58
                    <thead>
59
                        <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
60
                        [% FOREACH loopco IN mainloo.loopcol %]
61
                            <th>[% loopco.coltitle | html %]</th>
62
                        [% END %]
63
                        <th>TOTAL</th>
64
                    </tr>
65
                </thead>
66
                <tbody>
67
                    [% FOREACH loopro IN mainloo.looprow %]
68
                        <tr>
59
                        <tr>
69
                            <td> [% loopro.rowtitle | html %]</td>
60
                            <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
70
                            [% FOREACH loopcel IN loopro.loopcell %]
61
                            [% FOREACH loopco IN mainloo.loopcol %]
71
                                <td>
62
                                <th>[% loopco.coltitle | html %]</th>
72
                                    [% IF ( loopcel.value ) %]
73
                                        [% loopcel.value | html %]
74
                                    [% ELSE %]
75
                                        &nbsp;
76
                                    [% END %]
77
                                </td>
78
                            [% END %]
63
                            [% END %]
79
                            <td> [% loopro.totalrow | html %] </td>
64
                            <th>TOTAL</th>
80
                        </tr>
65
                        </tr>
81
                    [% END %]
66
                    </thead>
82
                </tbody>
67
                    <tbody>
83
                <tfoot>
68
                        [% FOREACH loopro IN mainloo.looprow %]
84
                    <tr>
69
                            <tr>
85
                        <th>TOTAL (all results)</th>
70
                                <td> [% loopro.rowtitle | html %]</td>
86
                        [% FOREACH loopfoote IN mainloo.loopfooter %]
71
                                [% FOREACH loopcel IN loopro.loopcell %]
87
                            <th> [% loopfoote.totalcol | html %] </th>
72
                                    <td>
73
                                        [% IF ( loopcel.value ) %]
74
                                            [% loopcel.value | html %]
75
                                        [% ELSE %]
76
                                            &nbsp;
77
                                        [% END %]
78
                                    </td>
79
                                [% END %]
80
                                <td> [% loopro.totalrow | html %] </td>
81
                            </tr>
88
                        [% END %]
82
                        [% END %]
89
                        <th>[% mainloo.total | html %]</th>
83
                    </tbody>
90
                    </tr>
84
                    <tfoot>
91
                </tfoot>
85
                        <tr>
92
            </table>
86
                            <th>TOTAL (all results)</th>
87
                            [% FOREACH loopfoote IN mainloo.loopfooter %]
88
                                <th> [% loopfoote.totalcol | html %] </th>
89
                            [% END %]
90
                            <th>[% mainloo.total | html %]</th>
91
                        </tr>
92
                    </tfoot>
93
                </table>
94
            </div>
95
            <!-- /.page-section -->
93
        [% END %]
96
        [% END %]
94
    [% ELSE %]
97
    [% ELSE %]
95
        <form method="get" action="/cgi-bin/koha/reports/catalogue_stats.pl">
98
        <form method="get" action="/cgi-bin/koha/reports/catalogue_stats.pl">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt (-21 / +24 lines)
Lines 49-79 Link Here
49
                [% END %]
49
                [% END %]
50
            [% END %]
50
            [% END %]
51
51
52
            <table>
52
            <div class="page-section">
53
                <tr>
53
                <table>
54
                    <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
55
                    [% FOREACH loopco IN mainloo.loopcol %]
56
                        <th>[% loopco.coltitle | html %]</th>
57
                    [% END %]
58
                    <th>TOTAL</th>
59
                </tr>
60
                [% FOREACH loopro IN mainloo.looprow %]
61
                    <tr>
54
                    <tr>
62
                        <td [% IF loopro.hilighted %]class="hilighted"[% END %]> [% loopro.rowtitle | html %]</td>
55
                        <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
63
                        [% FOREACH loopcel IN loopro.loopcell %]
56
                        [% FOREACH loopco IN mainloo.loopcol %]
64
                            <td [% IF loopcel.hilighted %]class="hilighted"[% END %]> [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] </td>
57
                            <th>[% loopco.coltitle | html %]</th>
65
                        [% END %]
58
                        [% END %]
66
                        <td> [% loopro.totalrow | html %] </td>
59
                        <th>TOTAL</th>
67
                    </tr>
60
                    </tr>
68
                [% END %]
61
                    [% FOREACH loopro IN mainloo.looprow %]
69
                <tr>
62
                        <tr>
70
                    <th>TOTAL</th>
63
                            <td [% IF loopro.hilighted %]class="hilighted"[% END %]> [% loopro.rowtitle | html %]</td>
71
                    [% FOREACH loopfoote IN mainloo.loopfooter %]
64
                            [% FOREACH loopcel IN loopro.loopcell %]
72
                        <th> [% loopfoote.totalcol | html %] </th>
65
                                <td [% IF loopcel.hilighted %]class="hilighted"[% END %]> [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] </td>
66
                            [% END %]
67
                            <td> [% loopro.totalrow | html %] </td>
68
                        </tr>
73
                    [% END %]
69
                    [% END %]
74
                    <th>[% mainloo.total | html %]</th>
70
                    <tr>
75
                </tr>
71
                        <th>TOTAL</th>
76
            </table>
72
                        [% FOREACH loopfoote IN mainloo.loopfooter %]
73
                            <th> [% loopfoote.totalcol | html %] </th>
74
                        [% END %]
75
                        <th>[% mainloo.total | html %]</th>
76
                    </tr>
77
                </table>
78
            </div>
79
            <!-- /.page-section -->
77
        [% END %]
80
        [% END %]
78
    [% ELSE %]
81
    [% ELSE %]
79
        <form method="get" action="/cgi-bin/koha/reports/issues_avg_stats.pl">
82
        <form method="get" action="/cgi-bin/koha/reports/issues_avg_stats.pl">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt (-21 / +24 lines)
Lines 104-134 Link Here
104
                </ul>
104
                </ul>
105
            [% END %]
105
            [% END %]
106
106
107
            <table>
107
            <div class="page-section">
108
                <tr>
108
                <table>
109
                    <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
110
                    [% FOREACH loopco IN mainloo.loopcol %]
111
                        <th>[% loopco.coltitle_display | html %]</th>
112
                    [% END %]
113
                    <th>TOTAL</th>
114
                </tr>
115
                [% FOREACH loopro IN mainloo.looprow %]
116
                    <tr>
109
                    <tr>
117
                        <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" | html %]</td>
110
                        <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
118
                        [% FOREACH loopcel IN loopro.loopcell %]
111
                        [% FOREACH loopco IN mainloo.loopcol %]
119
                            <td>[% loopcel.value || 0 | html %]</td>
112
                            <th>[% loopco.coltitle_display | html %]</th>
120
                        [% END %]
113
                        [% END %]
121
                        <td>[% loopro.totalrow | html %]</td>
114
                        <th>TOTAL</th>
122
                    </tr>
115
                    </tr>
123
                [% END %]
116
                    [% FOREACH loopro IN mainloo.looprow %]
124
                <tr>
117
                        <tr>
125
                    <th>TOTAL</th>
118
                            <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" | html %]</td>
126
                    [% FOREACH loopfoote IN mainloo.loopfooter %]
119
                            [% FOREACH loopcel IN loopro.loopcell %]
127
                        <th>[% loopfoote.totalcol | html %]</th>
120
                                <td>[% loopcel.value || 0 | html %]</td>
121
                            [% END %]
122
                            <td>[% loopro.totalrow | html %]</td>
123
                        </tr>
128
                    [% END %]
124
                    [% END %]
129
                    <th>[% mainloo.total | html %]</th>
125
                    <tr>
130
                </tr>
126
                        <th>TOTAL</th>
131
            </table>
127
                        [% FOREACH loopfoote IN mainloo.loopfooter %]
128
                            <th>[% loopfoote.totalcol | html %]</th>
129
                        [% END %]
130
                        <th>[% mainloo.total | html %]</th>
131
                    </tr>
132
                </table>
133
            </div>
134
            <!-- /.page-section -->
132
        [% END %]
135
        [% END %]
133
    [% ELSE %]
136
    [% ELSE %]
134
        <form method="get" action="/cgi-bin/koha/reports/issues_stats.pl">
137
        <form method="get" action="/cgi-bin/koha/reports/issues_stats.pl">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt (-51 / +54 lines)
Lines 76-136 Link Here
76
                <div class="lostitems-table_table_controls"> </div>
76
                <div class="lostitems-table_table_controls"> </div>
77
            [% END %]
77
            [% END %]
78
78
79
            <table id="lostitems-table">
79
            <div class="page-section">
80
                <thead>
80
                <table id="lostitems-table">
81
                    <tr>
81
                    <thead>
82
                        [% IF csv_profiles.count %]
83
                            <th class="NoSort"></th>
84
                        [% END %]
85
                        <th>Title</th>
86
                        <th>Author</th>
87
                        <th>Lost status</th>
88
                        <th>Lost on</th>
89
                        <th>Barcode</th>
90
                        <th>Call number</th>
91
                        <th>Date last seen</th>
92
                        <th>Price</th>
93
                        <th>Rep.price</th>
94
                        <th>Library</th>
95
                        <th>Item type</th>
96
                        <th>Collection</th>
97
                        <th>Current library</th>
98
                        <th>Location</th>
99
                        <th>Not for loan status</th>
100
                        <th>Notes</th>
101
                    </tr>
102
                </thead>
103
                <tbody>
104
                    [% FOREACH item IN items %]
105
                        <tr>
82
                        <tr>
106
                            [% IF csv_profiles.count %]
83
                            [% IF csv_profiles.count %]
107
                                <td style="text-align:center;vertical-align:middle">
84
                                <th class="NoSort"></th>
108
                                    <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
109
                                </td>
110
                            [% END %]
85
                            [% END %]
111
                            <td>
86
                            <th>Title</th>
112
                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | uri %]">[% item.biblio.title | html %]</a>
87
                            <th>Author</th>
113
                            </td>
88
                            <th>Lost status</th>
114
                            <td>[% item.biblio.author | html %]</td>
89
                            <th>Lost on</th>
115
                            <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) | html %] </td
90
                            <th>Barcode</th>
116
                            ><td data-order="[% item.itemlost_on | html %]">[% item.itemlost_on | $KohaDates %]</td>
91
                            <th>Call number</th>
117
                            <td>
92
                            <th>Date last seen</th>
118
                                <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber | uri %]">[% item.barcode | html %]</a>
93
                            <th>Price</th>
119
                            </td>
94
                            <th>Rep.price</th>
120
                            <td>[% item.itemcallnumber | html %]</td>
95
                            <th>Library</th>
121
                            <td data-order="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates with_hours => 1 %]</td>
96
                            <th>Item type</th>
122
                            <td>[% item.price | $Price %]</td>
97
                            <th>Collection</th>
123
                            <td>[% item.replacementprice | $Price %]</td>
98
                            <th>Current library</th>
124
                            <td>[% Branches.GetName(item.homebranch) | html %]</td>
99
                            <th>Location</th>
125
                            <td>[% ItemTypes.GetDescription(item.effective_itemtype) | html %]</td>
100
                            <th>Not for loan status</th>
126
                            <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td>
101
                            <th>Notes</th>
127
                            <td>[% Branches.GetName(item.holdingbranch) | html %]</td>
128
                            <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]</td>
129
                            <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %] </td><td>[% item.itemnotes | $raw %]</td>
130
                        </tr>
102
                        </tr>
131
                    [% END %]
103
                    </thead>
132
                </tbody>
104
                    <tbody>
133
            </table>
105
                        [% FOREACH item IN items %]
106
                            <tr>
107
                                [% IF csv_profiles.count %]
108
                                    <td style="text-align:center;vertical-align:middle">
109
                                        <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
110
                                    </td>
111
                                [% END %]
112
                                <td>
113
                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | uri %]">[% item.biblio.title | html %]</a>
114
                                </td>
115
                                <td>[% item.biblio.author | html %]</td>
116
                                <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) | html %] </td
117
                                ><td data-order="[% item.itemlost_on | html %]">[% item.itemlost_on | $KohaDates %]</td>
118
                                <td>
119
                                    <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber | uri %]">[% item.barcode | html %]</a>
120
                                </td>
121
                                <td>[% item.itemcallnumber | html %]</td>
122
                                <td data-order="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates with_hours => 1 %]</td>
123
                                <td>[% item.price | $Price %]</td>
124
                                <td>[% item.replacementprice | $Price %]</td>
125
                                <td>[% Branches.GetName(item.homebranch) | html %]</td>
126
                                <td>[% ItemTypes.GetDescription(item.effective_itemtype) | html %]</td>
127
                                <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td>
128
                                <td>[% Branches.GetName(item.holdingbranch) | html %]</td>
129
                                <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]</td>
130
                                <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %] </td><td>[% item.itemnotes | $raw %]</td>
131
                            </tr>
132
                        [% END %]
133
                    </tbody>
134
                </table>
135
            </div>
136
            <!-- /.page-section -->
134
        [% END %]
137
        [% END %]
135
    [% ELSE %]
138
    [% ELSE %]
136
        <form name="f" action="/cgi-bin/koha/reports/itemslost.pl" method="get">
139
        <form name="f" action="/cgi-bin/koha/reports/itemslost.pl" method="get">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt (-20 / +23 lines)
Lines 47-74 Link Here
47
    [% IF ( do_it ) %]
47
    [% IF ( do_it ) %]
48
        [% FOREACH mainloo IN mainloop %]
48
        [% FOREACH mainloo IN mainloop %]
49
            <h1>Reports on item types [% IF branch %]held at [% Branches.GetName( branch ) | html %][% END %]</h1>
49
            <h1>Reports on item types [% IF branch %]held at [% Branches.GetName( branch ) | html %][% END %]</h1>
50
            <table id="itemtypest">
50
            <div class="page-section">
51
                <thead>
51
                <table id="itemtypest">
52
                    <tr>
52
                    <thead>
53
                        <th>Item type</th>
54
                        <th>Count</th>
55
                    </tr>
56
                </thead>
57
                <tfoot>
58
                    <tr>
59
                        <th>TOTAL</th>
60
                        <th>[% mainloo.total | html %]</th>
61
                    </tr>
62
                </tfoot>
63
                <tbody>
64
                    [% FOREACH loopitemtyp IN mainloo.loopitemtype %]
65
                        <tr>
53
                        <tr>
66
                            <td>[% ItemTypes.GetDescription( loopitemtyp.itemtype ) | html %]</td>
54
                            <th>Item type</th>
67
                            <td>[% loopitemtyp.count | html %]</td>
55
                            <th>Count</th>
68
                        </tr>
56
                        </tr>
69
                    [% END %]
57
                    </thead>
70
                </tbody>
58
                    <tfoot>
71
            </table>
59
                        <tr>
60
                            <th>TOTAL</th>
61
                            <th>[% mainloo.total | html %]</th>
62
                        </tr>
63
                    </tfoot>
64
                    <tbody>
65
                        [% FOREACH loopitemtyp IN mainloo.loopitemtype %]
66
                            <tr>
67
                                <td>[% ItemTypes.GetDescription( loopitemtyp.itemtype ) | html %]</td>
68
                                <td>[% loopitemtyp.count | html %]</td>
69
                            </tr>
70
                        [% END %]
71
                    </tbody>
72
                </table>
73
            </div>
74
            <!-- /.page-section -->
72
        [% END %]
75
        [% END %]
73
    [% ELSE %]
76
    [% ELSE %]
74
        <h1>View a count of items held at your library grouped by item type</h1>
77
        <h1>View a count of items held at your library grouped by item type</h1>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt (-28 / +30 lines)
Lines 91-127 Link Here
91
            [% END %]
91
            [% END %]
92
92
93
            [% FOREACH mainloo IN mainloop %]
93
            [% FOREACH mainloo IN mainloop %]
94
                <table>
94
                <div class="page-section">
95
                    <tr>
95
                    <table>
96
                        <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
97
                        [% FOREACH loopco IN mainloo.loopcol %]
98
                            <th>[% PROCESS reservestatus field=mainloo.column value=loopco.coltitle_display %]</th>
99
                        [% END %]
100
                        <th>TOTAL</th>
101
                    </tr>
102
                    [% FOREACH loopro IN mainloo.looprow %]
103
                        <tr>
96
                        <tr>
104
                            <td>[% PROCESS reservestatus field=mainloo.line value=loopro.rowtitle_display %]</td>
97
                            <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
105
                            [% FOREACH loopcel IN loopro.loopcell %]
98
                            [% FOREACH loopco IN mainloo.loopcol %]
106
                                <td align="center">
99
                                <th>[% PROCESS reservestatus field=mainloo.column value=loopco.coltitle_display %]</th>
107
                                    [% IF ( loopcel.url_complement ) %]
108
                                        <a href="reserves_stats.pl?output=[% loopcel.output | uri %]&amp;[% loopcel.url_complement | uri %]">[% loopcel.value | html %]</a>
109
                                    [% ELSE %]
110
                                        [% loopcel.value | html %]
111
                                    [% END %]
112
                                </td>
113
                            [% END %]
100
                            [% END %]
114
                            <td align="center">[% loopro.totalrow | html %]</td>
101
                            <th>TOTAL</th>
115
                        </tr>
102
                        </tr>
116
                    [% END %]
103
                        [% FOREACH loopro IN mainloo.looprow %]
117
                    <tr>
104
                            <tr>
118
                        <th>TOTAL</th>
105
                                <td>[% PROCESS reservestatus field=mainloo.line value=loopro.rowtitle_display %]</td>
119
                        [% FOREACH loopfoote IN mainloo.loopfooter %]
106
                                [% FOREACH loopcel IN loopro.loopcell %]
120
                            <th>[% loopfoote.totalcol | html %]</th>
107
                                    <td align="center">
108
                                        [% IF ( loopcel.url_complement ) %]
109
                                            <a href="reserves_stats.pl?output=[% loopcel.output | uri %]&amp;[% loopcel.url_complement | uri %]">[% loopcel.value | html %]</a>
110
                                        [% ELSE %]
111
                                            [% loopcel.value | html %]
112
                                        [% END %]
113
                                    </td>
114
                                [% END %]
115
                                <td align="center">[% loopro.totalrow | html %]</td>
116
                            </tr>
121
                        [% END %]
117
                        [% END %]
122
                        <th>[% mainloo.total | html %]</th>
118
                        <tr>
123
                    </tr>
119
                            <th>TOTAL</th>
124
                </table>
120
                            [% FOREACH loopfoote IN mainloo.loopfooter %]
121
                                <th>[% loopfoote.totalcol | html %]</th>
122
                            [% END %]
123
                            <th>[% mainloo.total | html %]</th>
124
                        </tr>
125
                    </table>
126
                </div>
127
                <!-- /.page-section -->
125
            [% END %]
128
            [% END %]
126
        [% END %]
129
        [% END %]
127
    [% ELSE %]
130
    [% ELSE %]
128
- 

Return to bug 39053