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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt (-55 / +58 lines)
Lines 53-119 Link Here
53
                        [% END %]
53
                        [% END %]
54
54
55
                        [% IF ( mainloo.looptables ) %]
55
                        [% IF ( mainloo.looptables ) %]
56
                            <h3><a name="summary" id="summary"></a>Summary</h3>
56
                            <div class="page-section">
57
                            <table id="summary_table">
57
                                <h3><a name="summary" id="summary"></a>Summary</h3>
58
                                <tr>
58
                                <table id="summary_table">
59
                                    <th>Group</th>
60
                                    <th>Call number range</th>
61
                                    <th>Number of items displayed</th>
62
                                    <th>Total items in group</th>
63
                                </tr>
64
                                [% FOREACH looptable IN mainloo.looptables %]
65
                                    <tr>
59
                                    <tr>
66
                                        <td>
60
                                        <th>Group</th>
67
                                            <a href="#table[% looptable.coltitle | uri %]">[% looptable.coltitle | html %]</a>
61
                                        <th>Call number range</th>
68
                                        </td>
62
                                        <th>Number of items displayed</th>
69
                                        <td>
63
                                        <th>Total items in group</th>
70
                                            [% IF ( looptable.looptable_count ) %]
71
                                                [% looptable.looptable_first | html %] to [% looptable.looptable_last | html %]
72
                                            [% END %]
73
                                        </td>
74
                                        <td>[% looptable.looptable_count | html %]</td>
75
                                        <td>[% looptable.coltitle_count | html %]</td>
76
                                    </tr>
64
                                    </tr>
77
                                [% END %]
65
                                    [% FOREACH looptable IN mainloo.looptables %]
78
                                <tr>
79
                                    <th>TOTAL</th>
80
                                    <th></th>
81
                                    <th>[% mainloo.total_looptable_count | html %]</th>
82
                                    <th>[% mainloo.total_coltitle_count | html %]</th>
83
                                </tr>
84
                            </table>
85
                        [% END %]
86
87
                        [% FOREACH looptable IN mainloo.looptables %]
88
                            <h3>
89
                                <a id="table[% looptable.coltitle | html %]"></a>
90
                                [% looptable.coltitle | html %]
91
                            </h3>
92
                            <table>
93
                                <tr>
94
                                    <th>#</th>
95
                                    <th>Call number</th>
96
                                    <th>Barcode</th>
97
                                    <th>Item details</th>
98
                                </tr>
99
                                [% IF ( looptable.looprow ) %]
100
                                    [% FOREACH loopro IN looptable.looprow %]
101
                                        <tr>
66
                                        <tr>
102
                                            <td>[% loop.count | html %]</td>
103
                                            <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber | html %][% ELSE %]No call number[% END %]</td>
104
                                            <td>[% IF ( loopro.barcode ) %][% loopro.barcode | html %][% ELSE %]No barcode[% END %]</td>
105
                                            <td>
67
                                            <td>
106
                                                <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]">[% IF ( loopro.title ) %][% loopro.title | html %][% ELSE %]NO TITLE[% END %]</a> [% IF ( loopro.author ) %] by [% loopro.author | html %][% END %]</p>
68
                                                <a href="#table[% looptable.coltitle | uri %]">[% looptable.coltitle | html %]</a>
107
                                                [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) | html %][% END %]
108
                                            </td>
69
                                            </td>
70
                                            <td>
71
                                                [% IF ( looptable.looptable_count ) %]
72
                                                    [% looptable.looptable_first | html %] to [% looptable.looptable_last | html %]
73
                                                [% END %]
74
                                            </td>
75
                                            <td>[% looptable.looptable_count | html %]</td>
76
                                            <td>[% looptable.coltitle_count | html %]</td>
109
                                        </tr>
77
                                        </tr>
110
                                    [% END %]
78
                                    [% END %]
111
                                    [% ELSE %]
79
                                    <tr>
112
                                        <tr>
80
                                        <th>TOTAL</th>
113
                                            <td colspan="4">No items for [% looptable.coltitle | html %]</td>
81
                                        <th></th>
114
                                        </tr>
82
                                        <th>[% mainloo.total_looptable_count | html %]</th>
115
                                    [% END %]
83
                                        <th>[% mainloo.total_coltitle_count | html %]</th>
116
                            </table>
84
                                    </tr>
85
                                </table>
86
                            </div>
87
                        [% END %]
88
89
                        [% FOREACH looptable IN mainloo.looptables %]
90
                            <div class="page-section">
91
                                <h3>
92
                                    <a id="table[% looptable.coltitle | html %]"></a>
93
                                    [% looptable.coltitle | html %]
94
                                </h3>
95
                                <table>
96
                                    <tr>
97
                                        <th>#</th>
98
                                        <th>Call number</th>
99
                                        <th>Barcode</th>
100
                                        <th>Item details</th>
101
                                    </tr>
102
                                    [% IF ( looptable.looprow ) %]
103
                                        [% FOREACH loopro IN looptable.looprow %]
104
                                            <tr>
105
                                                <td>[% loop.count | html %]</td>
106
                                                <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber | html %][% ELSE %]No call number[% END %]</td>
107
                                                <td>[% IF ( loopro.barcode ) %][% loopro.barcode | html %][% ELSE %]No barcode[% END %]</td>
108
                                                <td>
109
                                                    <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]">[% IF ( loopro.title ) %][% loopro.title | html %][% ELSE %]NO TITLE[% END %]</a> [% IF ( loopro.author ) %] by [% loopro.author | html %][% END %]</p>
110
                                                    [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) | html %][% END %]
111
                                                </td>
112
                                            </tr>
113
                                        [% END %]
114
                                        [% ELSE %]
115
                                            <tr>
116
                                                <td colspan="4">No items for [% looptable.coltitle | html %]</td>
117
                                            </tr>
118
                                        [% END %]
119
                                </table>
120
                            </div>
117
                        [% END %]
121
                        [% END %]
118
                    [% END %]
122
                    [% END %]
119
                [% ELSE %]
123
                [% ELSE %]
120
- 

Return to bug 32587