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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt (-72 / +73 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Reports [% IF ( do_it ) %]&rsaquo; Acquisitions statistics &rsaquo; Results[% ELSE %]&rsaquo; Acquisitions statistics[% END %]</title>
4
<title>[% t('Koha › Reports') %] [% IF ( do_it ) %][% t('› Acquisitions statistics › Results') %][% ELSE %][% t('› Acquisitions statistics') %][% END %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-14 Link Here
8
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'cat-search.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
10
11
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]&rsaquo; <a href="/cgi-bin/koha/reports/acquisitions_stats.pl">Acquisitions statistics</a> &rsaquo; Results[% ELSE %] &rsaquo; Acquisitions statistics [% END %]</div>
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% IF ( do_it ) %]› <a href="/cgi-bin/koha/reports/acquisitions_stats.pl">[% t('Acquisitions statistics') %]</a> [% t('› Results') %][% ELSE %] [% t('› Acquisitions statistics') %] [% END %]</div>
12
13
13
<div id="doc3" class="yui-t2">
14
<div id="doc3" class="yui-t2">
14
15
Lines 18-41 Link Here
18
19
19
[% IF ( do_it ) %]
20
[% IF ( do_it ) %]
20
	[% FOREACH mainloo IN mainloop %]
21
	[% FOREACH mainloo IN mainloop %]
21
		<h1>Acquisitions statistics </h1>
22
		<h1>[% t('Acquisitions statistics') %] </h1>
22
        [% IF ( mainloo.loopfilter.size ) %]
23
        [% IF ( mainloo.loopfilter.size ) %]
23
            <p><b>Filtered on:</b></p>
24
            <p><b>[% t('Filtered on:') %]</b></p>
24
            [% FOREACH loopfilte IN mainloo.loopfilter %]
25
            [% FOREACH loopfilte IN mainloo.loopfilter %]
25
                <p>
26
                <p>
26
                    [% SWITCH loopfilte.crit %]
27
                    [% SWITCH loopfilte.crit %]
27
                        [% CASE '0' %] Placed on (from)
28
                        [% CASE '0' %] [% t('Placed on (from)') %]
28
                        [% CASE '1' %] Placed on (to)
29
                        [% CASE '1' %] [% t('Placed on (to)') %]
29
                        [% CASE '2' %] Received on (from)
30
                        [% CASE '2' %] [% t('Received on (from)') %]
30
                        [% CASE '3' %] Received on (to)
31
                        [% CASE '3' %] [% t('Received on (to)') %]
31
                        [% CASE '4' %] Vendor
32
                        [% CASE '4' %] [% t('Vendor') %]
32
                        [% CASE '5' %] Home library
33
                        [% CASE '5' %] [% t('Home library') %]
33
                        [% CASE '6' %] Collection
34
                        [% CASE '6' %] [% t('Collection') %]
34
                        [% CASE '7' %] Item type
35
                        [% CASE '7' %] [% t('Item type') %]
35
                        [% CASE '8' %] Fund
36
                        [% CASE '8' %] [% t('Fund') %]
36
                        [% CASE '9' %] Sort1
37
                        [% CASE '9' %] [% t('Sort1') %]
37
                        [% CASE '10' %] Sort2
38
                        [% CASE '10' %] [% t('Sort2') %]
38
                        [% CASE %] Unknown filter
39
                        [% CASE %] [% t('Unknown filter') %]
39
                    [% END %]
40
                    [% END %]
40
                    : [% loopfilte.filter %]
41
                    : [% loopfilte.filter %]
41
                </p>
42
                </p>
Lines 43-54 Link Here
43
		[% END %]
44
		[% END %]
44
45
45
		<table>
46
		<table>
46
			<tr >
47
			<tr>
47
				<th>[% mainloo.line %] / [% mainloo.column %]</th>
48
				<th>[% mainloo.line %] / [% mainloo.column %]</th>
48
				[% FOREACH loopco IN mainloo.loopcol %]
49
				[% FOREACH loopco IN mainloo.loopcol %]
49
					<th>[% loopco.coltitle %]</th>
50
					<th>[% loopco.coltitle %]</th>
50
				[% END %]
51
				[% END %]
51
				<th>TOTAL</th>
52
				<th>[% t('TOTAL') %]</th>
52
			</tr>
53
			</tr>
53
				[% FOREACH loopro IN mainloo.looprow %]
54
				[% FOREACH loopro IN mainloo.looprow %]
54
					<tr>
55
					<tr>
Lines 57-63 Link Here
57
						[% FOREACH loopcel IN loopro.loopcell %]
58
						[% FOREACH loopcel IN loopro.loopcell %]
58
							[% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
59
							[% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
59
								[% IF ( loopcel.value ) %][% loopcel.value %]
60
								[% IF ( loopcel.value ) %][% loopcel.value %]
60
								[% ELSE %] &nbsp;
61
								[% ELSE %]  
61
								[% END %]
62
								[% END %]
62
							</td>
63
							</td>
63
						[% END %]
64
						[% END %]
Lines 66-73 Link Here
66
						</td>
67
						</td>
67
					</tr>
68
					</tr>
68
				[% END %]
69
				[% END %]
69
				<tr >
70
				<tr>
70
					<th>TOTAL</th>
71
					<th>[% t('TOTAL') %]</th>
71
					[% FOREACH loopfoote IN mainloo.loopfooter %]
72
					[% FOREACH loopfoote IN mainloo.loopfooter %]
72
						<th>
73
						<th>
73
							[% loopfoote.totalcol %]
74
							[% loopfoote.totalcol %]
Lines 80-147 Link Here
80
[% ELSE %]
81
[% ELSE %]
81
	<form method="post" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
82
	<form method="post" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
82
	<fieldset class="rows">
83
	<fieldset class="rows">
83
	<legend>Acquisitions statistics</legend>
84
	<legend>[% t('Acquisitions statistics') %]</legend>
84
	<table>
85
	<table>
85
		<thead>
86
		<thead>
86
			<tr>
87
			<tr>
87
			<th>Title</th>
88
			<th>[% t('Title') %]</th>
88
			<th>Row</th>
89
			<th>[% t('Row') %]</th>
89
			<th>Column</th>
90
			<th>[% t('Column') %]</th>
90
			<th>Filter</th>
91
			<th>[% t('Filter') %]</th>
91
			</tr>
92
			</tr>
92
		</thead>
93
		</thead>
93
		<tbody>
94
		<tbody>
94
			<tr class="hilighted">
95
			<tr class="hilighted">
95
                <td>Placed on</td>
96
                <td>[% t('Placed on') %]</td>
96
				<td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
97
				<td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
97
				<td><input type="radio" checked="checked" name="Column" value="aqbasket.closedate" /> </td>
98
				<td><input type="radio" checked="checked" name="Column" value="aqbasket.closedate" /> </td>
98
				<td> From <input type="text" size="10" id="from" name="Filter" value="" />
99
				<td> [% t('From') %] <input type="text" size="10" id="from" name="Filter" value="" />
99
				<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
100
				<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
100
					To <input size="10" id="to" name="Filter" type="text" value="" />
101
					[% t('To') %] <input size="10" id="to" name="Filter" type="text" value="" />
101
				<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
102
				<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
102
				</td>
103
				</td>
103
			</tr>
104
			</tr>
104
			<tr class="hilighted">
105
			<tr class="hilighted">
105
				<td>&nbsp;</td>
106
				<td> </td>
106
				<td colspan="2">group by <select name="PlacedOnDisplay">
107
				<td colspan="2">[% t('group by') %] <select name="PlacedOnDisplay">
107
					<option value="">None</option>
108
					<option value="">[% t('None') %]</option>
108
					<option value ="1">Day of week</option>
109
					<option value="1">[% t('Day of week') %]</option>
109
					<option value ="2">Month</option>
110
					<option value="2">[% t('Month') %]</option>
110
					<option value ="3">Year</option>
111
					<option value="3">[% t('Year') %]</option>
111
					</select>
112
					</select>
112
113
113
				</td>
114
				</td>
114
				<td>&nbsp;</td>
115
				<td> </td>
115
			</tr>
116
			</tr>
116
			<tr>
117
			<tr>
117
                <td>Received on</td>
118
                <td>[% t('Received on') %]</td>
118
				<td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
119
				<td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
119
				<td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
120
				<td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
120
				<td> From <input type="text" size="10" id="fromRO" name="Filter" value="" />
121
				<td> [% t('From') %] <input type="text" size="10" id="fromRO" name="Filter" value="" />
121
				<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
122
				<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
122
					To <input type="text" size="10" id="toRO" name="Filter" value="" />
123
					[% t('To') %] <input type="text" size="10" id="toRO" name="Filter" value="" />
123
				<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
124
				<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
124
				</td>
125
				</td>
125
			</tr>
126
			</tr>
126
			<tr>
127
			<tr>
127
				<td>&nbsp;</td>
128
				<td> </td>
128
				<td colspan="2">group by <select name="ReceivedOnDisplay">
129
				<td colspan="2">[% t('group by') %] <select name="ReceivedOnDisplay">
129
					<option value="">None</option>
130
					<option value="">[% t('None') %]</option>
130
					<option value ="1">Day of week</option>
131
					<option value="1">[% t('Day of week') %]</option>
131
					<option value ="2">Month</option>
132
					<option value="2">[% t('Month') %]</option>
132
					<option value ="3">Year</option>
133
					<option value="3">[% t('Year') %]</option>
133
					</select>
134
					</select>
134
135
135
				</td>
136
				</td>
136
				<td>&nbsp;</td>
137
				<td> </td>
137
			</tr>
138
			</tr>
138
			<tr class="hilighted">
139
			<tr class="hilighted">
139
				<td>Vendor</td>
140
				<td>[% t('Vendor') %]</td>
140
				<td><input type="radio" checked="checked" name="Line" value="aqbooksellers.name" /></td>
141
				<td><input type="radio" checked="checked" name="Line" value="aqbooksellers.name" /></td>
141
				<td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
142
				<td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
142
                <td>
143
                <td>
143
                    <select name="Filter">
144
                    <select name="Filter">
144
                        <option value="">All vendors</option>
145
                        <option value="">[% t('All vendors') %]</option>
145
                        [% FOREACH bookseller IN booksellers %]
146
                        [% FOREACH bookseller IN booksellers %]
146
                            <option value="[% bookseller.name %]">[% bookseller.name %]</option>
147
                            <option value="[% bookseller.name %]">[% bookseller.name %]</option>
147
                        [% END %]
148
                        [% END %]
Lines 149-160 Link Here
149
                </td>
150
                </td>
150
            </tr>
151
            </tr>
151
            <tr>
152
            <tr>
152
                <td>Home library</td>
153
                <td>[% t('Home library') %]</td>
153
                <td><input type="radio" name="Line" value="items.homebranch" /></td>
154
                <td><input type="radio" name="Line" value="items.homebranch" /></td>
154
                <td><input type="radio" name="Column" value="items.homebranch" /></td>
155
                <td><input type="radio" name="Column" value="items.homebranch" /></td>
155
                <td>
156
                <td>
156
                    <select name="Filter">
157
                    <select name="Filter">
157
                        <option value="" selected="selected">All libraries</option>
158
                        <option value="" selected="selected">[% t('All libraries') %]</option>
158
                        [% FOREACH branch IN branches %]
159
                        [% FOREACH branch IN branches %]
159
                            <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
160
                            <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
160
                        [% END %]
161
                        [% END %]
Lines 166-172 Link Here
166
                    [% IF ccode_label %]
167
                    [% IF ccode_label %]
167
                        [% ccode_label %]
168
                        [% ccode_label %]
168
                    [% ELSE %]
169
                    [% ELSE %]
169
                        Collection
170
                        [% t('Collection') %]
170
                    [% END %]
171
                    [% END %]
171
                </td>
172
                </td>
172
                <td><input type="radio" name="Line" value="items.ccode" /></td>
173
                <td><input type="radio" name="Line" value="items.ccode" /></td>
Lines 174-180 Link Here
174
                <td>
175
                <td>
175
                    [% IF ccode_avlist.size %]
176
                    [% IF ccode_avlist.size %]
176
                        <select name="Filter">
177
                        <select name="Filter">
177
                            <option value="" selected="selected">All</option>
178
                            <option value="" selected="selected">[% t('All') %]</option>
178
                            [% FOREACH ccode_av IN ccode_avlist %]
179
                            [% FOREACH ccode_av IN ccode_avlist %]
179
                                <option value="[% ccode_av.value %]">[% ccode_av.lib %]</option>
180
                                <option value="[% ccode_av.value %]">[% ccode_av.lib %]</option>
180
                            [% END %]
181
                            [% END %]
Lines 185-196 Link Here
185
                </td>
186
                </td>
186
            </tr>
187
            </tr>
187
			<tr>
188
			<tr>
188
                <td>Item type</td>
189
                <td>[% t('Item type') %]</td>
189
				<td><input type="radio" name="Line" value="biblioitems.itemtype" /></td>
190
				<td><input type="radio" name="Line" value="biblioitems.itemtype" /></td>
190
				<td><input type="radio" name="Column" value="biblioitems.itemtype" /></td>
191
				<td><input type="radio" name="Column" value="biblioitems.itemtype" /></td>
191
                <td>
192
                <td>
192
                    <select name="Filter" size="1" id="itemtypes">
193
                    <select name="Filter" size="1" id="itemtypes">
193
                        <option value="">All item types</option>
194
                        <option value="">[% t('All item types') %]</option>
194
                        [% FOREACH itemtype IN itemtypes %]
195
                        [% FOREACH itemtype IN itemtypes %]
195
                        <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
196
                        <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
196
                        [% END %]
197
                        [% END %]
Lines 199-210 Link Here
199
			</tr>
200
			</tr>
200
201
201
			<tr>
202
			<tr>
202
				<td>Fund</td>
203
				<td>[% t('Fund') %]</td>
203
				<td><input type="radio" name="Line" value="aqbudgets.budget_code" /></td>
204
				<td><input type="radio" name="Line" value="aqbudgets.budget_code" /></td>
204
				<td><input type="radio" name="Column" value="aqbudgets.budget_code" /></td>
205
				<td><input type="radio" name="Column" value="aqbudgets.budget_code" /></td>
205
                <td>
206
                <td>
206
                    <select name="Filter" size="1" id="budget">
207
                    <select name="Filter" size="1" id="budget">
207
                        <option value="">All funds</option>
208
                        <option value="">[% t('All funds') %]</option>
208
                        [% FOREACH value IN Budgets.values %]
209
                        [% FOREACH value IN Budgets.values %]
209
                        <option value="[% value %]">[% Budgets.labels.$value %]</option>
210
                        <option value="[% value %]">[% Budgets.labels.$value %]</option>
210
                        [% END %]
211
                        [% END %]
Lines 214-225 Link Here
214
215
215
			[% IF ( hassort1 ) %]
216
			[% IF ( hassort1 ) %]
216
				<tr class="hilighted">
217
				<tr class="hilighted">
217
					<td>Sort1</td>
218
					<td>[% t('Sort1') %]</td>
218
					<td><input type="radio" name="Line" value="aqorders.sort1" /></td>
219
					<td><input type="radio" name="Line" value="aqorders.sort1" /></td>
219
					<td><input type="radio" name="Column" value="aqorders.sort1" /></td>
220
					<td><input type="radio" name="Column" value="aqorders.sort1" /></td>
220
                    <td>
221
                    <td>
221
                        <select name="Filter" size="1" id="sort1">
222
                        <select name="Filter" size="1" id="sort1">
222
                            <option value="">All</option>
223
                            <option value="">[% t('All') %]</option>
223
                            [% FOREACH value IN Sort1.values %]
224
                            [% FOREACH value IN Sort1.values %]
224
                            <option value="[% value %]">[% Sort1.labels.$value %]</option>
225
                            <option value="[% value %]">[% Sort1.labels.$value %]</option>
225
                            [% END %]
226
                            [% END %]
Lines 229-240 Link Here
229
			[% END %]
230
			[% END %]
230
			[% IF ( hassort2 ) %]
231
			[% IF ( hassort2 ) %]
231
				[% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
232
				[% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
232
					<td>Sort2</td>
233
					<td>[% t('Sort2') %]</td>
233
					<td><input type="radio" name="Line" value="aqorders.sort2" /></td>
234
					<td><input type="radio" name="Line" value="aqorders.sort2" /></td>
234
					<td><input type="radio" name="Column" value="aqorders.sort2" /></td>
235
					<td><input type="radio" name="Column" value="aqorders.sort2" /></td>
235
                    <td>
236
                    <td>
236
                        <select name="Filter" size="1" id="sort2">
237
                        <select name="Filter" size="1" id="sort2">
237
                            <option value="">All</option>
238
                            <option value="">[% t('All') %]</option>
238
                            [% FOREACH value IN Sort2.values %]
239
                            [% FOREACH value IN Sort2.values %]
239
                            <option value="[% value %]">[% Sort2.labels.$value %]</option>
240
                            <option value="[% value %]">[% Sort2.labels.$value %]</option>
240
                            [% END %]
241
                            [% END %]
Lines 247-284 Link Here
247
	</fieldset>
248
	</fieldset>
248
249
249
<fieldset class="rows">
250
<fieldset class="rows">
250
    <legend> Cell value </legend>
251
    <legend> [% t('Cell value') %] </legend>
251
    <ol>
252
    <ol>
252
        <li>
253
        <li>
253
            <label for="cellvalue1">Count items:</label><input type="radio" name="Cellvalue" id="cellvalue1" value="1" checked="checked" />
254
            <label for="cellvalue1">[% t('Count items:') %]</label><input type="radio" name="Cellvalue" id="cellvalue1" value="1" checked="checked" />
254
        </li>
255
        </li>
255
        <li>
256
        <li>
256
            <label for="cellvalue2">Count unique biblios:</label><input type="radio" name="Cellvalue" id="cellvalue2" value="2" />
257
            <label for="cellvalue2">[% t('Count unique biblios:') %]</label><input type="radio" name="Cellvalue" id="cellvalue2" value="2" />
257
        </li>
258
        </li>
258
        <li>
259
        <li>
259
            <label for="cellvalue3">Amount:</label><input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
260
            <label for="cellvalue3">[% t('Amount:') %]</label><input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
260
        </li>
261
        </li>
261
        <li>
262
        <li>
262
            <label for="cellvalue4">Ordered amount:</label><input type="radio" name="Cellvalue" id="cellvalue4" value="4" />
263
            <label for="cellvalue4">[% t('Ordered amount:') %]</label><input type="radio" name="Cellvalue" id="cellvalue4" value="4" />
263
        </li>
264
        </li>
264
        <li>
265
        <li>
265
            <label for="cellvalue5">Spent amount:</label><input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
266
            <label for="cellvalue5">[% t('Spent amount:') %]</label><input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
266
        </li>
267
        </li>
267
    </ol>
268
    </ol>
268
</fieldset>
269
</fieldset>
269
270
270
	<fieldset class="rows">
271
	<fieldset class="rows">
271
	<legend>Output</legend>
272
	<legend>[% t('Output') %]</legend>
272
    <ol>
273
    <ol>
273
        <li>
274
        <li>
274
            <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
275
            <label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
275
        </li>
276
        </li>
276
        <li>
277
        <li>
277
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
278
            <label for="outputfile">[% t('To a file:') %]</label> <input type="radio" name="output" value="file" id="outputfile" />
278
            <label class="inline" for="basename">Named: </label> <input type="text" name="basename" id="basename" value="Export" />
279
            <label class="inline" for="basename">[% t('Named:') %] </label> <input type="text" name="basename" id="basename" value="Export" />
279
            <label class="inline" for="MIME">Into an application:</label>
280
            <label class="inline" for="MIME">[% t('Into an application:') %]</label>
280
            <select name="MIME" id="MIME" size="1">
281
            <select name="MIME" id="MIME" size="1">
281
                <option value="CSV">CSV</option>
282
                <option value="CSV">[% t('CSV') %]</option>
282
            </select>
283
            </select>
283
            <select name="sep" id="sep" size="1">
284
            <select name="sep" id="sep" size="1">
284
            [% FOREACH value IN CGIsepChoice.values.sort() %]
285
            [% FOREACH value IN CGIsepChoice.values.sort() %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt (-50 / +51 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE ItemTypes %]
4
[% USE ItemTypes %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Reports &rsaquo; Patrons with the most checkouts</title>
7
<title>[% t('Koha › Reports › Patrons with the most checkouts') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
9
10
Lines 11-17 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'cat-search.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]&rsaquo; <a href="/cgi-bin/koha/reports/bor_issues_top.pl">Patrons with the most checkouts</a> &rsaquo; Results[% ELSE %]&rsaquo; Patrons with the most checkouts[% END %]</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% IF ( do_it ) %]› <a href="/cgi-bin/koha/reports/bor_issues_top.pl">[% t('Patrons with the most checkouts') %]</a> [% t('› Results') %][% ELSE %][% t('› Patrons with the most checkouts') %][% END %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
   
18
   
Lines 21-54 Link Here
21
22
22
[% IF ( do_it ) %]
23
[% IF ( do_it ) %]
23
	[% FOREACH mainloo IN mainloop %]
24
	[% FOREACH mainloo IN mainloop %]
24
        <h1>Patrons with the most checkouts</h1>
25
        <h1>[% t('Patrons with the most checkouts') %]</h1>
25
		[% IF ( mainloo.loopfilter ) %]
26
		[% IF ( mainloo.loopfilter ) %]
26
            [% IF mainloo.loopfilter.size %]
27
            [% IF mainloo.loopfilter.size %]
27
                <p>Filtered on:</p>
28
                <p>[% t('Filtered on:') %]</p>
28
                <ul>
29
                <ul>
29
                    [% FOREACH loopfilte IN mainloo.loopfilter %]
30
                    [% FOREACH loopfilte IN mainloo.loopfilter %]
30
                        <li>
31
                        <li>
31
                            [% SWITCH loopfilte.crit -%]
32
                            [% SWITCH loopfilte.crit -%]
32
                                [% CASE "Issue From" -%]
33
                                [% CASE "Issue From" -%]
33
                                    Checked out after [% loopfilte.filter | $KohaDates %]
34
                                    [% t('Checked out after') %] [% loopfilte.filter | $KohaDates %]
34
                                [% CASE "Issue To" -%]
35
                                [% CASE "Issue To" -%]
35
                                    Checked out before [% loopfilte.filter | $KohaDates %]
36
                                    [% t('Checked out before') %] [% loopfilte.filter | $KohaDates %]
36
                                [% CASE "Return From" -%]
37
                                [% CASE "Return From" -%]
37
                                    Checked in after [% loopfilte.filter | $KohaDates %]
38
                                    [% t('Checked in after') %] [% loopfilte.filter | $KohaDates %]
38
                                [% CASE "Return To" -%]
39
                                [% CASE "Return To" -%]
39
                                    Checked in before [% loopfilte.filter | $KohaDates %]
40
                                    [% t('Checked in before') %] [% loopfilte.filter | $KohaDates %]
40
                                [% CASE "Branch" -%]
41
                                [% CASE "Branch" -%]
41
                                    Library is [% Branches.GetName( loopfilte.filter ) %]
42
                                    [% t('Library is') %] [% Branches.GetName( loopfilte.filter ) %]
42
                                [% CASE "Doc Type" -%]
43
                                [% CASE "Doc Type" -%]
43
                                    Item type is [% ItemTypes.GetDescription( loopfilte.filter ) %]
44
                                    [% t('Item type is') %] [% ItemTypes.GetDescription( loopfilte.filter ) %]
44
                                [% CASE "Bor Cat" -%]
45
                                [% CASE "Bor Cat" -%]
45
                                    Patron category code is [% loopfilte.filter %]
46
                                    [% t('Patron category code is') %] [% loopfilte.filter %]
46
                                [% CASE "Day" -%]
47
                                [% CASE "Day" -%]
47
                                    Day is [% loopfilte.filter %]
48
                                    [% t('Day is') %] [% loopfilte.filter %]
48
                                [% CASE "Month" -%]
49
                                [% CASE "Month" -%]
49
                                    Month is [% loopfilte.filter %]
50
                                    [% t('Month is') %] [% loopfilte.filter %]
50
                                [% CASE "Year" -%]
51
                                [% CASE "Year" -%]
51
                                    Year is [% loopfilte.filter %]
52
                                    [% t('Year is') %] [% loopfilte.filter %]
52
                                [% CASE # default case -%]
53
                                [% CASE # default case -%]
53
                                    [% loopfilte.crit %] = [% loopfilte.filter %]
54
                                    [% loopfilte.crit %] = [% loopfilte.filter %]
54
                            [% END -%]
55
                            [% END -%]
Lines 60-74 Link Here
60
		
61
		
61
		<table>
62
		<table>
62
			<tr>
63
			<tr>
63
				<th rowspan="2">Rank</th>
64
				<th rowspan="2">[% t('Rank') %]</th>
64
				[% FOREACH loopco IN mainloo.loopcol %]
65
				[% FOREACH loopco IN mainloo.loopcol %]
65
					<th colspan="2">[% loopco.coltitle %]</th>
66
					<th colspan="2">[% loopco.coltitle %]</th>
66
				[% END %]
67
				[% END %]
67
			</tr>
68
			</tr>
68
			<tr>
69
			<tr>
69
				[% FOREACH loopco IN mainloo.loopcol %]
70
				[% FOREACH loopco IN mainloo.loopcol %]
70
					<th>Patron</th>
71
					<th>[% t('Patron') %]</th>
71
					<th>Checkout count</th>
72
					<th>[% t('Checkout count') %]</th>
72
				[% END %]
73
				[% END %]
73
			</tr>
74
			</tr>
74
				[% FOREACH loopro IN mainloo.looprow %]
75
				[% FOREACH loopro IN mainloo.looprow %]
Lines 90-122 Link Here
90
		</table>
91
		</table>
91
	[% END %]
92
	[% END %]
92
[% ELSE %]
93
[% ELSE %]
93
    <h1>Patrons with the most checkouts</h1>
94
    <h1>[% t('Patrons with the most checkouts') %]</h1>
94
	<form method="post" action="/cgi-bin/koha/reports/bor_issues_top.pl">
95
	<form method="post" action="/cgi-bin/koha/reports/bor_issues_top.pl">
95
	<fieldset class="rows">
96
	<fieldset class="rows">
96
	<ol><li><label for="from">Checkout date from:</label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
97
	<ol><li><label for="from">[% t('Checkout date from:') %]</label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
97
					<label class="inline" for="to">To: </label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
98
					<label class="inline" for="to">[% t('To:') %] </label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
98
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
99
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
99
				<li> <label for="fromRO">Check-in date from:</label> <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
100
				<li> <label for="fromRO">[% t('Check-in date from:') %]</label> <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
100
					<label class="inline" for="toRO">To: </label> <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
101
					<label class="inline" for="toRO">[% t('To:') %] </label> <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
101
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
102
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
102
			<li> 
103
			<li> 
103
				<label for="branch">Library: </label>
104
				<label for="branch">[% t('Library:') %] </label>
104
<select name="Filter" id="branch"><option value="" > Any library</option>
105
<select name="Filter" id="branch"><option value=""> [% t('Any library') %]</option>
105
    [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
106
    [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
106
        <option value="[% l.branchcode %]" >[% l.branchname %] </option>
107
        <option value="[% l.branchcode %]">[% l.branchname %] </option>
107
     [% END %] 
108
     [% END %] 
108
    </select>			</li>
109
    </select>			</li>
109
			<li> 
110
			<li> 
110
                <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
111
                <label for="documenttype">[% t('Item type:') %] </label><select name="Filter" id="documenttype"><option value=""> [% t('Any item type') %]</option>
111
    [% FOREACH itemtype IN itemtypes %]
112
    [% FOREACH itemtype IN itemtypes %]
112
        <option value="[% itemtype.itemtype %]" >[% itemtype.translated_description %] </option>
113
        <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %] </option>
113
     [% END %] 
114
     [% END %] 
114
    </select>
115
    </select>
115
			</li>
116
			</li>
116
			<li> 
117
			<li> 
117
                <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
118
                <label for="patroncategory">[% t('Patron category:') %] </label><select name="Filter" id="patroncategory"><option value=""> [% t('Any category code') %]</option>
118
    [% FOREACH patron_category IN patron_categories%]
119
    [% FOREACH patron_category IN patron_categories%]
119
        <option value="[% patron_category.categorycode %]" >[% patron_category.description %] </option>
120
        <option value="[% patron_category.categorycode %]">[% patron_category.description %] </option>
120
     [% END %]
121
     [% END %]
121
    </select>
122
    </select>
122
			</li>
123
			</li>
Lines 125-166 Link Here
125
	
126
	
126
	<fieldset class="rows">
127
	<fieldset class="rows">
127
	<ol>
128
	<ol>
128
		<li><label for="numlimit">Limit to: </label> <select name="Limit" id="numlimit">
129
		<li><label for="numlimit">[% t('Limit to:') %] </label> <select name="Limit" id="numlimit">
129
						<option value ="5" selected="selected"> 5</option>
130
						<option value="5" selected="selected"> [% t('5') %]</option>
130
						<option value ="10">10</option>
131
						<option value="10">[% t('10') %]</option>
131
						<option value ="15">15</option>
132
						<option value="15">[% t('15') %]</option>
132
						<option value ="20">20</option>
133
						<option value="20">[% t('20') %]</option>
133
                        <option value ="">No limit</option>
134
                        <option value="">[% t('No limit') %]</option>
134
	<!--					<option value ="25">25</option>
135
	<!--					<option value ="25">25</option>
135
						<option value ="40">40</option>
136
						<option value ="40">40</option>
136
						<option value ="50">50</option>
137
						<option value ="50">50</option>
137
						<option value ="100">100</option>-->
138
						<option value ="100">100</option>-->
138
					</select></li>
139
					</select></li>
139
		<li><label for="criteria">By: </label> <select name="Criteria" id="criteria">
140
		<li><label for="criteria">[% t('By:') %] </label> <select name="Criteria" id="criteria">
140
						<option value ="" selected="selected">None</option>
141
						<option value="" selected="selected">[% t('None') %]</option>
141
						<option value ="branchcode">Library</option>
142
						<option value="branchcode">[% t('Library') %]</option>
142
                        <option value ="categorycode">Category code</option>
143
                        <option value="categorycode">[% t('Category code') %]</option>
143
                        <option value ="itemtype">Item type</option>
144
                        <option value="itemtype">[% t('Item type') %]</option>
144
						<option value ="Day">Day</option>
145
						<option value="Day">[% t('Day') %]</option>
145
						<option value ="Week">Week</option>
146
						<option value="Week">[% t('Week') %]</option>
146
						<option value ="Month">Month</option>
147
						<option value="Month">[% t('Month') %]</option>
147
						<option value ="Year">Year</option>
148
						<option value="Year">[% t('Year') %]</option>
148
					</select></li>
149
					</select></li>
149
	</ol>
150
	</ol>
150
	</fieldset>
151
	</fieldset>
151
152
152
<fieldset class="rows">
153
<fieldset class="rows">
153
	<legend>Output</legend>
154
	<legend>[% t('Output') %]</legend>
154
	<ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
155
	<ol><li><label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
155
		<li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
156
		<li><label for="outputfile">[% t('To a file:') %] </label><input type="radio" name="output" value="file" id="outputfile" />
156
			<label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
157
			<label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
157
			<label class="inline" for="MIME">Into an application: </label>
158
			<label class="inline" for="MIME">[% t('Into an application:') %] </label>
158
			<select name="MIME" id="MIME">
159
			<select name="MIME" id="MIME">
159
			[% FOREACH mimeloo IN mimeloop %]
160
			[% FOREACH mimeloo IN mimeloop %]
160
				<option value="[% mimeloo.type %]">[% mimeloo.type %]</option>
161
				<option value="[% mimeloo.type %]">[% mimeloo.type %]</option>
161
			[% END %]
162
			[% END %]
162
			</select>
163
			</select>
163
			<label class="inline" for="sep">Delimiter: </label>
164
			<label class="inline" for="sep">[% t('Delimiter:') %] </label>
164
            <select name="sep" id="sep" size="1">
165
            <select name="sep" id="sep" size="1">
165
            [% FOREACH value IN CGIseplist.values.sort() %]
166
            [% FOREACH value IN CGIseplist.values.sort() %]
166
              [% IF ( value == CGIseplist.default ) %]
167
              [% IF ( value == CGIseplist.default ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tt (-29 / +30 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Reports &rsaquo; Patrons with no checkouts</title>
4
<title>[% t('Koha › Reports › Patrons with no checkouts') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-14 Link Here
8
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'cat-search.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
10
11
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; Patrons with no checkouts</div>
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% t('› Patrons with no checkouts') %]</div>
12
13
13
<div id="doc3" class="yui-t2">
14
<div id="doc3" class="yui-t2">
14
   
15
   
Lines 18-26 Link Here
18
19
19
[% IF ( do_it ) %]
20
[% IF ( do_it ) %]
20
    [% FOREACH mainloo IN mainloop %]
21
    [% FOREACH mainloo IN mainloop %]
21
        <h1>Patrons with no checkouts</h1>
22
        <h1>[% t('Patrons with no checkouts') %]</h1>
22
        [% IF ( mainloo.loopfilter ) %]
23
        [% IF ( mainloo.loopfilter ) %]
23
            <p>Filtered on:</p>
24
            <p>[% t('Filtered on:') %]</p>
24
            [% FOREACH loopfilte IN mainloo.loopfilter %]
25
            [% FOREACH loopfilte IN mainloo.loopfilter %]
25
                    <p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %]  [% END %]</p>
26
                    <p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %]  [% END %]</p>
26
            [% END %]
27
            [% END %]
Lines 28-34 Link Here
28
        
29
        
29
        <table>
30
        <table>
30
            <tr>
31
            <tr>
31
                <th>Num/Patrons</th>
32
                <th>[% t('Num/Patrons') %]</th>
32
                [% FOREACH loopco IN mainloo.loopcol %]
33
                [% FOREACH loopco IN mainloo.loopcol %]
33
                    <th>[% loopco.coltitle %]</th>
34
                    <th>[% loopco.coltitle %]</th>
34
                [% END %]
35
                [% END %]
Lines 45-97 Link Here
45
        </table>
46
        </table>
46
    [% END %]
47
    [% END %]
47
[% ELSE %]
48
[% ELSE %]
48
    <h1>Patrons with no checkouts</h1>
49
    <h1>[% t('Patrons with no checkouts') %]</h1>
49
    <form method="post" action="/cgi-bin/koha/reports/borrowers_out.pl">
50
    <form method="post" action="/cgi-bin/koha/reports/borrowers_out.pl">
50
    <fieldset class="rows">
51
    <fieldset class="rows">
51
		<ol>
52
		<ol>
52
            <li><label for="patroncategory">Patron category: </label> <select name="Filter" id="patroncategory"><option value="" > Any category code</option>
53
            <li><label for="patroncategory">[% t('Patron category:') %] </label> <select name="Filter" id="patroncategory"><option value=""> [% t('Any category code') %]</option>
53
    [% FOREACH patron_category IN patron_categories %]
54
    [% FOREACH patron_category IN patron_categories %]
54
        <option value="[% patron_category.categorycode %]" >[% patron_category.description %] </option>
55
        <option value="[% patron_category.categorycode %]">[% patron_category.description %] </option>
55
    [% END %]
56
    [% END %]
56
    </select>
57
    </select>
57
</li>
58
</li>
58
    <li><label for="to">Not checked out since: </label> <input size="10" id="to" name="Filter" value="" type="text" />
59
    <li><label for="to">[% t('Not checked out since:') %] </label> <input size="10" id="to" name="Filter" value="" type="text" />
59
</li>
60
</li>
60
		</ol>
61
		</ol>
61
	</fieldset>
62
	</fieldset>
62
	
63
	
63
    <fieldset class="rows">
64
    <fieldset class="rows">
64
	<legend>Limits</legend>
65
	<legend>[% t('Limits') %]</legend>
65
		<ol>
66
		<ol>
66
			<li><label for="numberlimit">Limit to: </label><select name="Limit" id="numberlimit">
67
			<li><label for="numberlimit">[% t('Limit to:') %] </label><select name="Limit" id="numberlimit">
67
                        <option value ="" selected="selected">None</option>
68
                        <option value="" selected="selected">[% t('None') %]</option>
68
                        <option value ="5"> 5</option>
69
                        <option value="5"> [% t('5') %]</option>
69
                        <option value ="10">10</option>
70
                        <option value="10">[% t('10') %]</option>
70
                        <option value ="15">15</option>
71
                        <option value="15">[% t('15') %]</option>
71
                        <option value ="20">20</option>
72
                        <option value="20">[% t('20') %]</option>
72
                        <option value ="25">25</option>
73
                        <option value="25">[% t('25') %]</option>
73
                        <option value ="40">40</option>
74
                        <option value="40">[% t('40') %]</option>
74
                        <option value ="50">50</option>
75
                        <option value="50">[% t('50') %]</option>
75
                        <option value ="100">100</option>
76
                        <option value="100">[% t('100') %]</option>
76
                    </select></li>
77
                    </select></li>
77
			<li><label for="criteria">By: </label><select name="Criteria" id="criteria">
78
			<li><label for="criteria">[% t('By:') %] </label><select name="Criteria" id="criteria">
78
                        <option value ="" selected="selected">None</option>
79
                        <option value="" selected="selected">[% t('None') %]</option>
79
                        <option value ="categorycode">Patron category</option>
80
                        <option value="categorycode">[% t('Patron category') %]</option>
80
                        <option value ="branchcode">Library</option>
81
                        <option value="branchcode">[% t('Library') %]</option>
81
                    </select></li>
82
                    </select></li>
82
		</ol>
83
		</ol>
83
	</fieldset>
84
	</fieldset>
84
	
85
	
85
<fieldset class="rows">
86
<fieldset class="rows">
86
	<legend>Output</legend>
87
	<legend>[% t('Output') %]</legend>
87
    <ol>
88
    <ol>
88
        <li>
89
        <li>
89
            <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
90
            <label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
90
        </li>
91
        </li>
91
        <li>
92
        <li>
92
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
93
            <label for="outputfile">[% t('To a file:') %]</label> <input type="radio" name="output" value="file" id="outputfile" />
93
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
94
            <label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
94
            <label class="inline" for="MIME">Into an application:</label>
95
            <label class="inline" for="MIME">[% t('Into an application:') %]</label>
95
            <select name="MIME" id="MIME" size="1">
96
            <select name="MIME" id="MIME" size="1">
96
            [% FOREACH value IN CGIextChoice %]
97
            [% FOREACH value IN CGIextChoice %]
97
                <option value="[% value %]">[% value %]</option>
98
                <option value="[% value %]">[% value %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt (-63 / +61 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
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; Patrons statistics &rsaquo; Results[% ELSE %]&rsaquo; Patrons statistics[% END %]</title>
5
<title>[% t('Koha › Reports') %] [% IF ( do_it ) %][% t('› Patrons statistics › Results') %][% ELSE %][% t('› Patrons statistics') %][% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css">
7
<style type="text/css">
7
	.sql {display:none;}
8
	.sql {display:none;}
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; <a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons statistics</a>[% IF ( do_it ) %] &rsaquo; Results[% END %]</div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> › <a href="/cgi-bin/koha/reports/borrowers_stats.pl">[% t('Patrons statistics') %]</a>[% IF ( do_it ) %] [% t('› Results') %][% END %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
   
20
   
Lines 23-31 Link Here
23
24
24
[% IF ( do_it ) %]
25
[% IF ( do_it ) %]
25
	[% FOREACH mainloo IN mainloop %]
26
	[% FOREACH mainloo IN mainloop %]
26
		<h1>Patrons statistics</h1>
27
		<h1>[% t('Patrons statistics') %]</h1>
27
		[% IF ( mainloo.loopfilter ) %]
28
		[% IF ( mainloo.loopfilter ) %]
28
            <p>Filtered on:</p>
29
            <p>[% t('Filtered on:') %]</p>
29
			[% FOREACH loopfilte IN mainloo.loopfilter %]
30
			[% FOREACH loopfilte IN mainloo.loopfilter %]
30
				<p>
31
				<p>
31
					[% loopfilte.crit %] = [% loopfilte.filter %]
32
					[% loopfilte.crit %] = [% loopfilte.filter %]
Lines 39-59 Link Here
39
					<th>[% IF ( loopco.coltitle_display ) %][% loopco.coltitle_display %][% ELSE %][% loopco.coltitle %][% END %]
40
					<th>[% IF ( loopco.coltitle_display ) %][% loopco.coltitle_display %][% ELSE %][% loopco.coltitle %][% END %]
40
					</th>
41
					</th>
41
				[% END %]
42
				[% END %]
42
				<th>TOTAL</th>
43
				<th>[% t('TOTAL') %]</th>
43
			</tr>
44
			</tr>
44
				[% FOREACH loopro IN mainloo.looprow %]
45
				[% FOREACH loopro IN mainloo.looprow %]
45
                    <tr>
46
                    <tr>
46
						<td>[% IF ( loopro.rowtitle_display ) %][% loopro.rowtitle_display %][% ELSE %][% loopro.rowtitle %][% END %]
47
						<td>[% IF ( loopro.rowtitle_display ) %][% loopro.rowtitle_display %][% ELSE %][% loopro.rowtitle %][% END %]
47
						</td>
48
						</td>
48
						[% FOREACH loopcel IN loopro.loopcell %]
49
						[% FOREACH loopcel IN loopro.loopcell %]
49
						<td>[% IF ( loopcel.value ) %][% loopcel.value %][% ELSE %]&nbsp;[% END %]
50
						<td>[% IF ( loopcel.value ) %][% loopcel.value %][% ELSE %] [% END %]
50
						</td>
51
						</td>
51
						[% END %]
52
						[% END %]
52
						<td>[% loopro.totalrow %]</td>
53
						<td>[% loopro.totalrow %]</td>
53
					</tr>
54
					</tr>
54
				[% END %]
55
				[% END %]
55
				<tr>
56
				<tr>
56
					<th>TOTAL</th>
57
					<th>[% t('TOTAL') %]</th>
57
					[% FOREACH loopfoote IN mainloo.loopfooter %]
58
					[% FOREACH loopfoote IN mainloo.loopfooter %]
58
						<th>[% loopfoote.totalcol %]</th>
59
						<th>[% loopfoote.totalcol %]</th>
59
					[% END %]
60
					[% END %]
Lines 64-86 Link Here
64
[% ELSE %]
65
[% ELSE %]
65
66
66
	<form method="post" action="/cgi-bin/koha/reports/borrowers_stats.pl">
67
	<form method="post" action="/cgi-bin/koha/reports/borrowers_stats.pl">
67
	<fieldset class="rows"><legend>Patrons statistics</legend>
68
	<fieldset class="rows"><legend>[% t('Patrons statistics') %]</legend>
68
	<table>
69
	<table>
69
		<thead>
70
		<thead>
70
			<tr>
71
			<tr>
71
			<th>Title</th>
72
			<th>[% t('Title') %]</th>
72
			<th>Row</th>
73
			<th>[% t('Row') %]</th>
73
			<th>Column</th>
74
			<th>[% t('Column') %]</th>
74
			<th>Filter</th>
75
			<th>[% t('Filter') %]</th>
75
			</tr>
76
			</tr>
76
		</thead>
77
		</thead>
77
		<tbody>
78
		<tbody>
78
            <tr>
79
            <tr>
79
			<td>Patron category</td>
80
			<td>[% t('Patron category') %]</td>
80
			<td><input type="radio" name="Line" value="categorycode" /></td>
81
			<td><input type="radio" name="Line" value="categorycode" /></td>
81
			<td><input type="radio" name="Column" value="categorycode" /></td>
82
			<td><input type="radio" name="Column" value="categorycode" /></td>
82
            <td>
83
            <td>
83
                <select name="Filter"  size="1" id="catcode">
84
                <select name="Filter" size="1" id="catcode">
84
                    <option value=""></option>
85
                    <option value=""></option>
85
                    [% FOREACH patron_category IN patron_categories %]
86
                    [% FOREACH patron_category IN patron_categories %]
86
                        <option value="[% patron_category.categorycode %]">[% patron_category.description %]</option>
87
                        <option value="[% patron_category.categorycode %]">[% patron_category.description %]</option>
Lines 89-115 Link Here
89
            </td>
90
            </td>
90
			</tr>
91
			</tr>
91
			<tr>
92
			<tr>
92
			<td>Patron status</td>
93
			<td>[% t('Patron status') %]</td>
93
			<td colspan="2"></td>
94
			<td colspan="2"></td>
94
			<td ><select name="status"><option value=""> </option><option value="debarred">restricted</option><option value="gonenoadress">gone no address</option><option value="lost">lost</option></select></td>
95
			<td><select name="status"><option value=""> </option><option value="debarred">[% t('restricted') %]</option><option value="gonenoadress">[% t('gone no address') %]</option><option value="lost">[% t('lost') %]</option></select></td>
95
			</tr>
96
			</tr>
96
            <tr>
97
            <tr>
97
			<td>Patron activity</td>
98
			<td>[% t('Patron activity') %]</td>
98
			<td colspan="2"><select name="period" id="period">
99
			<td colspan="2"><select name="period" id="period">
99
			<option value="1">1</option>
100
			<option value="1">[% t('1') %]</option>
100
			<option value="2">2</option>
101
			<option value="2">[% t('2') %]</option>
101
			<option value="3">3</option>
102
			<option value="3">[% t('3') %]</option>
102
			</select>
103
			</select>
103
			<label for="period">years of activity</label> 
104
			<label for="period">[% t('years of activity') %]</label> 
104
			</td>
105
			</td>
105
			<td><select name="activity"><option value=""> </option><option value="active">active</option><option value="nonactive">no active</option></select></td>
106
			<td><select name="activity"><option value=""> </option><option value="active">[% t('active') %]</option><option value="nonactive">[% t('no active') %]</option></select></td>
106
			</tr>
107
			</tr>
107
108
108
			<tr>
109
			<tr>
109
            <td rowspan="2">ZIP/Postal code</td>
110
            <td rowspan="2">[% t('ZIP/Postal code') %]</td>
110
			<td><input type="radio" name="Line" value="zipcode" /></td>
111
			<td><input type="radio" name="Line" value="zipcode" /></td>
111
			<td><input type="radio" name="Column" value="zipcode" /></td>
112
			<td><input type="radio" name="Column" value="zipcode" /></td>
112
			<td><select name="Filter"  size="1" id="zipcode">
113
			<td><select name="Filter" size="1" id="zipcode">
113
				<option value=""> </option>
114
				<option value=""> </option>
114
				[% FOREACH ZIP_LOO IN ZIP_LOOP %]
115
				[% FOREACH ZIP_LOO IN ZIP_LOOP %]
115
				<option value="[% ZIP_LOO.zipcode %]">[% ZIP_LOO.zipcode %]</option>
116
				<option value="[% ZIP_LOO.zipcode %]">[% ZIP_LOO.zipcode %]</option>
Lines 120-147 Link Here
120
			<tr>
121
			<tr>
121
			<td colspan="2"><select name="digits" id="digits">
122
			<td colspan="2"><select name="digits" id="digits">
122
			<option value=""> </option>
123
			<option value=""> </option>
123
			<option value ="1">1</option>
124
			<option value="1">[% t('1') %]</option>
124
			<option value ="2">2</option>
125
			<option value="2">[% t('2') %]</option>
125
			<option value ="3">3</option>
126
			<option value="3">[% t('3') %]</option>
126
			<option value ="4">4</option>
127
			<option value="4">[% t('4') %]</option>
127
			<option value ="5">5</option>
128
			<option value="5">[% t('5') %]</option>
128
			<option value ="6">6</option>
129
			<option value="6">[% t('6') %]</option>
129
			<option value ="7">7</option>
130
			<option value="7">[% t('7') %]</option>
130
			<option value ="8">8</option>
131
			<option value="8">[% t('8') %]</option>
131
			<option value ="9">9</option>
132
			<option value="9">[% t('9') %]</option>
132
			<option value ="10">10</option>
133
			<option value="10">[% t('10') %]</option>
133
			</select>
134
			</select>
134
			<label for="digits">digits</label> 
135
			<label for="digits">[% t('digits') %]</label> 
135
			</td>
136
			</td>
136
			<td>&nbsp;</td>
137
			<td> </td>
137
			</tr>
138
			</tr>
138
139
139
            <tr>
140
            <tr>
140
			<td>Library</td>
141
			<td>[% t('Library') %]</td>
141
			<td><input type="radio" name="Line"   value="branchcode" /></td>
142
			<td><input type="radio" name="Line" value="branchcode" /></td>
142
			<td><input type="radio" name="Column" value="branchcode" /></td>
143
			<td><input type="radio" name="Column" value="branchcode" /></td>
143
			<td>
144
			<td>
144
                <select name="Filter"  size="1" id="branch">
145
                <select name="Filter" size="1" id="branch">
145
                <option value=""></option>
146
                <option value=""></option>
146
                [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
147
                [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
147
                    <option value="[% l.branchcode %]">[% l.branchcode %] - [% l.branchname || 'UNKNOWN' %]</option>
148
                    <option value="[% l.branchcode %]">[% l.branchcode %] - [% l.branchname || 'UNKNOWN' %]</option>
Lines 150-182 Link Here
150
			</td>
151
			</td>
151
			</tr>
152
			</tr>
152
		    <tr>
153
		    <tr>
153
            <td>Date of birth</td>
154
            <td>[% t('Date of birth') %]</td>
154
            <td colspan="2"></td>
155
            <td colspan="2"></td>
155
                <td><label for="from">From</label> <input type="text" size="10" id="from" name="Filter" class="datepickerfrom" />
156
                <td><label for="from">[% t('From') %]</label> <input type="text" size="10" id="from" name="Filter" class="datepickerfrom" />
156
                    <label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" class="datepickerto" />
157
                    <label for="to">[% t('To') %]</label> <input size="10" id="to" name="Filter" value="" type="text" class="datepickerto" />
157
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
158
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
158
                    </td>
159
                    </td>
159
                </tr>
160
                </tr>
160
            <tr>
161
            <tr>
161
                <td>Gender</td>
162
                <td>[% t('Gender') %]</td>
162
                <td><input type="radio" name="Line" value="sex" /></td>
163
                <td><input type="radio" name="Line" value="sex" /></td>
163
                <td><input type="radio" name="Column" value="sex" /></td>
164
                <td><input type="radio" name="Column" value="sex" /></td>
164
                <td>
165
                <td>
165
                    <select id="sex" size="1" name="Filter">
166
                    <select id="sex" size="1" name="Filter">
166
                        <option value="" />
167
                        <option value="" />
167
                        <option value="M">Men</option>
168
                        <option value="M">[% t('Men') %]</option>
168
                        <option value="F">Women</option>
169
                        <option value="F">[% t('Women') %]</option>
169
                    </select>
170
                    </select>
170
                </td>
171
                </td>
171
            </tr>
172
            </tr>
172
			[% IF ( SORT1_LOOP ) %]
173
			[% IF ( SORT1_LOOP ) %]
173
                <tr>
174
                <tr>
174
				<td>Sort1</td>
175
				<td>[% t('Sort1') %]</td>
175
				<td><input type="radio" name="Line" value="sort1" /></td>
176
				<td><input type="radio" name="Line" value="sort1" /></td>
176
				<td><input type="radio" name="Column" value="sort1" /></td>
177
				<td><input type="radio" name="Column" value="sort1" /></td>
177
				<td>
178
				<td>
178
					<select id="sort1" size="1" name="Filter">
179
					<select id="sort1" size="1" name="Filter">
179
					<option value=""/>
180
					<option value="" />
180
					[% FOREACH SORT1_LOO IN SORT1_LOOP %]
181
					[% FOREACH SORT1_LOO IN SORT1_LOOP %]
181
						<option value="[% SORT1_LOO.authorized_value %]">[% SORT1_LOO.lib %]</option>
182
						<option value="[% SORT1_LOO.authorized_value %]">[% SORT1_LOO.lib %]</option>
182
					[% END %]
183
					[% END %]
Lines 188-199 Link Here
188
			[% END %]
189
			[% END %]
189
			[% IF ( SORT2_LOOP ) %]
190
			[% IF ( SORT2_LOOP ) %]
190
                <tr>
191
                <tr>
191
				<td>Sort2</td>
192
				<td>[% t('Sort2') %]</td>
192
				<td><input type="radio" name="Line" value="sort2" /></td>
193
				<td><input type="radio" name="Line" value="sort2" /></td>
193
				<td><input type="radio" name="Column" value="sort2" /></td>
194
				<td><input type="radio" name="Column" value="sort2" /></td>
194
				<td>
195
				<td>
195
					<select id="sort2" size="1" name="Filter">
196
					<select id="sort2" size="1" name="Filter">
196
					<option value=""/>
197
					<option value="" />
197
					[% FOREACH SORT2_LOO IN SORT2_LOOP %]
198
					[% FOREACH SORT2_LOO IN SORT2_LOOP %]
198
						<option value="[% SORT2_LOO.value %]">[% SORT2_LOO.value %]</option>
199
						<option value="[% SORT2_LOO.value %]">[% SORT2_LOO.value %]</option>
199
					[% END %]
200
					[% END %]
Lines 205-211 Link Here
205
			[% END %]
206
			[% END %]
206
            [% IF ( ExtendedPatronAttributes ) %]
207
            [% IF ( ExtendedPatronAttributes ) %]
207
                <tr>
208
                <tr>
208
                    <th colspan="4">Patron attributes</th>
209
                    <th colspan="4">[% t('Patron attributes') %]</th>
209
                </tr>
210
                </tr>
210
            [% FOREACH pa_loo IN patron_attributes %]
211
            [% FOREACH pa_loo IN patron_attributes %]
211
                [% IF (pa_loo.class) %]
212
                [% IF (pa_loo.class) %]
Lines 221-246 Link Here
221
                        ([% patron_attribute.description %])
222
                        ([% patron_attribute.description %])
222
                    </td>
223
                    </td>
223
                    <td>
224
                    <td>
224
                        <input type="radio" name="Line"
225
                        <input type="radio" name="Line" value="patron_attr.[% patron_attribute.code %]" />
225
                            value="patron_attr.[% patron_attribute.code %]" />
226
                    </td>
226
                    </td>
227
                    <td>
227
                    <td>
228
                        <input type="radio" name="Column"
228
                        <input type="radio" name="Column" value="patron_attr.[% patron_attribute.code %]" />
229
                            value="patron_attr.[% patron_attribute.code %]" />
230
                    </td>
229
                    </td>
231
                    <td>
230
                    <td>
232
                        [% IF ( patron_attribute.use_dropdown ) %]
231
                        [% IF ( patron_attribute.use_dropdown ) %]
233
                            <select name="Filter_patron_attr.[% patron_attribute.code %]"  >
232
                            <select name="Filter_patron_attr.[% patron_attribute.code %]">
234
                                <option value="" />
233
                                <option value="" />
235
                                [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
234
                                [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
236
                                    <option value="[% auth_val_loo.authorised_value %]" >
235
                                    <option value="[% auth_val_loo.authorised_value %]">
237
                                        [% auth_val_loo.lib %]
236
                                        [% auth_val_loo.lib %]
238
                                    </option>
237
                                    </option>
239
                                [% END %]
238
                                [% END %]
240
                            </select>
239
                            </select>
241
                        [% ELSE %]
240
                        [% ELSE %]
242
                            <input type="text" maxlength="64"
241
                            <input type="text" maxlength="64" name="Filter_patron_attr.[% patron_attribute.code %]" />
243
                                   name="Filter_patron_attr.[% patron_attribute.code %]" />
244
                        [% END %]
242
                        [% END %]
245
                    </td>
243
                    </td>
246
                </tr>
244
                </tr>
Lines 253-267 Link Here
253
251
254
	
252
	
255
	<fieldset class="rows">
253
	<fieldset class="rows">
256
	<legend>Output</legend>
254
	<legend>[% t('Output') %]</legend>
257
    <ol>
255
    <ol>
258
        <li>
256
        <li>
259
            <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
257
            <label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
260
        </li>
258
        </li>
261
        <li>
259
        <li>
262
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
260
            <label for="outputfile">[% t('To a file:') %]</label> <input type="radio" name="output" value="file" id="outputfile" />
263
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
261
            <label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
264
            <label class="inline" for="MIME">Into an application:</label>
262
            <label class="inline" for="MIME">[% t('Into an application:') %]</label>
265
            <select name="MIME" id="MIME" size="1">
263
            <select name="MIME" id="MIME" size="1">
266
            [% FOREACH value IN CGIextChoice %]
264
            [% FOREACH value IN CGIextChoice %]
267
                <option value="[% value %]">[% value %]</option>
265
                <option value="[% value %]">[% value %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt (-64 / +65 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Price %]
4
[% USE Price %]
4
[% USE ItemTypes %]
5
[% USE ItemTypes %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Reports [% IF ( do_it ) %]&rsaquo; Cash register statistics &rsaquo; Results[% ELSE %]&rsaquo; Cash register statistics[% END %]</title>
8
<title>[% t('Koha › Reports') %] [% IF ( do_it ) %][% t('› Cash register statistics › Results') %][% ELSE %][% t('› Cash register statistics') %][% END %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% Asset.css("css/datatables.css") %]
10
[% Asset.css("css/datatables.css") %]
10
</head>
11
</head>
Lines 14-25 Link Here
14
[% INCLUDE 'cat-search.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
15
16
16
<div id="breadcrumbs">
17
<div id="breadcrumbs">
17
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
18
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a>
18
    &rsaquo;
19
19
    [% IF ( do_it ) %]
20
    [% IF ( do_it ) %]
20
        <a href="/cgi-bin/koha/reports/cash_register_stats.pl">Cash register statistics</a> &rsaquo; Results
21
        <a href="/cgi-bin/koha/reports/cash_register_stats.pl">[% t('Cash register statistics') %]</a> [% t('› Results') %]
21
    [% ELSE %]
22
    [% ELSE %]
22
        Cash register statistics
23
        [% t('Cash register statistics') %]
23
    [% END %]
24
    [% END %]
24
</div>
25
</div>
25
26
Lines 29-124 Link Here
29
    <div id="yui-main">
30
    <div id="yui-main">
30
    <div class="yui-b">
31
    <div class="yui-b">
31
32
32
    <h1>Cash register statistics</h1>
33
    <h1>[% t('Cash register statistics') %]</h1>
33
    <form method="post" action="/cgi-bin/koha/reports/cash_register_stats.pl" id="frmCashRegister">
34
    <form method="post" action="/cgi-bin/koha/reports/cash_register_stats.pl" id="frmCashRegister">
34
        <fieldset class="rows">
35
        <fieldset class="rows">
35
            <legend>Cash register statistics [% beginDate | $KohaDates %] to [% endDate | $KohaDates %]</legend>
36
            <legend>[% t('Cash register statistics') %] [% beginDate | $KohaDates %] [% t('to') %] [% endDate | $KohaDates %]</legend>
36
            <ol>
37
            <ol>
37
                <br>
38
                <br>
38
                <li>
39
                <li>
39
                    <label for="from">From: </label>
40
                    <label for="from">[% t('From:') %] </label>
40
                    <input type="text" size="10" id="from" name="from" value="[% beginDate | $KohaDates %]" class="datepickerfrom" />
41
                    <input type="text" size="10" id="from" name="from" value="[% beginDate | $KohaDates %]" class="datepickerfrom" />
41
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
42
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
42
                </li>
43
                </li>
43
                <li>
44
                <li>
44
                    <label for="to">To: </label>
45
                    <label for="to">[% t('To:') %] </label>
45
                    <input type="text" size="10" id="to" name="to" value="[% endDate | $KohaDates %]" class="datepickerto" />
46
                    <input type="text" size="10" id="to" name="to" value="[% endDate | $KohaDates %]" class="datepickerto" />
46
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
47
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
47
                </li>
48
                </li>
48
49
49
                <li>
50
                <li>
50
                    <label for="">Transaction type:</label>
51
                    <label for="">[% t('Transaction type:') %]</label>
51
                    <select name="transaction_type" id="transaction_type">
52
                    <select name="transaction_type" id="transaction_type">
52
                        [% IF transaction_type == "ALL" %]
53
                        [% IF transaction_type == "ALL" %]
53
                        <option value="ALL" selected="selected">All transactions</option>
54
                        <option value="ALL" selected="selected">[% t('All transactions') %]</option>
54
                        [% ELSE %]
55
                        [% ELSE %]
55
                        <option value="ALL">All transactions</option>
56
                        <option value="ALL">[% t('All transactions') %]</option>
56
                        [% END %]
57
                        [% END %]
57
58
58
                        [% IF transaction_type == "ACT" %]
59
                        [% IF transaction_type == "ACT" %]
59
                        <option value="ACT" selected="selected">All payments to the library</option>
60
                        <option value="ACT" selected="selected">[% t('All payments to the library') %]</option>
60
                        [% ELSE %]
61
                        [% ELSE %]
61
                        <option value="ACT">All payments to the library</option>
62
                        <option value="ACT">[% t('All payments to the library') %]</option>
62
                        [% END %]
63
                        [% END %]
63
64
64
                        [% IF transaction_type == "C" %]
65
                        [% IF transaction_type == "C" %]
65
                        <option value="C" selected="selected">Credit</option>
66
                        <option value="C" selected="selected">[% t('Credit') %]</option>
66
                        [% ELSE %]
67
                        [% ELSE %]
67
                        <option value="C">Credit</option>
68
                        <option value="C">[% t('Credit') %]</option>
68
                        [% END %]
69
                        [% END %]
69
70
70
                        [% IF transaction_type == "CR" %]
71
                        [% IF transaction_type == "CR" %]
71
                        <option value="CR" selected="selected">Credit (item returned)</option>
72
                        <option value="CR" selected="selected">[% t('Credit (item returned)') %]</option>
72
                        [% ELSE %]
73
                        [% ELSE %]
73
                        <option value="CR">Credit (item returned)</option>
74
                        <option value="CR">[% t('Credit (item returned)') %]</option>
74
                        [% END %]
75
                        [% END %]
75
76
76
                        [% IF transaction_type == "FORW" %]
77
                        [% IF transaction_type == "FORW" %]
77
                        <option value="FORW" selected="selected">Write off</option>
78
                        <option value="FORW" selected="selected">[% t('Write off') %]</option>
78
                        [% ELSE %]
79
                        [% ELSE %]
79
                        <option value="FORW">Write off</option>
80
                        <option value="FORW">[% t('Write off') %]</option>
80
                        [% END %]
81
                        [% END %]
81
82
82
                        [% IF transaction_type == "F" %]
83
                        [% IF transaction_type == "F" %]
83
                        <option value="F" selected="selected">Fine</option>
84
                        <option value="F" selected="selected">[% t('Fine') %]</option>
84
                        [% ELSE %]
85
                        [% ELSE %]
85
                        <option value="F">Fine</option>
86
                        <option value="F">[% t('Fine') %]</option>
86
                        [% END %]
87
                        [% END %]
87
88
88
                        [% IF transaction_type == "FU" %]
89
                        [% IF transaction_type == "FU" %]
89
                        <option value="FU" selected="selected">Accruing fine</option>
90
                        <option value="FU" selected="selected">[% t('Accruing fine') %]</option>
90
                        [% ELSE %]
91
                        [% ELSE %]
91
                        <option value="FU">Accruing fine</option>
92
                        <option value="FU">[% t('Accruing fine') %]</option>
92
                        [% END %]
93
                        [% END %]
93
94
94
                        [% IF transaction_type == "PAY" %]
95
                        [% IF transaction_type == "PAY" %]
95
                        <option value="PAY" selected="selected">Payment</option>
96
                        <option value="PAY" selected="selected">[% t('Payment') %]</option>
96
                        [% ELSE %]
97
                        [% ELSE %]
97
                        <option value="PAY">Payment</option>
98
                        <option value="PAY">[% t('Payment') %]</option>
98
                        [% END %]
99
                        [% END %]
99
100
100
                        [% IF transaction_type == "A" %]
101
                        [% IF transaction_type == "A" %]
101
                        <option value="A" selected="selected">Account management fee</option>
102
                        <option value="A" selected="selected">[% t('Account management fee') %]</option>
102
                        [% ELSE %]
103
                        [% ELSE %]
103
                        <option value="A">Account management fee</option>
104
                        <option value="A">[% t('Account management fee') %]</option>
104
                        [% END %]
105
                        [% END %]
105
106
106
                        [% IF transaction_type == "M" %]
107
                        [% IF transaction_type == "M" %]
107
                        <option value="M" selected="selected">Sundry</option>
108
                        <option value="M" selected="selected">[% t('Sundry') %]</option>
108
                        [% ELSE %]
109
                        [% ELSE %]
109
                        <option value="M">Sundry</option>
110
                        <option value="M">[% t('Sundry') %]</option>
110
                        [% END %]
111
                        [% END %]
111
112
112
                        [% IF transaction_type == "L" %]
113
                        [% IF transaction_type == "L" %]
113
                        <option value="L" selected="selected">Lost item</option>
114
                        <option value="L" selected="selected">[% t('Lost item') %]</option>
114
                        [% ELSE %]
115
                        [% ELSE %]
115
                        <option value="L">Lost item</option>
116
                        <option value="L">[% t('Lost item') %]</option>
116
                        [% END %]
117
                        [% END %]
117
118
118
                        [% IF transaction_type == "N" %]
119
                        [% IF transaction_type == "N" %]
119
                        <option value="N" selected="selected">New card</option>
120
                        <option value="N" selected="selected">[% t('New card') %]</option>
120
                        [% ELSE %]
121
                        [% ELSE %]
121
                        <option value="N">New card</option>
122
                        <option value="N">[% t('New card') %]</option>
122
                        [% END %]
123
                        [% END %]
123
124
124
                        [% FOREACH manualinv IN manualinv_types %]
125
                        [% FOREACH manualinv IN manualinv_types %]
Lines 132-140 Link Here
132
                    </select>
133
                    </select>
133
                </li>
134
                </li>
134
                <li>
135
                <li>
135
                    <label>Transaction branch</label>
136
                    <label>[% t('Transaction branch') %]</label>
136
                    <select name="branch" id="branch">
137
                    <select name="branch" id="branch">
137
                        <option value="ALL">All</option>
138
                        <option value="ALL">[% t('All') %]</option>
138
                        [% FOREACH branchloo IN branchloop %]
139
                        [% FOREACH branchloo IN branchloop %]
139
                            [% IF ( branchloo.selected ) %]
140
                            [% IF ( branchloo.selected ) %]
140
                            <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
141
                            <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
Lines 150-165 Link Here
150
        </fieldset>
151
        </fieldset>
151
152
152
        <fieldset class="rows">
153
        <fieldset class="rows">
153
            <legend>Output</legend>
154
            <legend>[% t('Output') %]</legend>
154
            <ol>
155
            <ol>
155
                <li>
156
                <li>
156
                    <label for="outputscreen">To screen into the browser: </label>
157
                    <label for="outputscreen">[% t('To screen into the browser:') %] </label>
157
                    <input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
158
                    <input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
158
                </li>
159
                </li>
159
                <li>
160
                <li>
160
                    <label for="outputfile">To a file:</label>
161
                    <label for="outputfile">[% t('To a file:') %]</label>
161
                    <input type="radio" name="output" value="file" id="outputfile" />
162
                    <input type="radio" name="output" value="file" id="outputfile" />
162
                    <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
163
                    <label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
163
164
164
                </li>
165
                </li>
165
            </ol>
166
            </ol>
Lines 171-191 Link Here
171
    </form>
172
    </form>
172
173
173
    [% IF ( do_it ) %]
174
    [% IF ( do_it ) %]
174
    <div>&nbsp;</div>
175
    <div> </div>
175
    <table id="tbl_cash_register_stats">
176
    <table id="tbl_cash_register_stats">
176
        <thead>
177
        <thead>
177
        <tr>
178
        <tr>
178
            <th>Manager name</th>
179
            <th>[% t('Manager name') %]</th>
179
            <th>Patron card number</th>
180
            <th>[% t('Patron card number') %]</th>
180
            <th>Patron name</th>
181
            <th>[% t('Patron name') %]</th>
181
            <th>Transaction branch</th>
182
            <th>[% t('Transaction branch') %]</th>
182
            <th>Transaction date</th>
183
            <th>[% t('Transaction date') %]</th>
183
            <th>Transaction type</th>
184
            <th>[% t('Transaction type') %]</th>
184
            <th>Notes</th>
185
            <th>[% t('Notes') %]</th>
185
            <th>Amount</th>
186
            <th>[% t('Amount') %]</th>
186
            <th>Biblio title</th>
187
            <th>[% t('Biblio title') %]</th>
187
            <th>Barcode</th>
188
            <th>[% t('Barcode') %]</th>
188
            <th>Item type</th>
189
            <th>[% t('Item type') %]</th>
189
        </tr>
190
        </tr>
190
        </thead>
191
        </thead>
191
        [% FOREACH loopresul IN loopresult %]
192
        [% FOREACH loopresul IN loopresult %]
Lines 197-221 Link Here
197
                <td>[% loopresul.date | $KohaDates %]</td>
198
                <td>[% loopresul.date | $KohaDates %]</td>
198
                <td>
199
                <td>
199
                    [% IF loopresul.accounttype == "ACT" %]
200
                    [% IF loopresul.accounttype == "ACT" %]
200
                        <span>All payments to the library</span>
201
                        <span>[% t('All payments to the library') %]</span>
201
                    [% ELSIF loopresul.accounttype == "C" || loopresul.accounttype == "CR" %]
202
                    [% ELSIF loopresul.accounttype == "C" || loopresul.accounttype == "CR" %]
202
                        <span>Credit</span>
203
                        <span>[% t('Credit') %]</span>
203
                    [% ELSIF loopresul.accounttype == "FORW" || loopresul.accounttype == "W" %]
204
                    [% ELSIF loopresul.accounttype == "FORW" || loopresul.accounttype == "W" %]
204
                        <span>Write off</span>
205
                        <span>[% t('Write off') %]</span>
205
                    [% ELSIF loopresul.accounttype == "F" %]
206
                    [% ELSIF loopresul.accounttype == "F" %]
206
                        <span>Fine</span>
207
                        <span>[% t('Fine') %]</span>
207
                    [% ELSIF loopresul.accounttype == "FU" %]
208
                    [% ELSIF loopresul.accounttype == "FU" %]
208
                        <span>Accruing fine</span>
209
                        <span>[% t('Accruing fine') %]</span>
209
                    [% ELSIF loopresul.accounttype == "Pay" %]
210
                    [% ELSIF loopresul.accounttype == "Pay" %]
210
                        <span>Payment</span>
211
                        <span>[% t('Payment') %]</span>
211
                    [% ELSIF loopresul.accounttype == "A" %]
212
                    [% ELSIF loopresul.accounttype == "A" %]
212
                        <span>Account management fee</span>
213
                        <span>[% t('Account management fee') %]</span>
213
                    [% ELSIF loopresul.accounttype == "M" %]
214
                    [% ELSIF loopresul.accounttype == "M" %]
214
                        <span>Sundry</span>
215
                        <span>[% t('Sundry') %]</span>
215
                    [% ELSIF loopresul.accounttype == "L" || loopresul.accounttype == "LR" %]
216
                    [% ELSIF loopresul.accounttype == "L" || loopresul.accounttype == "LR" %]
216
                        <span>Lost item</span>
217
                        <span>[% t('Lost item') %]</span>
217
                    [% ELSIF loopresul.accounttype == "N" %]
218
                    [% ELSIF loopresul.accounttype == "N" %]
218
                        <span>New card</span>
219
                        <span>[% t('New card') %]</span>
219
                    [% ELSE %]
220
                    [% ELSE %]
220
                        [% FOREACH manualinv IN manualinv_types %]
221
                        [% FOREACH manualinv IN manualinv_types %]
221
                            [% value_manualinv = manualinv.authorised_value|truncate(5, '') %]
222
                            [% value_manualinv = manualinv.authorised_value|truncate(5, '') %]
Lines 236-244 Link Here
236
        <tfoot>
237
        <tfoot>
237
        <tr>
238
        <tr>
238
            [% IF transaction_type == "ACT" %]
239
            [% IF transaction_type == "ACT" %]
239
            <th colspan="7" style="text-align:right;">TOTAL</th>
240
            <th colspan="7" style="text-align:right;">[% t('TOTAL') %]</th>
240
            <th style="text-align:right;">[% total  | $Price %]</th>
241
            <th style="text-align:right;">[% total  | $Price %]</th>
241
            <th colspan="3">&nbsp;</th>
242
            <th colspan="3"> </th>
242
            [% END %]
243
            [% END %]
243
        </tr>
244
        </tr>
244
        </tfoot>
245
        </tfoot>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt (-52 / +53 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
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 &rsaquo; Most-circulated items[% IF ( do_it ) %] &rsaquo; Results[% END %]</title>
5
<title>[% t('Koha › Reports › Most-circulated items') %][% IF ( do_it ) %] [% t('› Results') %][% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; [% IF ( do_it ) %]<a href="/cgi-bin/koha/reports/cat_issues_top.pl">Most-circulated items</a> &rsaquo; Results[% ELSE %]Most-Circulated Items[% END %]</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> › [% IF ( do_it ) %]<a href="/cgi-bin/koha/reports/cat_issues_top.pl">[% t('Most-circulated items') %]</a> [% t('› Results') %][% ELSE %][% t('Most-Circulated Items') %][% END %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
   
16
   
Lines 20-43 Link Here
20
[% IF ( do_it ) %]
21
[% IF ( do_it ) %]
21
22
22
	[% FOREACH mainloo IN mainloop %]
23
	[% FOREACH mainloo IN mainloop %]
23
        <h1>Top [% mainloo.limit %] Most-circulated items</h1>
24
        <h1>[% t('Top') %] [% mainloo.limit %] [% t('Most-circulated items') %]</h1>
24
		[% IF ( mainloo.loopfilter ) %]
25
		[% IF ( mainloo.loopfilter ) %]
25
            <p>Filtered on:</p>
26
            <p>[% t('Filtered on:') %]</p>
26
			[% FOREACH loopfilte IN mainloo.loopfilter %]
27
			[% FOREACH loopfilte IN mainloo.loopfilter %]
27
                    <p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit %] =[% loopfilte.filter |html %][% IF ( loopfilte.err ) %]  [% END %]</p>
28
                    <p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit %] =[% loopfilte.filter |html %][% IF ( loopfilte.err ) %]  [% END %]</p>
28
			[% END %]
29
			[% END %]
29
		[% END %]
30
		[% END %]
30
		
31
		
31
		<table>
32
		<table>
32
<tr>				<th>Rank/Biblioitemnumbers</th>
33
<tr>				<th>[% t('Rank/Biblioitemnumbers') %]</th>
33
				[% FOREACH loopco IN mainloo.loopcol %]
34
				[% FOREACH loopco IN mainloo.loopcol %]
34
					<th colspan="2">[% loopco.coltitle %]</th>
35
					<th colspan="2">[% loopco.coltitle %]</th>
35
				[% END %]</tr>
36
				[% END %]</tr>
36
        <tr>
37
        <tr>
37
				<th>&nbsp;</th>
38
				<th> </th>
38
				[% FOREACH loopco IN mainloo.loopcol %]
39
				[% FOREACH loopco IN mainloo.loopcol %]
39
					<th>Item</th>
40
					<th>[% t('Item') %]</th>
40
                    <th>Count of checkouts</th>
41
                    <th>[% t('Count of checkouts') %]</th>
41
				[% END %]
42
				[% END %]
42
			  </tr>
43
			  </tr>
43
				[% FOREACH loopro IN mainloo.looprow %]
44
				[% FOREACH loopro IN mainloo.looprow %]
Lines 67-160 Link Here
67
		</table>
68
		</table>
68
	[% END %]
69
	[% END %]
69
[% ELSE %]
70
[% ELSE %]
70
    <h1>Most-circulated items</h1>
71
    <h1>[% t('Most-circulated items') %]</h1>
71
	<form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
72
	<form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
72
	<fieldset class="rows">
73
	<fieldset class="rows">
73
	<ol>
74
	<ol>
74
        <li><label for="from">Checkout date from: </label> <input type="text" size="10" id="from" name="Filter" />
75
        <li><label for="from">[% t('Checkout date from:') %] </label> <input type="text" size="10" id="from" name="Filter" />
75
        <label for="to" class="inline">To:</label> <input size="10" id="to" name="Filter" value="" type="text" />
76
        <label for="to" class="inline">[% t('To:') %]</label> <input size="10" id="to" name="Filter" value="" type="text" />
76
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
77
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
77
        <li><label for="fromRO">Check-in date from</label> <input type="text" size="10" id="fromRO" name="Filter" />
78
        <li><label for="fromRO">[% t('Check-in date from') %]</label> <input type="text" size="10" id="fromRO" name="Filter" />
78
        <label for="toRO" class="inline">To: </label> <input type="text" size="10" id="toRO" name="Filter" value="" />
79
        <label for="toRO" class="inline">[% t('To:') %] </label> <input type="text" size="10" id="toRO" name="Filter" value="" />
79
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
80
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
80
        <li>
81
        <li>
81
            <label for="branch">Library: </label>
82
            <label for="branch">[% t('Library:') %] </label>
82
            <select name="Filter" id="branch"><option value="" > Any library</option>
83
            <select name="Filter" id="branch"><option value=""> [% t('Any library') %]</option>
83
                [% PROCESS options_for_libraries libraries => Branches.all() %]
84
                [% PROCESS options_for_libraries libraries => Branches.all() %]
84
            </select>
85
            </select>
85
        </li>
86
        </li>
86
      <li> 
87
      <li> 
87
        <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
88
        <label for="documenttype">[% t('Item type:') %] </label><select name="Filter" id="documenttype"><option value=""> [% t('Any item type') %]</option>
88
    [% FOREACH itemtype IN itemtypes %]
89
    [% FOREACH itemtype IN itemtypes %]
89
        <option value="[% itemtype.itemtype %]" >[% itemtype.translated_description %] </option>
90
        <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %] </option>
90
     [% END %] 
91
     [% END %] 
91
    </select>
92
    </select>
92
      </li>
93
      </li>
93
      <li> 
94
      <li> 
94
        <label for="itemcallnumber">Call number: </label><input type="text" name="Filter" id="itemcallnumber" value="" />
95
        <label for="itemcallnumber">[% t('Call number:') %] </label><input type="text" name="Filter" id="itemcallnumber" value="" />
95
      </li>
96
      </li>
96
      <li>
97
      <li>
97
        <label for="ccode">Collection: </label><select name="Filter" id="ccode"><option value="" > Any collection</option>
98
        <label for="ccode">[% t('Collection:') %] </label><select name="Filter" id="ccode"><option value=""> [% t('Any collection') %]</option>
98
    [% FOREACH ccodeloo IN ccodeloop %]
99
    [% FOREACH ccodeloo IN ccodeloop %]
99
        <option value="[% ccodeloo.value %]" >[% ccodeloo.description %] </option>
100
        <option value="[% ccodeloo.value %]">[% ccodeloo.description %] </option>
100
     [% END %]
101
     [% END %]
101
    </select>
102
    </select>
102
      </li>
103
      </li>
103
      <li>
104
      <li>
104
        <label for="shelvingloc">Shelving location: </label><select name="Filter" id="shelvingloc"><option value="" > Any shelving location</option>
105
        <label for="shelvingloc">[% t('Shelving location:') %] </label><select name="Filter" id="shelvingloc"><option value=""> [% t('Any shelving location') %]</option>
105
    [% FOREACH shelvinglocloo IN shelvinglocloop %]
106
    [% FOREACH shelvinglocloo IN shelvinglocloop %]
106
        <option value="[% shelvinglocloo.value %]" >[% shelvinglocloo.description %] </option>
107
        <option value="[% shelvinglocloo.value %]">[% shelvinglocloo.description %] </option>
107
     [% END %]
108
     [% END %]
108
    </select>
109
    </select>
109
      </li>
110
      </li>
110
      <li>
111
      <li>
111
        <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
112
        <label for="patroncategory">[% t('Patron category:') %] </label><select name="Filter" id="patroncategory"><option value=""> [% t('Any category code') %]</option>
112
    [% FOREACH patron_category IN patron_categories %]
113
    [% FOREACH patron_category IN patron_categories %]
113
        <option value="[% patron_category.categorycode %]" >[% patron_category.description %] </option>
114
        <option value="[% patron_category.categorycode %]">[% patron_category.description %] </option>
114
     [% END %]
115
     [% END %]
115
    </select>
116
    </select>
116
        </li>
117
        </li>
117
				<li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
118
				<li><label for="day">[% t('Day:') %] </label> <input type="text" name="Filter" id="day" value="" /></li>
118
				<li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
119
				<li><label for="month">[% t('Month:') %] </label> <input type="text" name="Filter" id="month" value="" /></li>
119
				<li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
120
				<li><label for="year">[% t('Year:') %] </label> <input type="text" name="Filter" id="year" value="" /></li>
120
	</ol>
121
	</ol>
121
	</fieldset>
122
	</fieldset>
122
	
123
	
123
	<fieldset class="rows">
124
	<fieldset class="rows">
124
	<legend>Limits</legend>
125
	<legend>[% t('Limits') %]</legend>
125
	<ol><li><label for="numberlimit">Limit to:</label><select name="Limit" id="numberlimit">
126
	<ol><li><label for="numberlimit">[% t('Limit to:') %]</label><select name="Limit" id="numberlimit">
126
                        <option value ="" selected="selected">None</option>
127
                        <option value="" selected="selected">[% t('None') %]</option>
127
						<option value="5" selected="selected"> 5</option>
128
						<option value="5" selected="selected"> [% t('5') %]</option>
128
						<option value ="10">10</option>
129
						<option value="10">[% t('10') %]</option>
129
						<option value ="15">15</option>
130
						<option value="15">[% t('15') %]</option>
130
						<option value ="20">20</option>
131
						<option value="20">[% t('20') %]</option>
131
						<option value ="25">25</option>
132
						<option value="25">[% t('25') %]</option>
132
						<option value ="40">40</option>
133
						<option value="40">[% t('40') %]</option>
133
						<option value ="50">50</option>
134
						<option value="50">[% t('50') %]</option>
134
						<option value ="100">100</option>
135
						<option value="100">[% t('100') %]</option>
135
					</select></li>
136
					</select></li>
136
	<li><label for="criteria">By: </label><select name="Criteria" id="criteria">
137
	<li><label for="criteria">[% t('By:') %] </label><select name="Criteria" id="criteria">
137
						<option value ="" selected="selected">None</option>
138
						<option value="" selected="selected">[% t('None') %]</option>
138
                        <option value ="branch">Library</option>
139
                        <option value="branch">[% t('Library') %]</option>
139
						<option value ="categorycode">Categorycode</option>
140
						<option value="categorycode">[% t('Categorycode') %]</option>
140
						<option value ="itemtype">Itemtype</option>
141
						<option value="itemtype">[% t('Itemtype') %]</option>
141
						<option value ="Day">Day</option>
142
						<option value="Day">[% t('Day') %]</option>
142
						<option value ="Week">Week</option>
143
						<option value="Week">[% t('Week') %]</option>
143
						<option value ="Month">Month</option>
144
						<option value="Month">[% t('Month') %]</option>
144
						<option value ="Year">Year</option>
145
						<option value="Year">[% t('Year') %]</option>
145
					</select></li></ol>
146
					</select></li></ol>
146
	</fieldset>
147
	</fieldset>
147
	
148
	
148
	<fieldset class="rows">
149
	<fieldset class="rows">
149
	<legend>Output</legend>
150
	<legend>[% t('Output') %]</legend>
150
    <ol>
151
    <ol>
151
        <li>
152
        <li>
152
            <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
153
            <label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
153
        </li>
154
        </li>
154
        <li>
155
        <li>
155
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
156
            <label for="outputfile">[% t('To a file:') %]</label> <input type="radio" name="output" value="file" id="outputfile" />
156
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
157
            <label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
157
            <label class="inline" for="MIME">Into an application:</label>
158
            <label class="inline" for="MIME">[% t('Into an application:') %]</label>
158
            <select name="MIME" id="MIME" size="1">
159
            <select name="MIME" id="MIME" size="1">
159
            [% FOREACH value IN CGIextChoice %]
160
            [% FOREACH value IN CGIextChoice %]
160
                <option value="[% value %]">[% value %]</option>
161
                <option value="[% value %]">[% value %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt (-37 / +38 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Reports &rsaquo; Items with no checkouts</title>
4
<title>[% t('Koha › Reports › Items with no checkouts') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
<style type="text/css">
6
<style type="text/css">
6
	.sql {display: none;}
7
	.sql {display: none;}
Lines 10-16 Link Here
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
12
[% INCLUDE 'cat-search.inc' %]
12
13
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; Items with no checkouts</div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% t('› Items with no checkouts') %]</div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
   <div id="bd">
17
   <div id="bd">
Lines 18-29 Link Here
18
	<div class="yui-b">
19
	<div class="yui-b">
19
20
20
[% IF ( do_it ) %]
21
[% IF ( do_it ) %]
21
	<h1>Items with no checkouts</h1>
22
	<h1>[% t('Items with no checkouts') %]</h1>
22
	[% FOREACH mainloo IN mainloop %]
23
	[% FOREACH mainloo IN mainloop %]
23
		[% IF ( mainloo.loopfilter ) %]
24
		[% IF ( mainloo.loopfilter ) %]
24
            <p>Filtered on:</p>
25
            <p>[% t('Filtered on:') %]</p>
25
			[% FOREACH loopfilte IN mainloo.loopfilter %]
26
			[% FOREACH loopfilte IN mainloo.loopfilter %]
26
				[% IF ( loopfilte.err ) %]<p class="error">Error: 
27
				[% IF ( loopfilte.err ) %]<p class="error">[% t('Error:') %] 
27
				[% ELSE %]<p>
28
				[% ELSE %]<p>
28
				[% END %]
29
				[% END %]
29
					[% IF ( loopfilte.sql ) %]<span class="sql">[% END %]
30
					[% IF ( loopfilte.sql ) %]<span class="sql">[% END %]
Lines 34-54 Link Here
34
		[% END %]
35
		[% END %]
35
		
36
		
36
		[% IF ( mainloo.looptables ) %]
37
		[% IF ( mainloo.looptables ) %]
37
			<h3><a name="summary" id="summary"></a>Summary</h3>
38
			<h3><a name="summary" id="summary"></a>[% t('Summary') %]</h3>
38
			<table id="summary_table">
39
			<table id="summary_table">
39
                <tr><th>Group</th><th>Call number range</th><th>Number of items displayed</th><th>Total items in group</th>
40
                <tr><th>[% t('Group') %]</th><th>[% t('Call number range') %]</th><th>[% t('Number of items displayed') %]</th><th>[% t('Total items in group') %]</th>
40
				</tr>
41
				</tr>
41
			[% FOREACH looptable IN mainloo.looptables %]
42
			[% FOREACH looptable IN mainloo.looptables %]
42
				<tr><td><a href="#table[% looptable.coltitle %]">[% looptable.coltitle %]</a></td>
43
				<tr><td><a href="#table[% looptable.coltitle %]">[% looptable.coltitle %]</a></td>
43
					<td>[% IF ( looptable.looptable_count ) %]
44
					<td>[% IF ( looptable.looptable_count ) %]
44
						[% looptable.looptable_first %] to [% looptable.looptable_last %]
45
						[% looptable.looptable_first %] [% t('to') %] [% looptable.looptable_last %]
45
						[% END %]
46
						[% END %]
46
					</td>
47
					</td>
47
					<td>[% looptable.looptable_count %]</td>
48
					<td>[% looptable.looptable_count %]</td>
48
					<td>[% looptable.coltitle_count %]</td>
49
					<td>[% looptable.coltitle_count %]</td>
49
				</tr>
50
				</tr>
50
			[% END %]
51
			[% END %]
51
				<tr><th>TOTAL</th><th></th><th>[% mainloo.total_looptable_count %]</th><th>[% mainloo.total_coltitle_count %]</th>
52
				<tr><th>[% t('TOTAL') %]</th><th></th><th>[% mainloo.total_looptable_count %]</th><th>[% mainloo.total_coltitle_count %]</th>
52
				</tr>
53
				</tr>
53
			</table>
54
			</table>
54
55
Lines 60-102 Link Here
60
		<table>
61
		<table>
61
			<tr>
62
			<tr>
62
				<th>#</th>
63
				<th>#</th>
63
                <th>Call number</th>
64
                <th>[% t('Call number') %]</th>
64
				<th>Barcode</th>
65
				<th>[% t('Barcode') %]</th>
65
                <th>Item details</th>
66
                <th>[% t('Item details') %]</th>
66
			</tr>
67
			</tr>
67
				[% IF ( looptable.looprow ) %]
68
				[% IF ( looptable.looprow ) %]
68
				[% FOREACH loopro IN looptable.looprow %]
69
				[% FOREACH loopro IN looptable.looprow %]
69
                    <tr>
70
                    <tr>
70
		    
71
		    
71
						<td>[% loop.count %]</td>
72
						<td>[% loop.count %]</td>
72
                        <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber %][% ELSE %]No call number[% END %]</td>
73
                        <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber %][% ELSE %][% t('No call number') %][% END %]</td>
73
                        <td>[% IF ( loopro.barcode ) %][% loopro.barcode %][% ELSE %]No barcode[% END %]</td>
74
                        <td>[% IF ( loopro.barcode ) %][% loopro.barcode %][% ELSE %][% t('No barcode') %][% END %]</td>
74
                        <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% IF ( loopro.title ) %][% loopro.title %][% ELSE %]NO TITLE[% END %]</a> [% IF ( loopro.author ) %] by [% loopro.author %][% END %]</p>
75
                        <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% IF ( loopro.title ) %][% loopro.title %][% ELSE %][% t('NO TITLE') %][% END %]</a> [% IF ( loopro.author ) %] [% t('by') %] [% loopro.author %][% END %]</p>
75
                            [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) %][% END %]
76
                            [% IF ( loopro.branch ) %][% t('at') %] [% Branches.GetName( loopro.branch ) %][% END %]
76
						</td>
77
						</td>
77
					</tr>
78
					</tr>
78
				[% END %]
79
				[% END %]
79
				[% ELSE %]
80
				[% ELSE %]
80
					<tr><td colspan="4">No items for [% looptable.coltitle %]</td>
81
					<tr><td colspan="4">[% t('No items for') %] [% looptable.coltitle %]</td>
81
					</tr>
82
					</tr>
82
				[% END %]
83
				[% END %]
83
		</table>
84
		</table>
84
		[% END %]
85
		[% END %]
85
	[% END %]
86
	[% END %]
86
[% ELSE %]
87
[% ELSE %]
87
    <h1>Items with no checkouts</h1>
88
    <h1>[% t('Items with no checkouts') %]</h1>
88
	<form method="post" action="/cgi-bin/koha/reports/catalogue_out.pl">
89
	<form method="post" action="/cgi-bin/koha/reports/catalogue_out.pl">
89
	
90
	
90
	<fieldset class="rows">
91
	<fieldset class="rows">
91
		<ol>
92
		<ol>
92
			<li><label for="branch">Library: </label>
93
			<li><label for="branch">[% t('Library:') %] </label>
93
	<select name="Filter" id="branch">
94
	<select name="Filter" id="branch">
94
        <option value="">Any library</option>
95
        <option value="">[% t('Any library') %]</option>
95
        [% PROCESS options_for_libraries libraries => Branches.all() %]
96
        [% PROCESS options_for_libraries libraries => Branches.all() %]
96
    </select></li>
97
    </select></li>
97
      <li> 
98
      <li> 
98
        <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
99
        <label for="documenttype">[% t('Item type:') %] </label><select name="Filter" id="documenttype">
99
        <option value="">Any item type</option>
100
        <option value="">[% t('Any item type') %]</option>
100
    [% FOREACH itemtype IN itemtypes %]
101
    [% FOREACH itemtype IN itemtypes %]
101
        <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
102
        <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
102
     [% END %] 
103
     [% END %] 
Lines 106-131 Link Here
106
	</fieldset>
107
	</fieldset>
107
	
108
	
108
	<fieldset class="rows">
109
	<fieldset class="rows">
109
	<legend>Limits</legend>
110
	<legend>[% t('Limits') %]</legend>
110
		<ol>
111
		<ol>
111
        <li>
112
        <li>
112
            <label for="numberlimit">Limit to: </label>
113
            <label for="numberlimit">[% t('Limit to:') %] </label>
113
            <select name="Limit" id="numberlimit">
114
            <select name="Limit" id="numberlimit">
114
                <option value ="10">10</option>
115
                <option value="10">[% t('10') %]</option>
115
                <option value ="20">20</option>
116
                <option value="20">[% t('20') %]</option>
116
                <option value ="50">50</option>
117
                <option value="50">[% t('50') %]</option>
117
                <option value ="100">100</option>
118
                <option value="100">[% t('100') %]</option>
118
                <option value ="200">200</option>
119
                <option value="200">[% t('200') %]</option>
119
                <option value ="300">300</option>
120
                <option value="300">[% t('300') %]</option>
120
                <option value ="400">400</option>
121
                <option value="400">[% t('400') %]</option>
121
                <option value ="500">500</option>
122
                <option value="500">[% t('500') %]</option>
122
                <option value ="1000">1000</option>
123
                <option value="1000">[% t('1000') %]</option>
123
            </select>
124
            </select>
124
        </li>
125
        </li>
125
		<li><label for="criteria">By: </label><select name="Criteria" id="criteria">
126
		<li><label for="criteria">[% t('By:') %] </label><select name="Criteria" id="criteria">
126
						<option value ="" selected="selected">None</option>
127
						<option value="" selected="selected">[% t('None') %]</option>
127
						<option value ="homebranch">Library</option>
128
						<option value="homebranch">[% t('Library') %]</option>
128
                        <option value ="itype">Item type</option>
129
                        <option value="itype">[% t('Item type') %]</option>
129
					</select></li>
130
					</select></li>
130
		</ol>
131
		</ol>
131
	</fieldset>
132
	</fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-54 / +55 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
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>[% t('Koha › Reports') %] [% IF ( do_it ) %][% t('› Catalog statistics › Results') %][% ELSE %][% t('› Catalog statistics') %][% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]&rsaquo; <a href="/cgi-bin/koha/reports/catalogue_stats.pl">Catalog statistics</a> &rsaquo; Results[% ELSE %]&rsaquo; Catalog statistics[% END %]</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% IF ( do_it ) %]› <a href="/cgi-bin/koha/reports/catalogue_stats.pl">[% t('Catalog statistics') %]</a> [% t('› Results') %][% ELSE %][% t('› Catalog statistics') %][% END %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
   
16
   
Lines 19-27 Link Here
19
20
20
[% IF ( do_it ) %]
21
[% IF ( do_it ) %]
21
	[% FOREACH mainloo IN mainloop %]
22
	[% FOREACH mainloo IN mainloop %]
22
		<h1>Catalog statistics</h1>
23
		<h1>[% t('Catalog statistics') %]</h1>
23
		[% IF ( mainloo.loopfilter ) %]
24
		[% IF ( mainloo.loopfilter ) %]
24
            <p>Filtered on:</p>
25
            <p>[% t('Filtered on:') %]</p>
25
			[% FOREACH loopfilte IN mainloo.loopfilter %]
26
			[% FOREACH loopfilte IN mainloo.loopfilter %]
26
					<p>[% loopfilte.crit %] =[% loopfilte.filter %]</p>
27
					<p>[% loopfilte.crit %] =[% loopfilte.filter %]</p>
27
			[% END %]
28
			[% END %]
Lines 33-39 Link Here
33
				[% FOREACH loopco IN mainloo.loopcol %]
34
				[% FOREACH loopco IN mainloo.loopcol %]
34
					<th>[% loopco.coltitle %]</th>
35
					<th>[% loopco.coltitle %]</th>
35
				[% END %]
36
				[% END %]
36
				<th>TOTAL</th>
37
				<th>[% t('TOTAL') %]</th>
37
			</tr>
38
			</tr>
38
				[% FOREACH loopro IN mainloo.looprow %]
39
				[% FOREACH loopro IN mainloo.looprow %]
39
					<tr>
40
					<tr>
Lines 42-48 Link Here
42
						[% FOREACH loopcel IN loopro.loopcell %]
43
						[% FOREACH loopcel IN loopro.loopcell %]
43
							[% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
44
							[% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
44
								[% IF ( loopcel.value ) %][% loopcel.value %]
45
								[% IF ( loopcel.value ) %][% loopcel.value %]
45
								[% ELSE %]&nbsp;
46
								[% ELSE %] 
46
								[% END %]
47
								[% END %]
47
							</td>
48
							</td>
48
						[% END %]
49
						[% END %]
Lines 52-58 Link Here
52
					</tr>
53
					</tr>
53
				[% END %]
54
				[% END %]
54
				<tr>
55
				<tr>
55
					<th>TOTAL</th>
56
					<th>[% t('TOTAL') %]</th>
56
					[% FOREACH loopfoote IN mainloo.loopfooter %]
57
					[% FOREACH loopfoote IN mainloo.loopfooter %]
57
						<th>
58
						<th>
58
							[% loopfoote.totalcol %]
59
							[% loopfoote.totalcol %]
Lines 66-104 Link Here
66
67
67
	<form method="post" action="/cgi-bin/koha/reports/catalogue_stats.pl">
68
	<form method="post" action="/cgi-bin/koha/reports/catalogue_stats.pl">
68
	<fieldset class="rows">
69
	<fieldset class="rows">
69
	<legend>Catalog statistics</legend>
70
	<legend>[% t('Catalog statistics') %]</legend>
70
	<table>
71
	<table>
71
		<thead>
72
		<thead>
72
			<tr>
73
			<tr>
73
			<th>Title</th>
74
			<th>[% t('Title') %]</th>
74
			<th>Row</th>
75
			<th>[% t('Row') %]</th>
75
			<th>Column</th>
76
			<th>[% t('Column') %]</th>
76
			<th>Filter</th>
77
			<th>[% t('Filter') %]</th>
77
			</tr>
78
			</tr>
78
		</thead>
79
		</thead>
79
		<tbody>
80
		<tbody>
80
      <tr>
81
      <tr>
81
        <td>Koha full call number</td>
82
        <td>[% t('Koha full call number') %]</td>
82
        <td><input type="radio" name="Line" value="items.itemcallnumber" /></td>
83
        <td><input type="radio" name="Line" value="items.itemcallnumber" /></td>
83
        <td><input type="radio" name="Column" value="items.itemcallnumber" /></td>
84
        <td><input type="radio" name="Column" value="items.itemcallnumber" /></td>
84
        <td><label for="callnoFrom">From</label> <input type="text" name="Filter" id="callnoFrom" /> <label for="callnoTo">To</label> <input type="text" name="Filter" id="callnoTo" /></td>
85
        <td><label for="callnoFrom">[% t('From') %]</label> <input type="text" name="Filter" id="callnoFrom" /> <label for="callnoTo">[% t('To') %]</label> <input type="text" name="Filter" id="callnoTo" /></td>
85
      </tr>
86
      </tr>
86
     <tr>
87
     <tr>
87
        <td>&nbsp;</td>
88
        <td> </td>
88
        <td colspan="2"><select name="cotedigits" id="cotedigits">
89
        <td colspan="2"><select name="cotedigits" id="cotedigits">
89
          <option value=""> </option>
90
          <option value=""> </option>
90
          <option value ="1">1</option>
91
          <option value="1">[% t('1') %]</option>
91
          <option value ="2">2</option>
92
          <option value="2">[% t('2') %]</option>
92
          <option value ="3">3</option>
93
          <option value="3">[% t('3') %]</option>
93
          <option value ="4">4</option>
94
          <option value="4">[% t('4') %]</option>
94
          <option value ="5">5</option>
95
          <option value="5">[% t('5') %]</option>
95
          </select>
96
          </select>
96
          <label for="cotedigits">characters</label>
97
          <label for="cotedigits">[% t('characters') %]</label>
97
        </td>
98
        </td>
98
        <td>&nbsp;</td>
99
        <td> </td>
99
      </tr>
100
      </tr>
100
			 <tr>
101
			 <tr>
101
                <td>Item type</td>
102
                <td>[% t('Item type') %]</td>
102
				<td><input type="radio" name="Line" value="[% item_itype %]" /></td>
103
				<td><input type="radio" name="Line" value="[% item_itype %]" /></td>
103
				<td><input type="radio" name="Column" value="[% item_itype %]" /></td>
104
				<td><input type="radio" name="Column" value="[% item_itype %]" /></td>
104
				<td><select name="Filter" id="[% item_itype %]">
105
				<td><select name="Filter" id="[% item_itype %]">
Lines 110-128 Link Here
110
				</td>
111
				</td>
111
			</tr>
112
			</tr>
112
			 <tr>
113
			 <tr>
113
				<td>Publisher</td>
114
				<td>[% t('Publisher') %]</td>
114
				<td><input type="radio" name="Line" value="publishercode" /></td>
115
				<td><input type="radio" name="Line" value="publishercode" /></td>
115
				<td><input type="radio" name="Column" value="publishercode" /></td>
116
				<td><input type="radio" name="Column" value="publishercode" /></td>
116
				<td><input type="text" name="Filter" /></td>
117
				<td><input type="text" name="Filter" /></td>
117
			</tr>
118
			</tr>
118
			<tr>
119
			<tr>
119
                <td>Publication year</td>
120
                <td>[% t('Publication year') %]</td>
120
				<td><input type="radio" name="Line" value="publicationyear" /></td>
121
				<td><input type="radio" name="Line" value="publicationyear" /></td>
121
				<td><input type="radio" name="Column" value="publicationyear" /></td>
122
				<td><input type="radio" name="Column" value="publicationyear" /></td>
122
                <td><label for="pubyearFrom">From</label> <input type="text" name="Filter" id="pubYearFrom" /> <label for="pubyearTo">To</label> <input type="text" name="Filter" id="pubyearTo" /></td>
123
                <td><label for="pubyearFrom">[% t('From') %]</label> <input type="text" name="Filter" id="pubYearFrom" /> <label for="pubyearTo">[% t('To') %]</label> <input type="text" name="Filter" id="pubyearTo" /></td>
123
			</tr>
124
			</tr>
124
			<tr>
125
			<tr>
125
                <td>Home library</td>
126
                <td>[% t('Home library') %]</td>
126
				<td><input type="radio" name="Line" value="items.homebranch" /></td>
127
				<td><input type="radio" name="Line" value="items.homebranch" /></td>
127
				<td><input type="radio" name="Column" value="items.homebranch" /></td>
128
				<td><input type="radio" name="Column" value="items.homebranch" /></td>
128
				<td><select name="Filter" id="branch">
129
				<td><select name="Filter" id="branch">
Lines 132-138 Link Here
132
				</td>
133
				</td>
133
			</tr>
134
			</tr>
134
			<tr>
135
			<tr>
135
                <td>Shelving location</td>
136
                <td>[% t('Shelving location') %]</td>
136
				<td><input type="radio" name="Line" value="items.location" /></td>
137
				<td><input type="radio" name="Line" value="items.location" /></td>
137
				<td><input type="radio" name="Column" value="items.location" /></td>
138
				<td><input type="radio" name="Column" value="items.location" /></td>
138
				<td><select name="Filter" id="location">
139
				<td><select name="Filter" id="location">
Lines 144-151 Link Here
144
				</td>
145
				</td>
145
			</tr>
146
			</tr>
146
			<tr>
147
			<tr>
147
				<td>Collection</td>
148
				<td>[% t('Collection') %]</td>
148
				<td><input type="radio" name="Line"   value="items.ccode" /></td>
149
				<td><input type="radio" name="Line" value="items.ccode" /></td>
149
				<td><input type="radio" name="Column" value="items.ccode" /></td>
150
				<td><input type="radio" name="Column" value="items.ccode" /></td>
150
				<td><select name="Filter" id="ccode">
151
				<td><select name="Filter" id="ccode">
151
					<option value=""> </option>
152
					<option value=""> </option>
Lines 158-169 Link Here
158
            [% IF (notforloan) %]
159
            [% IF (notforloan) %]
159
                <tr>
160
                <tr>
160
                    <td>[% notforloan_label %]</td>
161
                    <td>[% notforloan_label %]</td>
161
                    <td><input type="radio" name="Line"   value="items.notforloan" /></td>
162
                    <td><input type="radio" name="Line" value="items.notforloan" /></td>
162
                    <td><input type="radio" name="Column" value="items.notforloan" /></td>
163
                    <td><input type="radio" name="Column" value="items.notforloan" /></td>
163
                    <td>
164
                    <td>
164
                        [% IF (notforloan_avlist) %]
165
                        [% IF (notforloan_avlist) %]
165
                            <select name="Filter" id="notforloan">
166
                            <select name="Filter" id="notforloan">
166
                                <option value="">&nbsp;</option>
167
                                <option value=""> </option>
167
                                [% FOREACH av IN notforloan_avlist %]
168
                                [% FOREACH av IN notforloan_avlist %]
168
                                    <option value="[% av.authorised_value %]">
169
                                    <option value="[% av.authorised_value %]">
169
                                        [% av.lib %]
170
                                        [% av.lib %]
Lines 183-194 Link Here
183
            [% IF (materials) %]
184
            [% IF (materials) %]
184
                <tr>
185
                <tr>
185
                    <td>[% materials_label %]</td>
186
                    <td>[% materials_label %]</td>
186
                    <td><input type="radio" name="Line"   value="items.materials" /></td>
187
                    <td><input type="radio" name="Line" value="items.materials" /></td>
187
                    <td><input type="radio" name="Column" value="items.materials" /></td>
188
                    <td><input type="radio" name="Column" value="items.materials" /></td>
188
                    <td>
189
                    <td>
189
                        [% IF (materials_avlist) %]
190
                        [% IF (materials_avlist) %]
190
                            <select name="Filter" id="materials">
191
                            <select name="Filter" id="materials">
191
                                <option value="">&nbsp;</option>
192
                                <option value=""> </option>
192
                                [% FOREACH av IN materials_avlist %]
193
                                [% FOREACH av IN materials_avlist %]
193
                                    <option value="[% av.authorised_value %]">
194
                                    <option value="[% av.authorised_value %]">
194
                                        [% av.lib %]
195
                                        [% av.lib %]
Lines 206-270 Link Here
206
                </tr>
207
                </tr>
207
            [% END %]
208
            [% END %]
208
            <tr>
209
            <tr>
209
                <td colspan="3">Filter barcode</td>
210
                <td colspan="3">[% t('Filter barcode') %]</td>
210
                <td>
211
                <td>
211
                    <select name="Filter" id="like">
212
                    <select name="Filter" id="like">
212
                        <option value="1">like</option>
213
                        <option value="1">[% t('like') %]</option>
213
                        <option value="0">not like</option>
214
                        <option value="0">[% t('not like') %]</option>
214
                    </select>
215
                    </select>
215
                    <input type="text" name="Filter" id="barcode" />
216
                    <input type="text" name="Filter" id="barcode" />
216
                    (use * to do a fuzzy search)
217
                    [% t('(use * to do a fuzzy search)') %]
217
                </td>
218
                </td>
218
            </tr>
219
            </tr>
219
            <tr>
220
            <tr>
220
                <td>Date acquired (item)</td>
221
                <td>[% t('Date acquired (item)') %]</td>
221
                <td><input type="radio" name="Line" value="items.dateaccessioned" /></td>
222
                <td><input type="radio" name="Line" value="items.dateaccessioned" /></td>
222
                <td><input type="radio" name="Column" value="items.dateaccessioned" /></td>
223
                <td><input type="radio" name="Column" value="items.dateaccessioned" /></td>
223
                <td>
224
                <td>
224
                    <label for="acqdateFrom">From</label>
225
                    <label for="acqdateFrom">[% t('From') %]</label>
225
                    <input type="text" name="Filter" id="acqdateFrom" class="datepicker" />
226
                    <input type="text" name="Filter" id="acqdateFrom" class="datepicker" />
226
                    <label for="acqdateTo">To</label>
227
                    <label for="acqdateTo">[% t('To') %]</label>
227
                    <input type="text" name="Filter" id="acqdateTo" class="datepicker" />
228
                    <input type="text" name="Filter" id="acqdateTo" class="datepicker" />
228
                </td>
229
                </td>
229
            </tr>
230
            </tr>
230
            <tr id="removeddatetr">
231
            <tr id="removeddatetr">
231
                <td>Date deleted (item)</td>
232
                <td>[% t('Date deleted (item)') %]</td>
232
                <td><input type="radio" name="Line" value="deleteditems.timestamp" /></td>
233
                <td><input type="radio" name="Line" value="deleteditems.timestamp" /></td>
233
                <td><input type="radio" name="Column" value="deleteditems.timestamp" /></td>
234
                <td><input type="radio" name="Column" value="deleteditems.timestamp" /></td>
234
                <td>
235
                <td>
235
                    <label for="deldateFrom">From</label>
236
                    <label for="deldateFrom">[% t('From') %]</label>
236
                    <input type="text" name="Filter" id="deldateFrom" class="datepicker" />
237
                    <input type="text" name="Filter" id="deldateFrom" class="datepicker" />
237
                    <label for="deldateTo">To</label>
238
                    <label for="deldateTo">[% t('To') %]</label>
238
                    <input type="text" name="Filter" id="deldateTo" class="datepicker"/>
239
                    <input type="text" name="Filter" id="deldateTo" class="datepicker" />
239
                </td>
240
                </td>
240
            </tr>
241
            </tr>
241
		</tbody>
242
		</tbody>
242
	</table><br /></fieldset>
243
	</table><br /></fieldset>
243
244
244
    <fieldset class="rows">
245
    <fieldset class="rows">
245
        <legend>Cell value</legend>
246
        <legend>[% t('Cell value') %]</legend>
246
        <ol>
247
        <ol>
247
            <li>
248
            <li>
248
                <label for="cellvalue_items">Count total items</label>
249
                <label for="cellvalue_items">[% t('Count total items') %]</label>
249
                <input type="radio" name="Cellvalue" value="items" id="cellvalue_items" checked="checked" />
250
                <input type="radio" name="Cellvalue" value="items" id="cellvalue_items" checked="checked" />
250
            </li>
251
            </li>
251
            <li>
252
            <li>
252
                <label for="cellvalue_biblios">Count unique biblios</label>
253
                <label for="cellvalue_biblios">[% t('Count unique biblios') %]</label>
253
                <input type="radio" name="Cellvalue" value="biblios" id="cellvalue_biblios" />
254
                <input type="radio" name="Cellvalue" value="biblios" id="cellvalue_biblios" />
254
            </li>
255
            </li>
255
            <li>
256
            <li>
256
                <label for="cellvalue_deleteditems">Count deleted items</label>
257
                <label for="cellvalue_deleteditems">[% t('Count deleted items') %]</label>
257
                <input type="radio" name="Cellvalue" value="deleteditems" id="cellvalue_deleteditems" />
258
                <input type="radio" name="Cellvalue" value="deleteditems" id="cellvalue_deleteditems" />
258
            </li>
259
            </li>
259
        </ol>
260
        </ol>
260
    </fieldset>
261
    </fieldset>
261
	
262
	
262
	<fieldset class="rows">
263
	<fieldset class="rows">
263
	<legend>Output</legend>
264
	<legend>[% t('Output') %]</legend>
264
	<ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
265
	<ol><li><label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
265
		<li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
266
		<li><label for="outputfile">[% t('To a file:') %] </label><input type="radio" name="output" value="file" id="outputfile" />
266
			<label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
267
			<label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
267
			<label class="inline" for="MIME">Into an application: </label>
268
			<label class="inline" for="MIME">[% t('Into an application:') %] </label>
268
			<select name="MIME" id="MIME">
269
			<select name="MIME" id="MIME">
269
			[% FOREACH CGIextChoic IN CGIextChoice %]
270
			[% FOREACH CGIextChoic IN CGIextChoice %]
270
			<option value="[% CGIextChoic.type %]">[% CGIextChoic.type %]</option>
271
			<option value="[% CGIextChoic.type %]">[% CGIextChoic.type %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/convert_report.tt (-5 / +6 lines)
Lines 1-23 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Reports &rsaquo; Convert report</title>
3
    <title>[% t('Koha › Reports › Convert report') %]</title>
3
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
    </head>
5
    </head>
5
    <body id="rep_report_convert" class="rep">
6
    <body id="rep_report_convert" class="rep">
6
        <div>
7
        <div>
7
            [% IF msg == 'no_report' %]
8
            [% IF msg == 'no_report' %]
8
                There is no valid report for this id.
9
                [% t('There is no valid report for this id.') %]
9
            [% ELSIF msg == 'can_be_updated' %]
10
            [% ELSIF msg == 'can_be_updated' %]
10
                <div id="col1">
11
                <div id="col1">
11
                    <h3>Existing SQL</h3>
12
                    <h3>[% t('Existing SQL') %]</h3>
12
                    <span class="show_sql">[% current_sql | html_entity %]</span>
13
                    <span class="show_sql">[% current_sql | html_entity %]</span>
13
                </div>
14
                </div>
14
15
15
                <div id="col2">
16
                <div id="col2">
16
                    <h3>Updated SQL</h3>
17
                    <h3>[% t('Updated SQL') %]</h3>
17
                    <span class="show_sql">[% updated_sql | html_entity %]</span>
18
                    <span class="show_sql">[% updated_sql | html_entity %]</span>
18
                </div>
19
                </div>
19
            [% ELSE %]
20
            [% ELSE %]
20
                Something went wrong.
21
                [% t('Something went wrong.') %]
21
            [% END %]
22
            [% END %]
22
        </div>
23
        </div>
23
    </body>
24
    </body>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/csv/cash_register_stats.tt (-1 / +2 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[%- USE ItemTypes -%]
2
[%- USE ItemTypes -%]
2
[%- INCLUDE csv_headers/reports/cash_register_stats.tt -%]
3
[%- INCLUDE csv_headers/reports/cash_register_stats.tt -%]
3
[%- INCLUDE empty_line.inc -%]
4
[%- INCLUDE empty_line.inc -%]
Lines 5-9 Link Here
5
    [%- FOREACH field IN row; field IF !loop.last; ItemTypes.GetDescription(field) IF loop.last; sep IF !loop.last; END -%]
6
    [%- FOREACH field IN row; field IF !loop.last; ItemTypes.GetDescription(field) IF loop.last; sep IF !loop.last; END -%]
6
    [%- INCLUDE empty_line.inc -%]
7
    [%- INCLUDE empty_line.inc -%]
7
[%- END -%]
8
[%- END -%]
8
TOTAL[%- INCLUDE empty_line.inc -%]
9
[% t('TOTAL') %][%- INCLUDE empty_line.inc -%]
9
[%- FOREACH field IN total; field; sep IF !loop.last; END -%]
10
[%- FOREACH field IN total; field; sep IF !loop.last; END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/csv/orders_by_budget.tt (-1 / +2 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[%- INCLUDE csv_headers/reports/orders_by_budget.tt -%]
2
[%- INCLUDE csv_headers/reports/orders_by_budget.tt -%]
2
[%- INCLUDE empty_line.inc -%]
3
[%- INCLUDE empty_line.inc -%]
3
[%- FOREACH row IN rows -%]
4
[%- FOREACH row IN rows -%]
4
    [%- FOREACH field IN row; field; sep IF !loop.last; END -%]
5
    [%- FOREACH field IN row; field; sep IF !loop.last; END -%]
5
    [%- INCLUDE empty_line.inc -%]
6
    [%- INCLUDE empty_line.inc -%]
6
[%- END -%]
7
[%- END -%]
7
TOTAL[%- INCLUDE empty_line.inc -%]
8
[% t('TOTAL') %][%- INCLUDE empty_line.inc -%]
8
[%- FOREACH field IN totalrow; field; sep IF !loop.last; END -%]
9
[%- FOREACH field IN totalrow; field; sep IF !loop.last; END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt (-52 / +53 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Reports &rsaquo; Guided reports &rsaquo; Dictionary</title>
4
<title>[% t('Koha › Reports › Guided reports › Dictionary') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
<style type="text/css">fieldset.rows table { clear: none; margin: 0;}</style>
6
<style type="text/css">fieldset.rows table { clear: none; margin: 0;}</style>
6
</head>
7
</head>
Lines 11-31 Link Here
11
12
12
[%- BLOCK area_name -%]
13
[%- BLOCK area_name -%]
13
    [%- SWITCH area -%]
14
    [%- SWITCH area -%]
14
        [%- CASE 'CIRC' -%]Circulation
15
        [%- CASE 'CIRC' -%][% t('Circulation') %]
15
        [%- CASE 'CAT'  -%]Catalog
16
        [%- CASE 'CAT'  -%][% t('Catalog') %]
16
        [%- CASE 'PAT'  -%]Patrons
17
        [%- CASE 'PAT'  -%][% t('Patrons') %]
17
        [%- CASE 'ACQ'  -%]Acquisitions
18
        [%- CASE 'ACQ'  -%][% t('Acquisitions') %]
18
        [%- CASE 'ACC'  -%]Accounts
19
        [%- CASE 'ACC'  -%][% t('Accounts') %]
19
    [%- END -%]
20
    [%- END -%]
20
[%- END -%]
21
[%- END -%]
21
22
22
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl">Guided reports wizard</a>
23
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> › <a href="/cgi-bin/koha/reports/guided_reports.pl">[% t('Guided reports wizard') %]</a>
23
[% IF ( new_dictionary ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Name the new definition</strong>
24
[% IF ( new_dictionary ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">[% t('Dictionary') %]</a> › <strong>[% t('Name the new definition') %]</strong>
24
[% ELSIF ( step_2 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 2: Choose the area </strong> 
25
[% ELSIF ( step_2 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">[% t('Dictionary') %]</a> › <strong>[% t('Step 2: Choose the area') %] </strong> 
25
[% ELSIF ( step_3 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 3: Choose a column </strong>
26
[% ELSIF ( step_3 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">[% t('Dictionary') %]</a> › <strong>[% t('Step 3: Choose a column') %] </strong>
26
[% ELSIF ( step_4 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 4: Specify a value </strong> 
27
[% ELSIF ( step_4 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">[% t('Dictionary') %]</a> › <strong>[% t('Step 4: Specify a value') %] </strong> 
27
[% ELSIF ( step_5 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 5: Confirm definition</strong> 
28
[% ELSIF ( step_5 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">[% t('Dictionary') %]</a> › <strong>[% t('Step 5: Confirm definition') %]</strong> 
28
[% ELSE %] &rsaquo; <strong> Dictionary </strong>[% END %]</div>
29
[% ELSE %] › <strong> [% t('Dictionary') %] </strong>[% END %]</div>
29
30
30
<div id="doc3" class="yui-t2">
31
<div id="doc3" class="yui-t2">
31
32
Lines 34-54 Link Here
34
<div class="yui-b">
35
<div class="yui-b">
35
[% IF ( start_dictionary ) %]
36
[% IF ( start_dictionary ) %]
36
    <div id="toolbar">
37
    <div id="toolbar">
37
        <a id="newdictionary" class="btn btn-default btn-sm" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition"><i class="fa fa-plus"></i> New definition</a>
38
        <a id="newdictionary" class="btn btn-default btn-sm" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition"><i class="fa fa-plus"></i> [% t('New definition') %]</a>
38
    </div>
39
    </div>
39
[% END %]
40
[% END %]
40
<h1>Dictionary</h1>
41
<h1>[% t('Dictionary') %]</h1>
41
[% IF ( start_dictionary ) %]
42
[% IF ( start_dictionary ) %]
42
	<p>Use the dictionary to define custom criteria for reporting.</p>
43
	<p>[% t('Use the dictionary to define custom criteria for reporting.') %]</p>
43
44
44
		[% IF ( definitions ) %]
45
		[% IF ( definitions ) %]
45
        <h2>Current terms</h2>
46
        <h2>[% t('Current terms') %]</h2>
46
		<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
47
		<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
47
        <input type="hidden" name="phase" value="View Dictionary" />
48
        <input type="hidden" name="phase" value="View Dictionary" />
48
  [% IF ( areas ) %]
49
  [% IF ( areas ) %]
49
        Filter by area
50
        [% t('Filter by area') %]
50
        <select name="area">
51
        <select name="area">
51
          <option value="">All</option>
52
          <option value="">[% t('All') %]</option>
52
        [% FOREACH area IN areas %]
53
        [% FOREACH area IN areas %]
53
          [%- IF ( area.selected ) -%]
54
          [%- IF ( area.selected ) -%]
54
          <option value="[% area.id %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option>
55
          <option value="[% area.id %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option>
Lines 63-73 Link Here
63
      <br />
64
      <br />
64
        <table>
65
        <table>
65
            <tr>
66
            <tr>
66
                <th>Name</th>
67
                <th>[% t('Name') %]</th>
67
                <th>Description</th>
68
                <th>[% t('Description') %]</th>
68
                <th>Area</th>
69
                <th>[% t('Area') %]</th>
69
                <th>Definition</th>
70
                <th>[% t('Definition') %]</th>
70
                <th>Action</th>
71
                <th>[% t('Action') %]</th>
71
            </tr>
72
            </tr>
72
            [% FOREACH definition IN definitions %]
73
            [% FOREACH definition IN definitions %]
73
            <tr>
74
            <tr>
Lines 78-103 Link Here
78
                <td class="actions"><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
79
                <td class="actions"><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
79
                    <input type="hidden" name="id" value="[% definition.id %]" />
80
                    <input type="hidden" name="id" value="[% definition.id %]" />
80
                    <input type="hidden" name="phase" value="Delete Definition" />
81
                    <input type="hidden" name="phase" value="Delete Definition" />
81
                    <button type="submit" name="submit" class="btn btn-default btn-xs" id="delete"><i class="fa fa-trash"></i> Delete</button>
82
                    <button type="submit" name="submit" class="btn btn-default btn-xs" id="delete"><i class="fa fa-trash"></i> [% t('Delete') %]</button>
82
                </form></td>
83
                </form></td>
83
            </tr>
84
            </tr>
84
            [% END %]
85
            [% END %]
85
        </table>
86
        </table>
86
                [% ELSE %]
87
                [% ELSE %]
87
                <div class="dialog message">There are no saved definitions. <a id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">Add a definition to the dictionary.</a></div>
88
                <div class="dialog message">[% t('There are no saved definitions.') %] <a id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">[% t('Add a definition to the dictionary.') %]</a></div>
88
		[% END %]
89
		[% END %]
89
[% END %]
90
[% END %]
90
91
91
[% IF ( new_dictionary ) %]
92
[% IF ( new_dictionary ) %]
92
<h3>Add new definition</h3>
93
<h3>[% t('Add new definition') %]</h3>
93
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
94
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
94
<fieldset class="rows"><legend>Step 1 of 5: Name the new definition</legend><ol>
95
<fieldset class="rows"><legend>[% t('Step 1 of 5: Name the new definition') %]</legend><ol>
95
<li>
96
<li>
96
<label for="definition_name">Definition name:</label>
97
<label for="definition_name">[% t('Definition name:') %]</label>
97
<input type="text" id="definition_name" name="definition_name" />
98
<input type="text" id="definition_name" name="definition_name" />
98
</li>
99
</li>
99
<li>
100
<li>
100
<label for="definition_description">Definition description:</label>
101
<label for="definition_description">[% t('Definition description:') %]</label>
101
<textarea name="definition_description" id="definition_description" rows="3" cols="20"></textarea>
102
<textarea name="definition_description" id="definition_description" rows="3" cols="20"></textarea>
102
</li>
103
</li>
103
</ol></fieldset>
104
</ol></fieldset>
Lines 108-123 Link Here
108
[% END %]
109
[% END %]
109
110
110
[%- IF ( step_2 ) -%]
111
[%- IF ( step_2 ) -%]
111
<h3>Add new definition</h3>
112
<h3>[% t('Add new definition') %]</h3>
112
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
113
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
113
  <fieldset class="rows">
114
  <fieldset class="rows">
114
    <legend>Step 2 of 5: Choose the area</legend>
115
    <legend>[% t('Step 2 of 5: Choose the area') %]</legend>
115
    <ol>
116
    <ol>
116
      <li>
117
      <li>
117
        <input type="hidden" name="phase" value="New Term step 3" />
118
        <input type="hidden" name="phase" value="New Term step 3" />
118
        <input type="hidden" name="definition_name" value="[% definition_name | html %]" />
119
        <input type="hidden" name="definition_name" value="[% definition_name | html %]" />
119
        <input type="hidden" name="definition_description" value="[% definition_description | html %]" />
120
        <input type="hidden" name="definition_description" value="[% definition_description | html %]" />
120
        <label for="area">Select table:</label><select name="area" id="area">
121
        <label for="area">[% t('Select table:') %]</label><select name="area" id="area">
121
      [%- FOREACH area IN areas -%]
122
      [%- FOREACH area IN areas -%]
122
        <option value="[%- area.id -%]">[%- PROCESS area_name area=area.id -%]</option>
123
        <option value="[%- area.id -%]">[%- PROCESS area_name area=area.id -%]</option>
123
      [%- END -%]
124
      [%- END -%]
Lines 130-139 Link Here
130
[%- END -%]
131
[%- END -%]
131
132
132
[% IF ( step_3 ) %]
133
[% IF ( step_3 ) %]
133
<h3>Add new definition</h3>
134
<h3>[% t('Add new definition') %]</h3>
134
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">      
135
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">      
135
<fieldset class="rows">
136
<fieldset class="rows">
136
<legend>Step 3 of 5: Choose a column</legend>
137
<legend>[% t('Step 3 of 5: Choose a column') %]</legend>
137
<input type="hidden" name="area" value="[% area %]" />
138
<input type="hidden" name="area" value="[% area %]" />
138
<input type="hidden" name="definition_name" value="[% definition_name | html %]" />
139
<input type="hidden" name="definition_name" value="[% definition_name | html %]" />
139
<input type="hidden" name="definition_description" value="[% definition_description | html %]" />
140
<input type="hidden" name="definition_description" value="[% definition_description | html %]" />
Lines 166-175 Link Here
166
[% END %]
167
[% END %]
167
168
168
[% IF ( step_4 ) %]
169
[% IF ( step_4 ) %]
169
<h3>Add new definition</h3>
170
<h3>[% t('Add new definition') %]</h3>
170
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
171
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
171
<fieldset class="rows">
172
<fieldset class="rows">
172
<legend>Step 4 of 5: Specify a value</legend>
173
<legend>[% t('Step 4 of 5: Specify a value') %]</legend>
173
<input type="hidden" name="area" value="[% area %]" />
174
<input type="hidden" name="area" value="[% area %]" />
174
<input type="hidden" name="definition_name" value="[% definition_name | html %]" />
175
<input type="hidden" name="definition_name" value="[% definition_name | html %]" />
175
<input type="hidden" name="definition_description" value="[% definition_description | html %]" />
176
<input type="hidden" name="definition_description" value="[% definition_description | html %]" />
Lines 177-185 Link Here
177
178
178
[% FOREACH column IN columns %]
179
[% FOREACH column IN columns %]
179
<input type="hidden" name="criteria_column" value="[% column.name %]" />
180
<input type="hidden" name="criteria_column" value="[% column.name %]" />
180
<ol><li><span class="label">Column: </span> [% column.name %]</li>
181
<ol><li><span class="label">[% t('Column:') %] </span> [% column.name %]</li>
181
[% IF ( column.distinct ) %]
182
[% IF ( column.distinct ) %]
182
    <li><label for="[% column.name %]_value">Choose: </label> <select id="[% column.name %]_value" name="[% column.name %]_value">
183
    <li><label for="[% column.name %]_value">[% t('Choose:') %] </label> <select id="[% column.name %]_value" name="[% column.name %]_value">
183
        [% FOREACH value IN column.values %]
184
        [% FOREACH value IN column.values %]
184
            <option value="[% value.availablevalues %]">[% value.availablevalues %]</option>
185
            <option value="[% value.availablevalues %]">[% value.availablevalues %]</option>
185
        [% END %]
186
        [% END %]
Lines 187-208 Link Here
187
[% END %]
188
[% END %]
188
[% IF ( column.date ) %]
189
[% IF ( column.date ) %]
189
    <li class="radio">
190
    <li class="radio">
190
        <label for="all_dates">All dates</label>
191
        <label for="all_dates">[% t('All dates') %]</label>
191
        <input type="radio" id="all_dates" name="[% column.name %]_date_type_value" value="all" checked="checked" />
192
        <input type="radio" id="all_dates" name="[% column.name %]_date_type_value" value="all" checked="checked" />
192
        <label for="date_range">Date range</label>
193
        <label for="date_range">[% t('Date range') %]</label>
193
        <input type="radio" id="date_range" name="[% column.name %]_date_type_value" value="range" />
194
        <input type="radio" id="date_range" name="[% column.name %]_date_type_value" value="range" />
194
    </li>
195
    </li>
195
    <li class="radio">
196
    <li class="radio">
196
        Start of date range
197
        [% t('Start of date range') %]
197
        <input type="text" size="10" id="from" name="[% column.name %]_start_value" value="" class="datepickerfrom" />
198
        <input type="text" size="10" id="from" name="[% column.name %]_start_value" value="" class="datepickerfrom" />
198
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
199
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
199
        End of date range
200
        [% t('End of date range') %]
200
        <input type="text" size="10" id="to" name="[% column.name %]_end_value" value="" class="datepickerto" />
201
        <input type="text" size="10" id="to" name="[% column.name %]_end_value" value="" class="datepickerto" />
201
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
202
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
202
    </li>
203
    </li>
203
[% END %]
204
[% END %]
204
[% IF ( column.text ) %]
205
[% IF ( column.text ) %]
205
	<li><label for="[% column.name %]_value">Search string matches: </label> <input type="text" size="13" name="[% column.name %]_value" /></li>
206
	<li><label for="[% column.name %]_value">[% t('Search string matches:') %] </label> <input type="text" size="13" name="[% column.name %]_value" /></li>
206
[% END %]
207
[% END %]
207
208
208
[% END %]
209
[% END %]
Lines 222-247 Link Here
222
<input type="hidden" name="definition_description" value="[% definition_description | html %]" />
223
<input type="hidden" name="definition_description" value="[% definition_description | html %]" />
223
<input type="hidden" name="columnstring" value="[% columnstring %]" />
224
<input type="hidden" name="columnstring" value="[% columnstring %]" />
224
225
225
<h3>Add new definition</h3>
226
<h3>[% t('Add new definition') %]</h3>
226
227
227
<fieldset class="rows">
228
<fieldset class="rows">
228
  <legend>Step 5 of 5: Confirm details</legend>
229
  <legend>[% t('Step 5 of 5: Confirm details') %]</legend>
229
  <ol>
230
  <ol>
230
    <li>
231
    <li>
231
      <span class="label">Name:</span>[%- definition_name | html -%]
232
      <span class="label">[% t('Name:') %]</span>[%- definition_name | html -%]
232
    </li>
233
    </li>
233
    <li>
234
    <li>
234
      <span class="label">Description:</span>[%- definition_description | html -%]
235
      <span class="label">[% t('Description:') %]</span>[%- definition_description | html -%]
235
    </li>
236
    </li>
236
    <li>
237
    <li>
237
      <span class="label">Area:</span>[%- PROCESS area_name area=area -%]
238
      <span class="label">[% t('Area:') %]</span>[%- PROCESS area_name area=area -%]
238
    </li>
239
    </li>
239
    <li>
240
    <li>
240
      <span class="label">Data:</span>
241
      <span class="label">[% t('Data:') %]</span>
241
      <table>
242
      <table>
242
        <tr>
243
        <tr>
243
          <th>Columns</th>
244
          <th>[% t('Columns') %]</th>
244
          <th>Values</th>
245
          <th>[% t('Values') %]</th>
245
        </tr>
246
        </tr>
246
      [%- FOREACH criteria_loo IN criteria_loop -%]
247
      [%- FOREACH criteria_loo IN criteria_loop -%]
247
        <tr>
248
        <tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-246 / +240 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Koha %]
4
[% USE Koha %]
Lines 5-33 Link Here
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[%- BLOCK area_name -%]
7
[%- BLOCK area_name -%]
7
    [%- SWITCH area -%]
8
    [%- SWITCH area -%]
8
        [%- CASE 'CIRC' -%]Circulation
9
        [%- CASE 'CIRC' -%][% t('Circulation') %]
9
        [%- CASE 'CAT'  -%]Catalog
10
        [%- CASE 'CAT'  -%][% t('Catalog') %]
10
        [%- CASE 'PAT'  -%]Patrons
11
        [%- CASE 'PAT'  -%][% t('Patrons') %]
11
        [%- CASE 'ACQ'  -%]Acquisitions
12
        [%- CASE 'ACQ'  -%][% t('Acquisitions') %]
12
        [%- CASE 'ACC'  -%]Accounts
13
        [%- CASE 'ACC'  -%][% t('Accounts') %]
13
        [%- CASE 'SER'  -%]Serials
14
        [%- CASE 'SER'  -%][% t('Serials') %]
14
    [%- END -%]
15
    [%- END -%]
15
[%- END -%]
16
[%- END -%]
16
17
17
[% INCLUDE 'doc-head-open.inc' %]
18
[% INCLUDE 'doc-head-open.inc' %]
18
19
19
<title>Koha &rsaquo; Reports &rsaquo; Guided reports wizard [%- IF ( saved1 ) -%]&rsaquo; Saved reports
20
<title>[% t('Koha › Reports › Guided reports wizard') %] [%- IF ( saved1 ) -%][% t('› Saved reports') %]
20
[%- ELSIF ( create ) -%]&rsaquo; Create from SQL
21
[%- ELSIF ( create ) -%][% t('› Create from SQL') %]
21
[%- ELSIF ( showsql ) -%]&rsaquo; Saved reports &rsaquo; SQL view
22
[%- ELSIF ( showsql ) -%][% t('› Saved reports › SQL view') %]
22
[%- ELSIF ( execute ) -%]&rsaquo; Saved reports &rsaquo; [% name %] Report
23
[%- ELSIF ( execute ) -%][% t('› Saved reports ›') %] [% name %] [% t('Report') %]
23
[%- ELSIF ( editsql ) -%]&rsaquo; Saved reports &rsaquo; Edit SQL report
24
[%- ELSIF ( editsql ) -%][% t('› Saved reports › Edit SQL report') %]
24
[%- END -%]
25
[%- END -%]
25
[%- IF ( build1 ) -%]&rsaquo; Build a report, step 1 of 6: Choose a module
26
[%- IF ( build1 ) -%][% t('› Build a report, step 1 of 6: Choose a module') %]
26
[%- ELSIF ( build2 ) -%]&rsaquo; Build a report, step 2 of 6: Pick a report type
27
[%- ELSIF ( build2 ) -%][% t('› Build a report, step 2 of 6: Pick a report type') %]
27
[%- ELSIF ( build3 ) -%]&rsaquo; Build a report, step 3 of 6: Select columns for display
28
[%- ELSIF ( build3 ) -%][% t('› Build a report, step 3 of 6: Select columns for display') %]
28
[%- ELSIF ( build4 ) -%]&rsaquo; Build a report, step 4 of 6: Select criteria to limit on
29
[%- ELSIF ( build4 ) -%][% t('› Build a report, step 4 of 6: Select criteria to limit on') %]
29
[%- ELSIF ( build5 ) -%]&rsaquo; Build a report, step 5 of 6: Pick which columns to total
30
[%- ELSIF ( build5 ) -%][% t('› Build a report, step 5 of 6: Pick which columns to total') %]
30
[%- ELSIF ( build6 ) -%]&rsaquo; Build a report, step 6 of 6: Select how you want the report ordered
31
[%- ELSIF ( build6 ) -%][% t('› Build a report, step 6 of 6: Select how you want the report ordered') %]
31
[%- END -%]</title>
32
[%- END -%]</title>
32
33
33
[% INCLUDE 'doc-head-close.inc' %]
34
[% INCLUDE 'doc-head-close.inc' %]
Lines 59-80 Link Here
59
[% INCLUDE 'header.inc' %]
60
[% INCLUDE 'header.inc' %]
60
[% INCLUDE 'circ-search.inc' %]
61
[% INCLUDE 'circ-search.inc' %]
61
62
62
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
63
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
63
&rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
64
› <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a>
64
&rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl">Guided reports wizard</a>
65
› <a href="/cgi-bin/koha/reports/guided_reports.pl">[% t('Guided reports wizard') %]</a>
65
66
66
[% IF ( saved1 ) %]&rsaquo; Saved reports
67
[% IF ( saved1 ) %][% t('› Saved reports') %]
67
[% ELSIF ( create ) %]&rsaquo; Create from SQL
68
[% ELSIF ( create ) %][% t('› Create from SQL') %]
68
[% ELSIF ( showsql ) %]&rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> &rsaquo; SQL view
69
[% ELSIF ( showsql ) %]› <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">[% t('Saved reports') %]</a> [% t('› SQL view') %]
69
[% ELSIF ( editsql ) %]&rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> &rsaquo; Edit SQL report
70
[% ELSIF ( editsql ) %]› <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">[% t('Saved reports') %]</a> [% t('› Edit SQL report') %]
70
[% ELSIF ( execute ) %]&rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> &rsaquo; <em>[% name %]</em> Report
71
[% ELSIF ( execute ) %]› <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">[% t('Saved reports') %]</a> › <em>[% name %]</em> [% t('Report') %]
71
[% ELSIF ( build1 || build2 || build3 || build4 || build5 || build6 ) %]&rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">Build a report</a>
72
[% ELSIF ( build1 || build2 || build3 || build4 || build5 || build6 ) %]› <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">[% t('Build a report') %]</a>
72
    [% IF ( build1 ) %]&rsaquo; Step 1 of 6: Choose a module
73
    [% IF ( build1 ) %][% t('› Step 1 of 6: Choose a module') %]
73
    [% ELSIF ( build2 ) %]&rsaquo; Step 2 of 6: Pick a report type
74
    [% ELSIF ( build2 ) %][% t('› Step 2 of 6: Pick a report type') %]
74
    [% ELSIF ( build3 ) %]&rsaquo; Step 3 of 6: Select columns for display
75
    [% ELSIF ( build3 ) %][% t('› Step 3 of 6: Select columns for display') %]
75
    [% ELSIF ( build4 ) %]&rsaquo; Step 4 of 6: Select criteria to limit on
76
    [% ELSIF ( build4 ) %][% t('› Step 4 of 6: Select criteria to limit on') %]
76
    [% ELSIF ( build5 ) %]&rsaquo; Step 5 of 6: Pick which columns to total
77
    [% ELSIF ( build5 ) %][% t('› Step 5 of 6: Pick which columns to total') %]
77
    [% ELSIF ( build6 ) %]&rsaquo; Step 6 of 6: Select how you want the report ordered
78
    [% ELSIF ( build6 ) %][% t('› Step 6 of 6: Select how you want the report ordered') %]
78
    [% END %]
79
    [% END %]
79
[% END %]
80
[% END %]
80
</div>
81
</div>
Lines 84-97 Link Here
84
    <div class="modal-content">
85
    <div class="modal-content">
85
    <div class="modal-header">
86
    <div class="modal-header">
86
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
87
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
87
        <h3 id="update_sql_label">Update SQL</h3>
88
        <h3 id="update_sql_label">[% t('Update SQL') %]</h3>
88
    </div>
89
    </div>
89
    <div class="modal-body">
90
    <div class="modal-body">
90
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
91
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
91
    </div>
92
    </div>
92
    <div class="modal-footer">
93
    <div class="modal-footer">
93
        <a href="#" class="btn btn-default" id="update_sql_button" role="button" data-toggle="modal">Update</a>
94
        <a href="#" class="btn btn-default" id="update_sql_button" role="button" data-toggle="modal">[% t('Update') %]</a>
94
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
95
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
95
    </div>
96
    </div>
96
    </div>
97
    </div>
97
    </div>
98
    </div>
Lines 104-162 Link Here
104
    [% INCLUDE "reports-toolbar.inc" %]
105
    [% INCLUDE "reports-toolbar.inc" %]
105
106
106
[% IF ( start ) %]
107
[% IF ( start ) %]
107
    <h2>Guided reports</h2>
108
    <h2>[% t('Guided reports') %]</h2>
108
    <p>Use the guided reports engine to create non standard reports.
109
    <p>[% t('Use the guided reports engine to create non standard reports.') %]
109
This feature aims to provide some middle ground between the built in
110
[% t('This feature aims to provide some middle ground between the built in') %]
110
canned reports and writing custom SQL reports.</p>
111
[% t('canned reports and writing custom SQL reports.') %]</p>
111
112
112
    <h3>Build and run reports</h3>
113
    <h3>[% t('Build and run reports') %]</h3>
113
        [% IF ( CAN_user_reports_create_reports ) %]
114
        [% IF ( CAN_user_reports_create_reports ) %]
114
        <form action="/cgi-bin/koha/reports/guided_reports.pl">
115
        <form action="/cgi-bin/koha/reports/guided_reports.pl">
115
            <input type="hidden" name="phase" value="Build new" />
116
            <input type="hidden" name="phase" value="Build new" />
116
            <input type="submit" name="submit" value="Build new"/>
117
            <input type="submit" name="submit" value="Build new" />
117
        </form>
118
        </form>
118
        [% END %]
119
        [% END %]
119
        [% IF ( CAN_user_reports_execute_reports ) %]
120
        [% IF ( CAN_user_reports_execute_reports ) %]
120
        <form action="/cgi-bin/koha/reports/guided_reports.pl">
121
        <form action="/cgi-bin/koha/reports/guided_reports.pl">
121
            <input type="hidden" name="phase" value="Use saved"/>
122
            <input type="hidden" name="phase" value="Use saved" />
122
            <input type="submit" name="submit" value="Use saved"/>
123
            <input type="submit" name="submit" value="Use saved" />
123
        </form>
124
        </form>
124
        [% END %]
125
        [% END %]
125
        [% IF ( CAN_user_reports_create_reports ) %]
126
        [% IF ( CAN_user_reports_create_reports ) %]
126
        <form action="/cgi-bin/koha/reports/guided_reports.pl">
127
        <form action="/cgi-bin/koha/reports/guided_reports.pl">
127
            <input type="hidden" name="phase" value="Create report from SQL"/>
128
            <input type="hidden" name="phase" value="Create report from SQL" />
128
            <input type="submit" name="submit" value="Create report from SQL"/>
129
            <input type="submit" name="submit" value="Create report from SQL" />
129
        </form>
130
        </form>
130
        [% END %]
131
        [% END %]
131
<h3>Reports Dictionary</h3>
132
<h3>[% t('Reports Dictionary') %]</h3>
132
<p>Use the reports dictionary to define custom criteria to use in your reports</p>
133
<p>[% t('Use the reports dictionary to define custom criteria to use in your reports') %]</p>
133
<form action="/cgi-bin/koha/reports/dictionary.pl">
134
<form action="/cgi-bin/koha/reports/dictionary.pl">
134
<input type="hidden" name="phase" value="View Dictionary"/>
135
<input type="hidden" name="phase" value="View Dictionary" />
135
<input type="submit" name="submit" value="View dictionary"/>
136
<input type="submit" name="submit" value="View dictionary" />
136
</form>
137
</form>
137
[% END %]
138
[% END %]
138
139
139
[% IF report_converted %]
140
[% IF report_converted %]
140
    <div class="dialog message">
141
    <div class="dialog message">
141
        The report "[% report_converted %]" has been converted.
142
        [% t('The report &#34;') %][% report_converted %][% t('&#34; has been converted.') %]
142
    </div>
143
    </div>
143
[% END %]
144
[% END %]
144
145
145
[% IF ( saved1 ) %]
146
[% IF ( saved1 ) %]
146
[% IF ( savedreports ) %]<h1>Saved reports</h1>
147
[% IF ( savedreports ) %]<h1>[% t('Saved reports') %]</h1>
147
148
148
<div id="tabs" class="toptabs">
149
<div id="tabs" class="toptabs">
149
    <ul>
150
    <ul>
150
        <li><a href="#reports">All</a></li>
151
        <li><a href="#reports">[% t('All') %]</a></li>
151
        [% FOREACH group IN groups_with_subgroups %]
152
        [% FOREACH group IN groups_with_subgroups %]
152
            <li><a id="[% group.id %]" href="#reports">[% group.name %]</a></li>
153
            <li><a id="[% group.id %]" href="#reports">[% group.name %]</a></li>
153
        [% END %]
154
        [% END %]
154
    </ul>
155
    </ul>
155
    <div id="reports">
156
    <div id="reports">
156
        <div id="subgroup_filter_block">
157
        <div id="subgroup_filter_block">
157
            <label for="subgroup_filter">Subgroup:</label>
158
            <label for="subgroup_filter">[% t('Subgroup:') %]</label>
158
            <select id="subgroup_filter">
159
            <select id="subgroup_filter">
159
                <option value="">All</option>
160
                <option value="">[% t('All') %]</option>
160
            </select>
161
            </select>
161
        </div>
162
        </div>
162
<form action="/cgi-bin/koha/reports/guided_reports.pl" id="reports_form" method="post">
163
<form action="/cgi-bin/koha/reports/guided_reports.pl" id="reports_form" method="post">
Lines 164-186 canned reports and writing custom SQL reports.</p> Link Here
164
        <table id="table_reports">
165
        <table id="table_reports">
165
            <thead>
166
            <thead>
166
                <tr>
167
                <tr>
167
                    <th>&nbsp;</th>
168
                    <th> </th>
168
                    <th>ID</th>
169
                    <th>[% t('ID') %]</th>
169
                    <th>Report name</th>
170
                    <th>[% t('Report name') %]</th>
170
                    <th>Type</th>
171
                    <th>[% t('Type') %]</th>
171
                    <th>Group</th>
172
                    <th>[% t('Group') %]</th>
172
                    <th>Subgroup</th>
173
                    <th>[% t('Subgroup') %]</th>
173
                    <th>Notes</th>
174
                    <th>[% t('Notes') %]</th>
174
                    <th>Author</th>
175
                    <th>[% t('Author') %]</th>
175
                    <th class="title-string">Creation date</th>
176
                    <th class="title-string">[% t('Creation date') %]</th>
176
                    <th class="title-string">Last edit</th>
177
                    <th class="title-string">[% t('Last edit') %]</th>
177
                    <th class="title-string">Last run</th>
178
                    <th class="title-string">[% t('Last run') %]</th>
178
                    <th class="report_public">Public</th>
179
                    <th class="report_public">[% t('Public') %]</th>
179
                    <th class="report_json_url">JSON URL</th>
180
                    <th class="report_json_url">[% t('JSON URL') %]</th>
180
                    [% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %]
181
                    [% IF (usecache) %] <th>[% t('Cache expiry (seconds)') %]</th> [% END %]
181
                    <th>Saved results</th>
182
                    <th>[% t('Saved results') %]</th>
182
                    [% IF has_obsolete_reports %]<th>Update</th>[% END %]
183
                    [% IF has_obsolete_reports %]<th>[% t('Update') %]</th>[% END %]
183
                    <th>Actions</th>
184
                    <th>[% t('Actions') %]</th>
184
                </tr>
185
                </tr>
185
            </thead>
186
            </thead>
186
            <tbody>
187
            <tbody>
Lines 209-238 canned reports and writing custom SQL reports.</p> Link Here
209
                        <td><span title="[% savedreport.last_run %]">[% savedreport.last_run | $KohaDates with_hours => 1 %]</span></td>
210
                        <td><span title="[% savedreport.last_run %]">[% savedreport.last_run | $KohaDates with_hours => 1 %]</span></td>
210
                        <td class="report_public">
211
                        <td class="report_public">
211
                        [% IF (savedreport.public) %]
212
                        [% IF (savedreport.public) %]
212
                            Yes
213
                            [% t('Yes') %]
213
                        [% ELSE %]
214
                        [% ELSE %]
214
                            No
215
                            [% t('No') %]
215
                        [% END %]
216
                        [% END %]
216
                        </td>
217
                        </td>
217
                        <td class="report_json_url">
218
                        <td class="report_json_url">
218
                        [% IF (savedreport.public) %]
219
                        [% IF (savedreport.public) %]
219
                            <a href="[% OPACBaseURL %]/cgi-bin/koha/svc/report?id=[% savedreport.id | uri %]">[% OPACBaseURL %]/cgi-bin/koha/svc/report?id=[% savedreport.id | html %]</a>
220
                            <a href="[% OPACBaseURL %]/cgi-bin/koha/svc/report?id=[% savedreport.id | uri %]">[% OPACBaseURL %][% t('/cgi-bin/koha/svc/report?id=') %][% savedreport.id | html %]</a>
220
                        [% ELSE %]
221
                        [% ELSE %]
221
                            <a href="/cgi-bin/koha/svc/report?id=[% savedreport.id | uri %]">[% Koha.Preference('staffClientBaseURL') %]/cgi-bin/koha/svc/report?id=[% savedreport.id | html %]</a>
222
                            <a href="/cgi-bin/koha/svc/report?id=[% savedreport.id | uri %]">[% Koha.Preference('staffClientBaseURL') %][% t('/cgi-bin/koha/svc/report?id=') %][% savedreport.id | html %]</a>
222
                        [% END %]
223
                        [% END %]
223
                        </td>
224
                        </td>
224
                        [% IF (usecache) %] <td>[% savedreport.cache_expiry %]</td> [% END %]
225
                        [% IF (usecache) %] <td>[% savedreport.cache_expiry %]</td> [% END %]
225
                        <td>
226
                        <td>
226
                            [% FOR result IN savedreport.results %]
227
                            [% FOR result IN savedreport.results %]
227
                                <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=retrieve%20results&amp;id=[% result.id %]">[% result.date_run %]</a>
228
                                <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=retrieve%20results&id=[% result.id %]">[% result.date_run %]</a>
228
                                <br/>
229
                                <br />
229
                            [% END %]
230
                            [% END %]
230
                        </td>
231
                        </td>
231
                        [% IF has_obsolete_reports %]
232
                        [% IF has_obsolete_reports %]
232
                        <td>
233
                        <td>
233
                            [% IF savedreport.seems_obsolete %]
234
                            [% IF savedreport.seems_obsolete %]
234
                                This report seems obsolete, it uses biblioitems.marcxml field.
235
                                [% t('This report seems obsolete, it uses biblioitems.marcxml field.') %]
235
                                <a href="/cgi-bin/koha/svc/convert_report?report_id=[% savedreport.id %]" data-report_id="[% savedreport.id %]" class="update_sql btn btn-default btn-xs" title="Update SQL"><i class="fa fa-eye"></i> Update SQL</a>
236
                                <a href="/cgi-bin/koha/svc/convert_report?report_id=[% savedreport.id %]" data-report_id="[% savedreport.id %]" class="update_sql btn btn-default btn-xs" title="[% t('Update SQL') %]"><i class="fa fa-eye"></i> [% t('Update SQL') %]</a>
236
                            [% END %]
237
                            [% END %]
237
                        </td>
238
                        </td>
238
                        [% END %]
239
                        [% END %]
Lines 240-259 canned reports and writing custom SQL reports.</p> Link Here
240
                            <div class="dropup">
241
                            <div class="dropup">
241
                                <div class="btn-group">
242
                                <div class="btn-group">
242
                                    [%# There should be no space between these two buttons, it would render badly %]
243
                                    [%# There should be no space between these two buttons, it would render badly %]
243
                                    <a class="btn btn-default btn-xs" role="button"
244
                                    <a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&phase=Run%20this%20report"><i class="fa fa-play"></i> [% t('Run') %]</a><a class="btn btn-default btn-xs dropdown-toggle" id="reportactions[% savedreport.id %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
244
                                       href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&amp;phase=Run%20this%20report"><i
245
                                       class="fa fa-play"></i> Run</a><a
246
                                       class="btn btn-default btn-xs dropdown-toggle" id="reportactions[% savedreport.id %]" role="button" data-toggle="dropdown"
247
                                       href="#"><b class="caret"></b></a>
248
                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reportactions[% savedreport.id %]">
245
                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reportactions[% savedreport.id %]">
249
                                        <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&amp;phase=Show%20SQL"><i class="fa fa-search"></i> Show</a></li>
246
                                        <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&phase=Show%20SQL"><i class="fa fa-search"></i> [% t('Show') %]</a></li>
250
                                        [% IF ( CAN_user_reports_create_reports ) %]
247
                                        [% IF ( CAN_user_reports_create_reports ) %]
251
                                            <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&amp;phase=Edit%20SQL"><i class="fa fa-pencil"></i> Edit</a></li>
248
                                            <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&phase=Edit%20SQL"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
252
                                            <li><a title="Duplicate this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from SQL&amp;sql=[% savedreport.savedsql |uri %]&amp;reportname=[% savedreport.report_name |uri %]&amp;notes=[% savedreport.notes |uri %]"><i class="fa fa-copy"></i> Duplicate</a></li>
249
                                            <li><a title="[% t('Duplicate this saved report') %]" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from SQL&sql=[% savedreport.savedsql |uri %]&reportname=[% savedreport.report_name |uri %]&notes=[% savedreport.notes |uri %]"><i class="fa fa-copy"></i> [% t('Duplicate') %]</a></li>
253
                                        [% END %]
250
                                        [% END %]
254
                                        <li><a href="/cgi-bin/koha/tools/scheduler.pl?id=[% savedreport.id %]"><i class="fa fa-clock-o"></i> Schedule</a></li>
251
                                        <li><a href="/cgi-bin/koha/tools/scheduler.pl?id=[% savedreport.id %]"><i class="fa fa-clock-o"></i> [% t('Schedule') %]</a></li>
255
                                        [% IF ( CAN_user_reports_delete_reports ) %]
252
                                        [% IF ( CAN_user_reports_delete_reports ) %]
256
                                            <li><a class="confirmdelete" title="Delete this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&amp;phase=Delete%20Saved"><i class="fa fa-trash"></i> Delete</a></li>
253
                                            <li><a class="confirmdelete" title="[% t('Delete this saved report') %]" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&phase=Delete%20Saved"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
257
                                        [% END %]
254
                                        [% END %]
258
                                    </ul>
255
                                    </ul>
259
                                </div>
256
                                </div>
Lines 273-302 canned reports and writing custom SQL reports.</p> Link Here
273
</div>
270
</div>
274
[% ELSE %]<div class="dialog message">
271
[% ELSE %]<div class="dialog message">
275
    [% IF (filter_set || filters.date || filters.author || filters.keyword) %]
272
    [% IF (filter_set || filters.date || filters.author || filters.keyword) %]
276
    <h4>No saved reports match your criteria. </h4>
273
    <h4>[% t('No saved reports match your criteria.') %] </h4>
277
    [% IF ( CAN_user_reports_create_reports ) %]
274
    [% IF ( CAN_user_reports_create_reports ) %]
278
    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
275
    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
279
    <input type="hidden" name="phase" value="Build new" />
276
    <input type="hidden" name="phase" value="Build new" />
280
        <button type="submit" class="new"><i class="fa fa-plus"></i> New guided report</button>
277
        <button type="submit" class="new"><i class="fa fa-plus"></i> [% t('New guided report') %]</button>
281
    </form>
278
    </form>
282
279
283
    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
280
    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
284
        <input type="hidden" name="phase" value="Create report from SQL" />
281
        <input type="hidden" name="phase" value="Create report from SQL" />
285
        <button type="submit" class="new"><i class="fa fa-plus"></i> New SQL report</button>
282
        <button type="submit" class="new"><i class="fa fa-plus"></i> [% t('New SQL report') %]</button>
286
    </form>
283
    </form>
287
284
288
    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
285
    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
289
    <input type="hidden" name="phase" value="Use saved" />
286
    <input type="hidden" name="phase" value="Use saved" />
290
    <input type="hidden" name="filter_set" value="1" />
287
    <input type="hidden" name="filter_set" value="1" />
291
    <input type="hidden" name="filter_keyword" value="" />
288
    <input type="hidden" name="filter_keyword" value="" />
292
        <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> Cancel filter</button>
289
        <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('Cancel filter') %]</button>
293
    </form>
290
    </form>
294
291
295
    [% END %]
292
    [% END %]
296
    [% ELSE %]
293
    [% ELSE %]
297
    <h4>There are no saved reports. </h4>
294
    <h4>[% t('There are no saved reports.') %] </h4>
298
    [% IF ( CAN_user_reports_create_reports ) %]
295
    [% IF ( CAN_user_reports_create_reports ) %]
299
        <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">Build a new report?</a>
296
        <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">[% t('Build a new report?') %]</a>
300
    [% END %]
297
    [% END %]
301
    [% END %]
298
    [% END %]
302
    </div>
299
    </div>
Lines 307-322 canned reports and writing custom SQL reports.</p> Link Here
307
[% IF ( build1 ) %]
304
[% IF ( build1 ) %]
308
[% IF ( cache_error) %]
305
[% IF ( cache_error) %]
309
<div class="dialog alert">
306
<div class="dialog alert">
310
<b> Please choose a cache_expiry less than 30 days </b>
307
<b> [% t('Please choose a cache_expiry less than 30 days') %] </b>
311
</div>
308
</div>
312
[% END %]
309
[% END %]
313
<h1>Build a report</h1>
310
<h1>[% t('Build a report') %]</h1>
314
<form action="/cgi-bin/koha/reports/guided_reports.pl">
311
<form action="/cgi-bin/koha/reports/guided_reports.pl">
315
<fieldset class="rows">
312
<fieldset class="rows">
316
<legend>Step 1 of 6: Choose a module to report on,[% IF (usecache) %] Set cache expiry, [% END %] and choose report visibility </legend>
313
<legend>[% t('Step 1 of 6: Choose a module to report on,') %][% IF (usecache) %] [% t('Set cache expiry,') %] [% END %] [% t('and choose report visibility') %] </legend>
317
<ol>
314
<ol>
318
  <li>
315
  <li>
319
    <label for="area">Choose: </label>
316
    <label for="area">[% t('Choose:') %] </label>
320
      <select name="area" id="area">
317
      <select name="area" id="area">
321
    [%- FOREACH area IN areas -%]
318
    [%- FOREACH area IN areas -%]
322
      <option value="[% area %]">[%- PROCESS area_name area=area -%]</option>
319
      <option value="[% area %]">[%- PROCESS area_name area=area -%]</option>
Lines 324-347 canned reports and writing custom SQL reports.</p> Link Here
324
      </select>
321
      </select>
325
  </li>
322
  </li>
326
[% IF (public) %]
323
[% IF (public) %]
327
  <li><label for="public">Report is public:</label><select id="public" name="public"> <option value="0">No (default)</option> <option value="1" selected="selected">Yes</option> </select></li>
324
  <li><label for="public">[% t('Report is public:') %]</label><select id="public" name="public"> <option value="0">[% t('No (default)') %]</option> <option value="1" selected="selected">[% t('Yes') %]</option> </select></li>
328
[% ELSE %]
325
[% ELSE %]
329
  <li><label for="public">Report is public:</label><select id="public" name="public"> <option value="0" selected="selected">No (default)</option> <option value="1">Yes</option> </select></li>
326
  <li><label for="public">[% t('Report is public:') %]</label><select id="public" name="public"> <option value="0" selected="selected">[% t('No (default)') %]</option> <option value="1">[% t('Yes') %]</option> </select></li>
330
[% END %]
327
[% END %]
331
[% IF (usecache) %] <li>
328
[% IF (usecache) %] <li>
332
<label for="cache_expiry">Cache expiry:</label><input type="text" id="cache_expiry" name="cache_expiry" value="[% cache_expiry %]"></input>
329
<label for="cache_expiry">[% t('Cache expiry:') %]</label><input type="text" id="cache_expiry" name="cache_expiry" value="[% cache_expiry %]"></input>
333
<select id="cache_expiry_units" name="cache_expiry_units">
330
<select id="cache_expiry_units" name="cache_expiry_units">
334
<option value="seconds">Seconds (default)</option>
331
<option value="seconds">[% t('Seconds (default)') %]</option>
335
<option value="minutes">Minutes</option>
332
<option value="minutes">[% t('Minutes') %]</option>
336
<option value="hours">Hours</option>
333
<option value="hours">[% t('Hours') %]</option>
337
<option value="days">Days</option>
334
<option value="days">[% t('Days') %]</option>
338
</select>
335
</select>
339
</li>[% END %]
336
</li>[% END %]
340
</ol>
337
</ol>
341
</fieldset>
338
</fieldset>
342
<fieldset class="action">
339
<fieldset class="action">
343
<input type="hidden" name="phase" value="Report on this Area" />
340
<input type="hidden" name="phase" value="Report on this Area" />
344
<input type="submit" name="submit" value="Next &gt;&gt;" />
341
<input type="submit" name="submit" value="Next >>" />
345
342
346
</fieldset>
343
</fieldset>
347
</form>
344
</form>
Lines 349-372 canned reports and writing custom SQL reports.</p> Link Here
349
346
350
347
351
[% IF ( build2 ) %]
348
[% IF ( build2 ) %]
352
<h1>Build a report</h1>
349
<h1>[% t('Build a report') %]</h1>
353
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
350
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
354
<input type="hidden" name="area" value="[% area %]" />
351
<input type="hidden" name="area" value="[% area %]" />
355
<input type="hidden" name="public" value="[% public %]" />
352
<input type="hidden" name="public" value="[% public %]" />
356
<input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
353
<input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
357
<fieldset class="rows"><legend>Step 2 of 6: Pick a report type</legend>
354
<fieldset class="rows"><legend>[% t('Step 2 of 6: Pick a report type') %]</legend>
358
<ol><li><label for="types">Choose: </label>
355
<ol><li><label for="types">[% t('Choose:') %] </label>
359
    <select id="types" name="types">
356
    <select id="types" name="types">
360
        <option value="1">Tabular</option>
357
        <option value="1">[% t('Tabular') %]</option>
361
        <option value="2" disabled="disabled">Summary</option>
358
        <option value="2" disabled="disabled">[% t('Summary') %]</option>
362
        <option value="3" disabled="disabled">Matrix</option>
359
        <option value="3" disabled="disabled">[% t('Matrix') %]</option>
363
    </select>
360
    </select>
364
</li></ol></fieldset>
361
</li></ol></fieldset>
365
362
366
<fieldset class="action">
363
<fieldset class="action">
367
    <input type="hidden" name="phase" value="Choose this type" />
364
    <input type="hidden" name="phase" value="Choose this type" />
368
    <input type="button" name="back" value="&lt;&lt; Back" class="goback" />
365
    <input type="button" name="back" value="<< Back" class="goback" />
369
    <input type="submit" name="submit" value="Next &gt;&gt;" />
366
    <input type="submit" name="submit" value="Next >>" />
370
</fieldset>
367
</fieldset>
371
</form>
368
</form>
372
</div>
369
</div>
Lines 381-389 canned reports and writing custom SQL reports.</p> Link Here
381
[% END %]
378
[% END %]
382
379
383
[% IF ( build3 ) %]
380
[% IF ( build3 ) %]
384
<h1>Build a report</h1>
381
<h1>[% t('Build a report') %]</h1>
385
<h3>Step 3 of 6: Select columns for display</h3>
382
<h3>[% t('Step 3 of 6: Select columns for display') %]</h3>
386
<p>Note: Be careful selecting when selecting columns. If your choice is too broad it could result in a very large report that will either not complete, or slow your system down.</p>
383
<p>[% t('Note: Be careful selecting when selecting columns. If your choice is too broad it could result in a very large report that will either not complete, or slow your system down.') %]</p>
387
384
388
<form id="column_submit" action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
385
<form id="column_submit" action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
389
    <input type="hidden" name="area" value="[% area %]" />
386
    <input type="hidden" name="area" value="[% area %]" />
Lines 404-410 canned reports and writing custom SQL reports.</p> Link Here
404
<optgroup label="[% column.table %]">
401
<optgroup label="[% column.table %]">
405
[% ELSE %]
402
[% ELSE %]
406
<option value="[% column.name %]">
403
<option value="[% column.name %]">
407
[% IF ( column.description ) %][% column.description %] &nbsp; / &nbsp; [% column.name %]
404
[% IF ( column.description ) %][% column.description %]   /   [% column.name %]
408
[% ELSE %]
405
[% ELSE %]
409
[% column.name %]
406
[% column.name %]
410
[% END %]
407
[% END %]
Lines 414-420 canned reports and writing custom SQL reports.</p> Link Here
414
</optgroup>
411
</optgroup>
415
</select></div>
412
</select></div>
416
<div style="width: 6.3em; float: right; margin-top: 100px"><input type="button" name="Add" value="Add" class="button" style="width:6em;" id="addColumn" /><br />
413
<div style="width: 6.3em; float: right; margin-top: 100px"><input type="button" name="Add" value="Add" class="button" style="width:6em;" id="addColumn" /><br />
417
<input type="button" name="delete" value="&lt;&lt; Delete" class="button" style="width: 6em; margin: 1em 0;" id="delColumn" /></div>
414
<input type="button" name="delete" value="<< Delete" class="button" style="width: 6em; margin: 1em 0;" id="delColumn" /></div>
418
</div>
415
</div>
419
416
420
<div class="yui-u">
417
<div class="yui-u">
Lines 425-432 canned reports and writing custom SQL reports.</p> Link Here
425
<div class="yui-g">
422
<div class="yui-g">
426
<fieldset class="action">
423
<fieldset class="action">
427
    <input type="hidden" name="phase" value="Choose these columns" />
424
    <input type="hidden" name="phase" value="Choose these columns" />
428
    <input type="button" name="back" value="&lt;&lt; Back" class="goback" />
425
    <input type="button" name="back" value="<< Back" class="goback" />
429
    <input type="submit" name="submit" value="Next &gt;&gt;" />
426
    <input type="submit" name="submit" value="Next >>" />
430
</fieldset>
427
</fieldset>
431
</div>
428
</div>
432
</form>
429
</form>
Lines 434-447 canned reports and writing custom SQL reports.</p> Link Here
434
[% END %]
431
[% END %]
435
432
436
[% IF ( build4 ) %]
433
[% IF ( build4 ) %]
437
<h1>Build a report</h1>
434
<h1>[% t('Build a report') %]</h1>
438
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" >
435
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
439
    <input type="hidden" name="area" value="[% area %]" />
436
    <input type="hidden" name="area" value="[% area %]" />
440
    <input type="hidden" name="type" value="[% type %]" />
437
    <input type="hidden" name="type" value="[% type %]" />
441
    <input type="hidden" name="column" value="[% column %]" />
438
    <input type="hidden" name="column" value="[% column %]" />
442
    <input type="hidden" name="public" value="[% public %]" />
439
    <input type="hidden" name="public" value="[% public %]" />
443
    <input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
440
    <input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
444
    <fieldset><legend>Step 4 of 6: Select criteria to limit on</legend>
441
    <fieldset><legend>[% t('Step 4 of 6: Select criteria to limit on') %]</legend>
445
    <table>
442
    <table>
446
        [% FOREACH criteri IN criteria %]
443
        [% FOREACH criteri IN criteria %]
447
        <tr>
444
        <tr>
Lines 457-472 canned reports and writing custom SQL reports.</p> Link Here
457
        </tr>
454
        </tr>
458
        [% ELSE %]
455
        [% ELSE %]
459
        [% IF ( criteri.textrange ) %]
456
        [% IF ( criteri.textrange ) %]
460
            <td>from
457
            <td>[% t('from') %]
461
            <input type="text" size="10" id="[% criteri.from %]_value" name="[% criteri.from %]_value" value="" /> to 
458
            <input type="text" size="10" id="[% criteri.from %]_value" name="[% criteri.from %]_value" value="" /> [% t('to') %] 
462
            <input type="text" size="10" id="[% criteri.to %]_value" name="[% criteri.to %]_value" value="" />
459
            <input type="text" size="10" id="[% criteri.to %]_value" name="[% criteri.to %]_value" value="" />
463
            </td>
460
            </td>
464
            </tr>
461
            </tr>
465
        [% ELSE %]
462
        [% ELSE %]
466
            [% IF ( criteri.daterange ) %]
463
            [% IF ( criteri.daterange ) %]
467
            <td>from 
464
            <td>[% t('from') %] 
468
            <input type="text" size="10" id="from_[% criteri.name %]_value" name="from_[% criteri.name %]_value" value="" class="datepickerfrom" />
465
            <input type="text" size="10" id="from_[% criteri.name %]_value" name="from_[% criteri.name %]_value" value="" class="datepickerfrom" />
469
            to
466
            [% t('to') %]
470
            <input type="text" size="10" id="to_[% criteri.name %]_value" name="to_[% criteri.name %]_value" value="" class="datepickerto" />
467
            <input type="text" size="10" id="to_[% criteri.name %]_value" name="to_[% criteri.name %]_value" value="" class="datepickerto" />
471
			<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
468
			<span class="hint">[% INCLUDE 'date-format.inc' %]</span>
472
            </td>
469
            </td>
Lines 475-481 canned reports and writing custom SQL reports.</p> Link Here
475
            <td>
472
            <td>
476
                <select name="[% criteri.name %]_value">
473
                <select name="[% criteri.name %]_value">
477
                [% FOREACH value IN criteri.values %]
474
                [% FOREACH value IN criteri.values %]
478
                <option value="[% value.availablevalues %]">[% IF ( value.default ) %]Default[% ELSE %][% value.display_value |html %][% END %]</option>
475
                <option value="[% value.availablevalues %]">[% IF ( value.default ) %][% t('Default') %][% ELSE %][% value.display_value |html %][% END %]</option>
479
                [% END %]
476
                [% END %]
480
                </select>
477
                </select>
481
            </td>
478
            </td>
Lines 488-494 canned reports and writing custom SQL reports.</p> Link Here
488
    </fieldset>
485
    </fieldset>
489
486
490
[% IF ( definitions ) %]
487
[% IF ( definitions ) %]
491
<fieldset><legend>Dictionary definitions</legend>
488
<fieldset><legend>[% t('Dictionary definitions') %]</legend>
492
<table>
489
<table>
493
[% FOREACH definition IN definitions %]
490
[% FOREACH definition IN definitions %]
494
    <tr><td><input type="checkbox" name="definition" value="[% definition.id %]" /> [% definition.name %]</td></tr>
491
    <tr><td><input type="checkbox" name="definition" value="[% definition.id %]" /> [% definition.name %]</td></tr>
Lines 498-512 canned reports and writing custom SQL reports.</p> Link Here
498
[% END %]
495
[% END %]
499
496
500
<fieldset class="action"><input type="hidden" name="phase" value="Choose these criteria" />
497
<fieldset class="action"><input type="hidden" name="phase" value="Choose these criteria" />
501
    <input type="button" name="back" value="&lt;&lt; Back" class="goback" />
498
    <input type="button" name="back" value="<< Back" class="goback" />
502
    <input type="submit" name="submit" value="Next &gt;&gt;" /> </fieldset>
499
    <input type="submit" name="submit" value="Next >>" /> </fieldset>
503
</form>
500
</form>
504
[% END %]
501
[% END %]
505
502
506
503
507
[% IF ( build5 ) %]
504
[% IF ( build5 ) %]
508
<h1>Build a report</h1>
505
<h1>[% t('Build a report') %]</h1>
509
<h3>Step 5 of 6: Pick which columns to total</h3>
506
<h3>[% t('Step 5 of 6: Pick which columns to total') %]</h3>
510
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
507
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
511
<input type="hidden" name="area" value="[% area %]" />
508
<input type="hidden" name="area" value="[% area %]" />
512
<input type="hidden" name="type" value="[% type %]" />
509
<input type="hidden" name="type" value="[% type %]" />
Lines 530-544 canned reports and writing custom SQL reports.</p> Link Here
530
</table></fieldset>
527
</table></fieldset>
531
528
532
<fieldset class="action"><input type="hidden" name="phase" value="Choose these operations" />
529
<fieldset class="action"><input type="hidden" name="phase" value="Choose these operations" />
533
    <input type="button" name="back" value="&lt;&lt; Back" class="goback" />
530
    <input type="button" name="back" value="<< Back" class="goback" />
534
    <input type="submit" name="submit" value="Next &gt;&gt;" /></fieldset>
531
    <input type="submit" name="submit" value="Next >>" /></fieldset>
535
</form>
532
</form>
536
[% END %]
533
[% END %]
537
534
538
535
539
[% IF ( build6 ) %]
536
[% IF ( build6 ) %]
540
<h1>Build a report</h1>
537
<h1>[% t('Build a report') %]</h1>
541
<h3>Step 6 of 6: Choose how you want the report ordered</h3>
538
<h3>[% t('Step 6 of 6: Choose how you want the report ordered') %]</h3>
542
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
539
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
543
<input type="hidden" name="area" value="[% area %]" />
540
<input type="hidden" name="area" value="[% area %]" />
544
<input type="hidden" name="type" value="[% type %]" />
541
<input type="hidden" name="type" value="[% type %]" />
Lines 569-576 canned reports and writing custom SQL reports.</p> Link Here
569
566
570
567
571
[% IF ( showreport ) %]
568
[% IF ( showreport ) %]
572
<h1>Confirm custom report</h1>
569
<h1>[% t('Confirm custom report') %]</h1>
573
<p>Your report will be generated with the following SQL statement.</p>
570
<p>[% t('Your report will be generated with the following SQL statement.') %]</p>
574
<p> 
571
<p> 
575
[% sql |html %]
572
[% sql |html %]
576
</p>
573
</p>
Lines 580-586 canned reports and writing custom SQL reports.</p> Link Here
580
<input type="hidden" name="type" value="[% type %]" />
577
<input type="hidden" name="type" value="[% type %]" />
581
<input type="hidden" name="public" value="[% public %]" />
578
<input type="hidden" name="public" value="[% public %]" />
582
<input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
579
<input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
583
<p>You will need to save the report before you can execute it</p>
580
<p>[% t('You will need to save the report before you can execute it') %]</p>
584
<fieldset class="action"><input type="hidden" name="phase" value="Save" />  
581
<fieldset class="action"><input type="hidden" name="phase" value="Save" />  
585
<input type="submit" name="submit" value="Save" />  </fieldset>
582
<input type="submit" name="submit" value="Save" />  </fieldset>
586
</form>
583
</form>
Lines 594-604 canned reports and writing custom SQL reports.</p> Link Here
594
<input type="hidden" name="public" value="[% public %]" />
591
<input type="hidden" name="public" value="[% public %]" />
595
<input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
592
<input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
596
<fieldset class="rows">
593
<fieldset class="rows">
597
<legend>Save your custom report</legend>
594
<legend>[% t('Save your custom report') %]</legend>
598
<ol>
595
<ol>
599
    <li><label for="reportname" class="required">Report name: </label><input type="text" id="reportname" name="reportname" class="required" required="required" /> <span class="required">Required</span></li>
596
    <li><label for="reportname" class="required">[% t('Report name:') %] </label><input type="text" id="reportname" name="reportname" class="required" required="required" /> <span class="required">[% t('Required') %]</span></li>
600
    [% PROCESS group_and_subgroup_selection %]
597
    [% PROCESS group_and_subgroup_selection %]
601
    <li><label for="notes">Notes:</label> <textarea name="notes" id="notes"></textarea></li>
598
    <li><label for="notes">[% t('Notes:') %]</label> <textarea name="notes" id="notes"></textarea></li>
602
</ol></fieldset>
599
</ol></fieldset>
603
<fieldset class="action"><input type="hidden" name="phase" value="Save Report" />
600
<fieldset class="action"><input type="hidden" name="phase" value="Save Report" />
604
<input type="submit" name="submit" value="Save report" /></fieldset>
601
<input type="submit" name="submit" value="Save report" /></fieldset>
Lines 607-665 canned reports and writing custom SQL reports.</p> Link Here
607
604
608
[% IF ( warn_authval_problem ) %]
605
[% IF ( warn_authval_problem ) %]
609
    <div class="dialog alert">
606
    <div class="dialog alert">
610
        <h3>Errors found when processing parameters for report: [% name %]</h3>
607
        <h3>[% t('Errors found when processing parameters for report:') %] [% name %]</h3>
611
        [% FOREACH problematic_authval IN problematic_authvals %]
608
        [% FOREACH problematic_authval IN problematic_authvals %]
612
            <p>
609
            <p>
613
            <strong>[% problematic_authval.name %]:</strong> The authorized value category (<strong>[% problematic_authval.authval %]</strong>)
610
            <strong>[% problematic_authval.name %]:</strong> [% t('The authorized value category (') %]<strong>[% problematic_authval.authval %]</strong>)
614
                you selected does not exist.
611
                [% t('you selected does not exist.') %]
615
            </p>
612
            </p>
616
        [% END %]
613
        [% END %]
617
        <!-- Save Anyway Form -->
614
        <!-- Save Anyway Form -->
618
        <form action='/cgi-bin/koha/reports/guided_reports.pl'>
615
        <form action="/cgi-bin/koha/reports/guided_reports.pl">
619
        <!--Every parameter the user issued is provided as a hidden field for recovery-->
616
        <!--Every parameter the user issued is provided as a hidden field for recovery-->
620
            <input type='hidden' name='id' value='[% id %]' />
617
            <input type="hidden" name="id" value="[% id %]" />
621
            <input type='hidden' name='sql' value='[% sql %]' />
618
            <input type="hidden" name="sql" value="[% sql %]" />
622
            <input type='hidden' name='reportname' value='[% reportname %]' />
619
            <input type="hidden" name="reportname" value="[% reportname %]" />
623
            <input type='hidden' name='group' value='[% group %]' />
620
            <input type="hidden" name="group" value="[% group %]" />
624
            <input type='hidden' name='subgroup' value='[% subgroup %]' />
621
            <input type="hidden" name="subgroup" value="[% subgroup %]" />
625
            <input type='hidden' name='notes' value='[% notes %]' />
622
            <input type="hidden" name="notes" value="[% notes %]" />
626
            <input type='hidden' name='cache_expiry' value='[% cache_expiry %]' />
623
            <input type="hidden" name="cache_expiry" value="[% cache_expiry %]" />
627
            <input type='hidden' name='cache_expiry_units' value='[% cache_expiry_units %]' />
624
            <input type="hidden" name="cache_expiry_units" value="[% cache_expiry_units %]" />
628
            <input type='hidden' name='public' value='[% public %]' />
625
            <input type="hidden" name="public" value="[% public %]" />
629
        [% IF ( phase_update) %]
626
        [% IF ( phase_update) %]
630
            <input type='hidden' name='phase' value='Update SQL' />
627
            <input type="hidden" name="phase" value="Update SQL" />
631
            <button type="submit" name="save_anyway" value="Save anyway" class="approve"><i class="fa fa-fw fa-check"></i> Save anyway</button>
628
            <button type="submit" name="save_anyway" value="Save anyway" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Save anyway') %]</button>
632
        [% ELSIF ( phase_save) %]
629
        [% ELSIF ( phase_save) %]
633
            <input type='hidden' name='area' value='[% area %]' />
630
            <input type="hidden" name="area" value="[% area %]" />
634
            <input type='hidden' name='phase' value='Save Report' />
631
            <input type="hidden" name="phase" value="Save Report" />
635
            <button type="submit" name="save_anyway" value="Save anyway" class="approve"><i class="fa fa-fw fa-check"></i> Save anyway</button>
632
            <button type="submit" name="save_anyway" value="Save anyway" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Save anyway') %]</button>
636
        [% END %]
633
        [% END %]
637
        </form>
634
        </form>
638
        <!-- Go back to editing -->
635
        <!-- Go back to editing -->
639
        <form action='/cgi-bin/koha/reports/guided_reports.pl'>
636
        <form action="/cgi-bin/koha/reports/guided_reports.pl">
640
            <button type="button" class="new goback"><i class="fa fa-fw fa-pencil"></i> Edit SQL</button>
637
            <button type="button" class="new goback"><i class="fa fa-fw fa-pencil"></i> [% t('Edit SQL') %]</button>
641
        </form>
638
        </form>
642
    </div>
639
    </div>
643
[% END %]
640
[% END %]
644
641
645
[% IF ( enter_params ) %]
642
[% IF ( enter_params ) %]
646
    <form action='/cgi-bin/koha/reports/guided_reports.pl'>
643
    <form action="/cgi-bin/koha/reports/guided_reports.pl">
647
        <input type='hidden' name='reports' value="[% reports %]" />
644
        <input type="hidden" name="reports" value="[% reports %]" />
648
    [% IF ( auth_val_error ) %]
645
    [% IF ( auth_val_error ) %]
649
        <input type='hidden' name='phase' value='Edit SQL' />
646
        <input type="hidden" name="phase" value="Edit SQL" />
650
        <div class="dialog alert">
647
        <div class="dialog alert">
651
            <h3>Errors found when processing parameters for report: [% name %]</h3>
648
            <h3>[% t('Errors found when processing parameters for report:') %] [% name %]</h3>
652
            [% FOREACH auth_val_error IN auth_val_errors %]
649
            [% FOREACH auth_val_error IN auth_val_errors %]
653
                <p>
650
                <p>
654
                    <strong>[% auth_val_error.entry %]:</strong> The authorized value category (<strong>[% auth_val_error.auth_val %]</strong>)
651
                    <strong>[% auth_val_error.entry %]:</strong> [% t('The authorized value category (') %]<strong>[% auth_val_error.auth_val %]</strong>)
655
                    you selected does not exist.
652
                    [% t('you selected does not exist.') %]
656
                </p>
653
                </p>
657
            [% END %]
654
            [% END %]
658
        </div>
655
        </div>
659
        <fieldset class="action"><input type="submit" value="Edit SQL" /></fieldset>
656
        <fieldset class="action"><input type="submit" value="Edit SQL" /></fieldset>
660
    [% ELSE %]
657
    [% ELSE %]
661
        <input type='hidden' name='phase' value='Run this report' />
658
        <input type="hidden" name="phase" value="Run this report" />
662
        <h1>Enter parameters for report [% name %]:</h1>
659
        <h1>[% t('Enter parameters for report') %] [% name %]:</h1>
663
        [% IF ( notes ) %]<p>[% notes %]</p>[% END %]
660
        [% IF ( notes ) %]<p>[% notes %]</p>[% END %]
664
        <fieldset class="rows">
661
        <fieldset class="rows">
665
            <ol>
662
            <ol>
Lines 673-679 canned reports and writing custom SQL reports.</p> Link Here
673
                    <li><label for="sql_params[% loop.count %]">[% sql_param.entry %]: </label><input id="sql_params[% loop.count %]" type="text" name="sql_params" /></li>
670
                    <li><label for="sql_params[% loop.count %]">[% sql_param.entry %]: </label><input id="sql_params[% loop.count %]" type="text" name="sql_params" /></li>
674
                [% ELSE %]
671
                [% ELSE %]
675
                    <li><label for="sql_params_[% sql_param.labelid %]">[% sql_param.entry %]:</label>
672
                    <li><label for="sql_params_[% sql_param.labelid %]">[% sql_param.entry %]:</label>
676
                        <select name="[%- sql_param.input.name -%]" tabindex="1"  size="1" id="[%- sql_param.input.id -%]">
673
                        <select name="[%- sql_param.input.name -%]" tabindex="1" size="1" id="[%- sql_param.input.id -%]">
677
                        [% FOREACH value IN sql_param.input.values %]
674
                        [% FOREACH value IN sql_param.input.values %]
678
                            <option value="[%- value -%]">[%- sql_param.input.labels.$value -%]</option>
675
                            <option value="[%- value -%]">[%- sql_param.input.labels.$value -%]</option>
679
                        [% END %]
676
                        [% END %]
Lines 690-709 canned reports and writing custom SQL reports.</p> Link Here
690
687
691
[% IF ( execute ) %]
688
[% IF ( execute ) %]
692
<h1>[% name %]</h1>
689
<h1>[% name %]</h1>
693
[% IF ( notes ) %]<p><span class="label">Notes:</span> [% notes %]</p>[% END %]
690
[% IF ( notes ) %]<p><span class="label">[% t('Notes:') %]</span> [% notes %]</p>[% END %]
694
[% IF ( unlimited_total ) %]<p><span class="label">Total number of results:</span> [% unlimited_total %][% IF unlimited_total > limit %] ([% limit %] shown)[% END %].</p>[% END %]
691
[% IF ( unlimited_total ) %]<p><span class="label">[% t('Total number of results:') %]</span> [% unlimited_total %][% IF unlimited_total > limit %] ([% limit %] [% t('shown)') %][% END %].</p>[% END %]
695
<div id="sql_output" style="display:none;"><span class="label">Report SQL:</span><pre>[% sql |html %]</pre></div>
692
<div id="sql_output" style="display:none;"><span class="label">[% t('Report SQL:') %]</span><pre>[% sql |html %]</pre></div>
696
</br>
693
</br>
697
694
698
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="get" id="limitselect">
695
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="get" id="limitselect">
699
    <input type="hidden" name="phase" value="Run this report"/>
696
    <input type="hidden" name="phase" value="Run this report" />
700
    <input type="hidden" name="reports" value="[% report_id %]"/>
697
    <input type="hidden" name="reports" value="[% report_id %]" />
701
698
702
    [% FOREACH p IN sql_params %]
699
    [% FOREACH p IN sql_params %]
703
        <input type="hidden" name="sql_params" value="[% p %]"/>
700
        <input type="hidden" name="sql_params" value="[% p %]" />
704
    [% END %]
701
    [% END %]
705
702
706
    <label for="limit">Rows per page: </label>
703
    <label for="limit">[% t('Rows per page:') %] </label>
707
    <select name="limit" id="limit">
704
    <select name="limit" id="limit">
708
        [% limits = [ 10, 20, 50, 100, 200, 300, 400, 500, 1000 ] %]
705
        [% limits = [ 10, 20, 50, 100, 200, 300, 400, 500, 1000 ] %]
709
        [% FOREACH l IN limits %]
706
        [% FOREACH l IN limits %]
Lines 725-731 canned reports and writing custom SQL reports.</p> Link Here
725
                [% FOREACH header_ro IN header_row %]
722
                [% FOREACH header_ro IN header_row %]
726
                    [% IF header_ro.cell == 'itemnumber' %]
723
                    [% IF header_ro.cell == 'itemnumber' %]
727
                        <th>
724
                        <th>
728
                            [% header_ro.cell %] <button type="submit" data-toggle="tooltip" title="Send visible items to batch modification" class="btn btn-xs btn-default send_to_item_mod"><i class="fa fa-pencil"></i> Batch modify</button>
725
                            [% header_ro.cell %] <button type="submit" data-toggle="tooltip" title="[% t('Send visible items to batch modification') %]" class="btn btn-xs btn-default send_to_item_mod"><i class="fa fa-pencil"></i> [% t('Batch modify') %]</button>
729
                        </th>
726
                        </th>
730
                    [% ELSE %]
727
                    [% ELSE %]
731
                        <th>[% header_ro.cell %]</th>
728
                        <th>[% header_ro.cell %]</th>
Lines 756-801 $(document).ready(function() { Link Here
756
</script>
753
</script>
757
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" class="validated">
754
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" class="validated">
758
<fieldset class="rows">
755
<fieldset class="rows">
759
<legend>Create report from SQL</legend>
756
<legend>[% t('Create report from SQL') %]</legend>
760
<ol>
757
<ol>
761
    <li><label for="reportname" class="required">Report name:</label>
758
    <li><label for="reportname" class="required">[% t('Report name:') %]</label>
762
        [% IF ( reportname ) %]<input type="text" class="required" required="required" id="reportname" name="reportname" value="[% reportname | html %]" size="50"/>
759
        [% IF ( reportname ) %]<input type="text" class="required" required="required" id="reportname" name="reportname" value="[% reportname | html %]" size="50" />
763
        [% ELSE %]<input type="text" class="required" required="required" id="reportname" name="reportname" size="50" />[% END %] <span class="required">Required</span>
760
        [% ELSE %]<input type="text" class="required" required="required" id="reportname" name="reportname" size="50" />[% END %] <span class="required">[% t('Required') %]</span>
764
    </li>
761
    </li>
765
    [% PROCESS group_and_subgroup_selection %]
762
    [% PROCESS group_and_subgroup_selection %]
766
763
767
[% IF (public) %]
764
[% IF (public) %]
768
  <li><label for="public">Report is public:</label><select id="public" name="public"> <option value="0">No (default)</option> <option value="1" selected="selected">Yes</option> </select></li>
765
  <li><label for="public">[% t('Report is public:') %]</label><select id="public" name="public"> <option value="0">[% t('No (default)') %]</option> <option value="1" selected="selected">[% t('Yes') %]</option> </select></li>
769
[% ELSE %]
766
[% ELSE %]
770
  <li><label for="public">Report is public:</label><select id="public" name="public"> <option value="0" selected="selected">No (default)</option> <option value="1">Yes</option> </select></li>
767
  <li><label for="public">[% t('Report is public:') %]</label><select id="public" name="public"> <option value="0" selected="selected">[% t('No (default)') %]</option> <option value="1">[% t('Yes') %]</option> </select></li>
771
[% END %]
768
[% END %]
772
[% IF (usecache) %] <li>
769
[% IF (usecache) %] <li>
773
<label for="cache_expiry">Cache expiry:</label><input type="text" id="cache_expiry" name="cache_expiry" value="[% cache_expiry %]"></input>
770
<label for="cache_expiry">[% t('Cache expiry:') %]</label><input type="text" id="cache_expiry" name="cache_expiry" value="[% cache_expiry %]"></input>
774
<select id="cache_expiry_units" name="cache_expiry_units">
771
<select id="cache_expiry_units" name="cache_expiry_units">
775
<option value="seconds" selected="selected">Seconds (default)</option>
772
<option value="seconds" selected="selected">[% t('Seconds (default)') %]</option>
776
<option value="minutes">Minutes</option>
773
<option value="minutes">[% t('Minutes') %]</option>
777
<option value="hours">Hours</option>
774
<option value="hours">[% t('Hours') %]</option>
778
<option value="days">Days</option>
775
<option value="days">[% t('Days') %]</option>
779
</select>
776
</select>
780
</li>[% END %]
777
</li>[% END %]
781
    <li><label for="notes">Notes:</label> <textarea id="notes" name="notes" cols="50" rows="2">[% notes %]</textarea></li>
778
    <li><label for="notes">[% t('Notes:') %]</label> <textarea id="notes" name="notes" cols="50" rows="2">[% notes %]</textarea></li>
782
</ol>
779
</ol>
783
</fieldset>
780
</fieldset>
784
<fieldset class="rows">
781
<fieldset class="rows">
785
<legend>SQL:</legend>
782
<legend>[% t('SQL:') %]</legend>
786
<div style="margin:1em;">
783
<div style="margin:1em;">
787
<textarea id="sql" name="sql" class="required" required="required" cols="50" rows="10">[% sql %]</textarea> <span class="required">Required</span>
784
<textarea id="sql" name="sql" class="required" required="required" cols="50" rows="10">[% sql %]</textarea> <span class="required">[% t('Required') %]</span>
788
</div>
785
</div>
789
</fieldset>
786
</fieldset>
790
787
791
<fieldset class="action"><input type="hidden" name="phase" value="Save Report" />
788
<fieldset class="action"><input type="hidden" name="phase" value="Save Report" />
792
<input type="submit" name="submit" value="Save report" /> <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
789
<input type="submit" name="submit" value="Save report" /> <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">[% t('Cancel') %]</a>
793
</fieldset>
790
</fieldset>
794
</form>
791
</form>
795
[% END %]
792
[% END %]
796
793
797
[% IF saved_results %]
794
[% IF saved_results %]
798
<h1>Saved report results</h1>
795
<h1>[% t('Saved report results') %]</h1>
799
<h2>[% name %]</h2>
796
<h2>[% name %]</h2>
800
<p>[% notes %]</p>
797
<p>[% notes %]</p>
801
<table>
798
<table>
Lines 813-819 $(document).ready(function() { Link Here
813
<fieldset class="rows">
810
<fieldset class="rows">
814
    <legend>[% reportname %]</legend>
811
    <legend>[% reportname %]</legend>
815
    <ol>
812
    <ol>
816
        [% IF ( notes ) %]<li><span class="label">Notes:</span> [% notes %]</li>[% ELSE %][% END %]
813
        [% IF ( notes ) %]<li><span class="label">[% t('Notes:') %]</span> [% notes %]</li>[% ELSE %][% END %]
817
        <li><textarea id="sql">[% sql %]</textarea></li>
814
        <li><textarea id="sql">[% sql %]</textarea></li>
818
    </ol>
815
    </ol>
819
</fieldset>
816
</fieldset>
Lines 824-830 $(document).ready(function() { Link Here
824
</br>
821
</br>
825
<div id="report_updated">
822
<div id="report_updated">
826
    <div class="dialog message">
823
    <div class="dialog message">
827
        <p>Your report "[% reportname %]" has been saved</p>
824
        <p>[% t('Your report &#34;') %][% reportname %][% t('&#34; has been saved') %]</p>
828
    </div>
825
    </div>
829
</div>
826
</div>
830
[% END %]
827
[% END %]
Lines 833-871 $(document).ready(function() { Link Here
833
[% IF ( editsql ) %]
830
[% IF ( editsql ) %]
834
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" class="validated">
831
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" class="validated">
835
<input type="hidden" name="phase" value="Update SQL" />
832
<input type="hidden" name="phase" value="Update SQL" />
836
<input type="hidden" name="id" value="[% id %]"/>
833
<input type="hidden" name="id" value="[% id %]" />
837
<fieldset class="rows">
834
<fieldset class="rows">
838
<legend>Edit SQL report</legend>
835
<legend>[% t('Edit SQL report') %]</legend>
839
<ol>
836
<ol>
840
<li><label for="reportname" class="required">Report name: </label><input type="text" id="reportname" name="reportname" value="[% reportname | html %]" size="50" class="required" required="required" /> <span class="required">Required</span></li>
837
<li><label for="reportname" class="required">[% t('Report name:') %] </label><input type="text" id="reportname" name="reportname" value="[% reportname | html %]" size="50" class="required" required="required" /> <span class="required">[% t('Required') %]</span></li>
841
[% PROCESS group_and_subgroup_selection %]
838
[% PROCESS group_and_subgroup_selection %]
842
[% IF (public) %]
839
[% IF (public) %]
843
  <li><label for="public">Report is public:</label><select id="public" name="public"> <option value="0">No (default)</option> <option value="1" selected="selected">Yes</option> </select></li>
840
  <li><label for="public">[% t('Report is public:') %]</label><select id="public" name="public"> <option value="0">[% t('No (default)') %]</option> <option value="1" selected="selected">[% t('Yes') %]</option> </select></li>
844
[% ELSE %]
841
[% ELSE %]
845
  <li><label for="public">Report is public:</label><select id="public" name="public"> <option value="0" selected="selected">No (default)</option> <option value="1">Yes</option> </select></li>
842
  <li><label for="public">[% t('Report is public:') %]</label><select id="public" name="public"> <option value="0" selected="selected">[% t('No (default)') %]</option> <option value="1">[% t('Yes') %]</option> </select></li>
846
[% END %]
843
[% END %]
847
[% IF (usecache) %] <li>
844
[% IF (usecache) %] <li>
848
<label for="cache_expiry">Cache expiry:</label><input type="text" id="cache_expiry" name="cache_expiry" value="[% cache_expiry %]"></input>
845
<label for="cache_expiry">[% t('Cache expiry:') %]</label><input type="text" id="cache_expiry" name="cache_expiry" value="[% cache_expiry %]"></input>
849
<select id="cache_expiry_units" name="cache_expiry_units">
846
<select id="cache_expiry_units" name="cache_expiry_units">
850
<option value="seconds">Seconds (default)</option>
847
<option value="seconds">[% t('Seconds (default)') %]</option>
851
<option value="minutes">Minutes</option>
848
<option value="minutes">[% t('Minutes') %]</option>
852
<option value="hours">Hours</option>
849
<option value="hours">[% t('Hours') %]</option>
853
<option value="days">Days</option>
850
<option value="days">[% t('Days') %]</option>
854
</select>
851
</select>
855
</li>[% END %]
852
</li>[% END %]
856
<li><label for="notes">Notes:</label><textarea id="notes" name="notes" cols="50" rows="2">[% notes %]</textarea></li>
853
<li><label for="notes">[% t('Notes:') %]</label><textarea id="notes" name="notes" cols="50" rows="2">[% notes %]</textarea></li>
857
</ol>
854
</ol>
858
</fieldset>
855
</fieldset>
859
856
860
<fieldset class="rows">
857
<fieldset class="rows">
861
    <legend>SQL:</legend>
858
    <legend>[% t('SQL:') %]</legend>
862
    <div style="margin:1em;">
859
    <div style="margin:1em;">
863
        <textarea id="sql" name="sql" class="required" required="required" cols="50" rows="10">[% sql %]</textarea> <span class="required">Required</span>
860
        <textarea id="sql" name="sql" class="required" required="required" cols="50" rows="10">[% sql %]</textarea> <span class="required">[% t('Required') %]</span>
864
    </div>
861
    </div>
865
</fieldset>
862
</fieldset>
866
863
867
<fieldset class="action">
864
<fieldset class="action">
868
<input type="submit" name="submit" value="Update SQL" /> <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
865
<input type="submit" name="submit" value="Update SQL" /> <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">[% t('Cancel') %]</a>
869
</fieldset>
866
</fieldset>
870
</form>
867
</form>
871
868
Lines 875-891 $(document).ready(function() { Link Here
875
[% IF ( errors ) %]
872
[% IF ( errors ) %]
876
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
873
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
877
<div class="dialog alert">
874
<div class="dialog alert">
878
<b>The following error was encountered:</b><br />
875
<b>[% t('The following error was encountered:') %]</b><br />
879
[% FOREACH error IN errors %]
876
[% FOREACH error IN errors %]
880
    [% IF ( error.sqlerr ) %]This report contains the SQL keyword <b>[% error.sqlerr %]</b>.
877
    [% IF ( error.sqlerr ) %][% t('This report contains the SQL keyword') %] <b>[% error.sqlerr %]</b>.
881
    <br />Use of this keyword is not allowed in Koha reports due to security and data integrity risks. Only SELECT queries are allowed.
878
    <br />[% t('Use of this keyword is not allowed in Koha reports due to security and data integrity risks. Only SELECT queries are allowed.') %]
882
    <br />Please return to the &quot;Saved Reports&quot; screen and delete this report or retry creating a new one.
879
    <br />[% t('Please return to the &#34;Saved Reports&#34; screen and delete this report or retry creating a new one.') %]
883
    [% ELSIF ( error.queryerr ) %]The database returned the following error: <br />[% error.queryerr %]<br />Please check the log for further details.
880
    [% ELSIF ( error.queryerr ) %][% t('The database returned the following error:') %] <br />[% error.queryerr %]<br />[% t('Please check the log for further details.') %]
884
    [% ELSIF ( error.cache_expiry ) %]Please select a cache expiry less than 30 days.
881
    [% ELSIF ( error.cache_expiry ) %][% t('Please select a cache expiry less than 30 days.') %]
885
    [% ELSE %]
882
    [% ELSE %]
886
    [% END %]
883
    [% END %]
887
    <div id="onerror_actions">
884
    <div id="onerror_actions">
888
        <a href="#" class="button goback">Return to previous page</a>
885
        <a href="#" class="button goback">[% t('Return to previous page') %]</a>
889
    </div>
886
    </div>
890
[% END %]
887
[% END %]
891
</div>
888
</div>
Lines 904-922 $(document).ready(function() { Link Here
904
  <input type="hidden" name="phase" value="Use saved" />
901
  <input type="hidden" name="phase" value="Use saved" />
905
  <input type="hidden" name="filter_set" value="1" />
902
  <input type="hidden" name="filter_set" value="1" />
906
  <fieldset class="brief">
903
  <fieldset class="brief">
907
  <h3>Filter</h3>
904
  <h3>[% t('Filter') %]</h3>
908
  <ol>
905
  <ol>
909
    <li><label for="filter_date">Date:</label> <input type="text" id="filter_date" name="filter_date" size="10" value="[% filters.date %]" class="datepicker" />
906
    <li><label for="filter_date">[% t('Date:') %]</label> <input type="text" id="filter_date" name="filter_date" size="10" value="[% filters.date %]" class="datepicker" />
910
    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
907
    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
911
908
912
    </li>
909
    </li>
913
    <li><label for="filter_author">Author:</label> <input type="text" id="filter_author" name="filter_author" value="[% filters.author %]" size="16" /></li>
910
    <li><label for="filter_author">[% t('Author:') %]</label> <input type="text" id="filter_author" name="filter_author" value="[% filters.author %]" size="16" /></li>
914
    <li><label for="filter_keyword">Keyword:</label> <input type="text" id="filter_keyword" name="filter_keyword" value="[% filters.keyword %]" size="16" /></li>
911
    <li><label for="filter_keyword">[% t('Keyword:') %]</label> <input type="text" id="filter_keyword" name="filter_keyword" value="[% filters.keyword %]" size="16" /></li>
915
  </ol>
912
  </ol>
916
  </fieldset>
913
  </fieldset>
917
  <fieldset class="action">
914
  <fieldset class="action">
918
    <input type="submit" value="Apply filter" />
915
    <input type="submit" value="Apply filter" />
919
    <a id="resetReportsFilter" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved&clear_filters=1">Clear</a>
916
    <a id="resetReportsFilter" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved&clear_filters=1">[% t('Clear') %]</a>
920
  </fieldset>
917
  </fieldset>
921
</form>
918
</form>
922
</div>
919
</div>
Lines 1185-1196 $(document).ready(function() { Link Here
1185
1182
1186
[% BLOCK group_and_subgroup_selection %]
1183
[% BLOCK group_and_subgroup_selection %]
1187
    <li id="group">
1184
    <li id="group">
1188
        <label>Report group:</label>
1185
        <label>[% t('Report group:') %]</label>
1189
        <input type="radio" name="select_or_create_group"
1186
        <input type="radio" name="select_or_create_group" id="select_group" checked="checked" />
1190
            id="select_group" checked="checked" />
1187
        <label for="select_group" style="float:none">[% t('Select') %]</label>
1191
        <label for="select_group" style="float:none">Select</label>
1192
        <select name="group" id="group_select">
1188
        <select name="group" id="group_select">
1193
            <option value="">(None)</option>
1189
            <option value="">[% t('(None)') %]</option>
1194
            [% FOREACH group IN groups_with_subgroups %]
1190
            [% FOREACH group IN groups_with_subgroups %]
1195
                [% IF (group.selected) %]
1191
                [% IF (group.selected) %]
1196
                    <option value="[% group.id %]" selected="selected">
1192
                    <option value="[% group.id %]" selected="selected">
Lines 1202-1218 $(document).ready(function() { Link Here
1202
            [% END %]
1198
            [% END %]
1203
        </select>
1199
        </select>
1204
        <input type="radio" name="select_or_create_group" id="create_group" />
1200
        <input type="radio" name="select_or_create_group" id="create_group" />
1205
        <label for="create_group" style="float:none">or create:</label>
1201
        <label for="create_group" style="float:none">[% t('or create:') %]</label>
1206
        <input type="text" name="group" id="group_input" title="Group code" placeholder="Code" />
1202
        <input type="text" name="group" id="group_input" title="[% t('Group code') %]" placeholder="[% t('Code') %]" />
1207
        <input type="text" name="groupdesc" id="groupdesc_input" title="Group name" placeholder="Name" />
1203
        <input type="text" name="groupdesc" id="groupdesc_input" title="[% t('Group name') %]" placeholder="[% t('Name') %]" />
1208
    </li>
1204
    </li>
1209
    <li id="subgroup">
1205
    <li id="subgroup">
1210
        <label>Report subgroup:</label>
1206
        <label>[% t('Report subgroup:') %]</label>
1211
        <input type="radio" name="select_or_create_subgroup"
1207
        <input type="radio" name="select_or_create_subgroup" id="select_subgroup" checked="checked" />
1212
            id="select_subgroup" checked="checked" />
1208
        <label for="select_subgroup" style="float:none">[% t('Select') %]</label>
1213
        <label for="select_subgroup" style="float:none">Select</label>
1214
        <select name="subgroup" id="subgroup_select">
1209
        <select name="subgroup" id="subgroup_select">
1215
            <option value="">(None)</option>
1210
            <option value="">[% t('(None)') %]</option>
1216
            [% FOREACH group IN groups_with_subgroups %]
1211
            [% FOREACH group IN groups_with_subgroups %]
1217
                [% IF (group.selected) %]
1212
                [% IF (group.selected) %]
1218
                    [% FOREACH subgroup IN group.subgroups %]
1213
                    [% FOREACH subgroup IN group.subgroups %]
Lines 1227-1236 $(document).ready(function() { Link Here
1227
                [% END %]
1222
                [% END %]
1228
            [% END %]
1223
            [% END %]
1229
        </select>
1224
        </select>
1230
        <input type="radio" name="select_or_create_subgroup"
1225
        <input type="radio" name="select_or_create_subgroup" id="create_subgroup" />
1231
            id="create_subgroup" />
1226
        <label for="create_subgroup" style="float:none">[% t('or create') %]</label>
1232
        <label for="create_subgroup" style="float:none">or create</label>
1227
        <input type="text" name="subgroup" id="subgroup_input" title="[% t('Subgroup code') %]" placeholder="[% t('Code') %]" />
1233
        <input type="text" name="subgroup" id="subgroup_input" title="Subgroup code" placeholder="Code" />
1228
        <input type="text" name="subgroupdesc" id="subgroupdesc_input" title="[% t('Subgroup name') %]" placeholder="[% t('Name') %]" />
1234
        <input type="text" name="subgroupdesc" id="subgroupdesc_input" title="Subgroup name" placeholder="Name" />
1235
    </li>
1229
    </li>
1236
[% END %]
1230
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt (-39 / +40 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
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 &rsaquo; Average loan time</title>
5
<title>[% t('Koha › Reports › Average loan time') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]&rsaquo; <a href="/cgi-bin/koha/reports/issues_avg_stats.pl">Average loan time</a> &rsaquo; Results [% ELSE %]&rsaquo; Average loan time[% END %]</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% IF ( do_it ) %]› <a href="/cgi-bin/koha/reports/issues_avg_stats.pl">[% t('Average loan time') %]</a> [% t('› Results') %] [% ELSE %][% t('› Average loan time') %][% END %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
   
16
   
Lines 19-27 Link Here
19
20
20
[% IF ( do_it ) %]
21
[% IF ( do_it ) %]
21
	[% FOREACH mainloo IN mainloop %]
22
	[% FOREACH mainloo IN mainloop %]
22
        <h1>Average checkout period</h1>
23
        <h1>[% t('Average checkout period') %]</h1>
23
		[% IF ( mainloo.loopfilter ) %]
24
		[% IF ( mainloo.loopfilter ) %]
24
            <p>Filtered on:</p>
25
            <p>[% t('Filtered on:') %]</p>
25
			[% FOREACH loopfilte IN mainloo.loopfilter %]
26
			[% FOREACH loopfilte IN mainloo.loopfilter %]
26
					<p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %]  [% END %]</p>
27
					<p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %]  [% END %]</p>
27
			[% END %]
28
			[% END %]
Lines 33-39 Link Here
33
				[% FOREACH loopco IN mainloo.loopcol %]
34
				[% FOREACH loopco IN mainloo.loopcol %]
34
					<th>[% loopco.coltitle %]</th>
35
					<th>[% loopco.coltitle %]</th>
35
				[% END %]
36
				[% END %]
36
				<th>TOTAL</th>
37
				<th>[% t('TOTAL') %]</th>
37
			</tr>
38
			</tr>
38
				[% FOREACH loopro IN mainloo.looprow %]
39
				[% FOREACH loopro IN mainloo.looprow %]
39
					<tr>
40
					<tr>
Lines 50-56 Link Here
50
					</tr>
51
					</tr>
51
				[% END %]
52
				[% END %]
52
				<tr>
53
				<tr>
53
					<th>TOTAL</th>
54
					<th>[% t('TOTAL') %]</th>
54
					[% FOREACH loopfoote IN mainloo.loopfooter %]
55
					[% FOREACH loopfoote IN mainloo.loopfooter %]
55
						<th>
56
						<th>
56
							[% loopfoote.totalcol %]
57
							[% loopfoote.totalcol %]
Lines 64-124 Link Here
64
65
65
	<form method="post" action="/cgi-bin/koha/reports/issues_avg_stats.pl">
66
	<form method="post" action="/cgi-bin/koha/reports/issues_avg_stats.pl">
66
	<fieldset class="rows">
67
	<fieldset class="rows">
67
	<legend>Average checkout period statistics</legend>
68
	<legend>[% t('Average checkout period statistics') %]</legend>
68
	<table>
69
	<table>
69
		<thead>
70
		<thead>
70
			<tr>
71
			<tr>
71
			<th>Title</th>
72
			<th>[% t('Title') %]</th>
72
			<th>Row</th>
73
			<th>[% t('Row') %]</th>
73
			<th>Column</th>
74
			<th>[% t('Column') %]</th>
74
			<th>Filter</th>
75
			<th>[% t('Filter') %]</th>
75
			</tr>
76
			</tr>
76
		</thead>
77
		</thead>
77
		<tbody>
78
		<tbody>
78
			<tr class="hilighted">
79
			<tr class="hilighted">
79
				<td>Checkout date</td>
80
				<td>[% t('Checkout date') %]</td>
80
				<td><input type="radio" name="Line" value="timestamp" /></td>
81
				<td><input type="radio" name="Line" value="timestamp" /></td>
81
				<td><input type="radio" name="Column" value="timestamp" /></td>
82
				<td><input type="radio" name="Column" value="timestamp" /></td>
82
				<td > <label for="from">From</label> <input type="text" size="10" id="from" name="Filter" />
83
				<td> <label for="from">[% t('From') %]</label> <input type="text" size="10" id="from" name="Filter" />
83
					<label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" />
84
					<label for="to">[% t('To') %]</label> <input size="10" id="to" name="Filter" value="" type="text" />
84
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
85
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
85
				</td>
86
				</td>
86
			</tr>
87
			</tr>
87
			<tr class="hilighted"> 
88
			<tr class="hilighted"> 
88
				<td>&nbsp;</td>
89
				<td> </td>
89
				<td colspan="2">by <select name="IssueDisplay">
90
				<td colspan="2">[% t('by') %] <select name="IssueDisplay">
90
					<option value=""> </option>
91
					<option value=""> </option>
91
					<option value ="1">Day</option>
92
					<option value="1">[% t('Day') %]</option>
92
					<option value ="2">Month</option>
93
					<option value="2">[% t('Month') %]</option>
93
					<option value ="3">Year</option>
94
					<option value="3">[% t('Year') %]</option>
94
					</select>
95
					</select>
95
					
96
					
96
				</td>
97
				</td>
97
				<td><!--Preparing Month and Day Selection--><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td>
98
				<td><!--Preparing Month and Day Selection--><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td>
98
			</tr>
99
			</tr>
99
			<tr>
100
			<tr>
100
				<td>Returns</td>
101
				<td>[% t('Returns') %]</td>
101
				<td><input type="radio" name="Line" value="returndate" /></td>
102
				<td><input type="radio" name="Line" value="returndate" /></td>
102
				<td><input type="radio" name="Column" value="returndate" /></td>
103
				<td><input type="radio" name="Column" value="returndate" /></td>
103
				<td > <label for="fromRO">From</label> <input type="text" size="10" id="fromRO" name="Filter" />
104
				<td> <label for="fromRO">[% t('From') %]</label> <input type="text" size="10" id="fromRO" name="Filter" />
104
					<label for="toRO">To</label> <input type="text" size="10" id="toRO" name="Filter" value="" />
105
					<label for="toRO">[% t('To') %]</label> <input type="text" size="10" id="toRO" name="Filter" value="" />
105
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
106
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
106
				</td>
107
				</td>
107
			</tr>
108
			</tr>
108
			<tr> 
109
			<tr> 
109
				<td>&nbsp;</td>
110
				<td> </td>
110
				<td colspan="2">by <select name="ReturnDisplay">
111
				<td colspan="2">[% t('by') %] <select name="ReturnDisplay">
111
					<option value=""> </option>
112
					<option value=""> </option>
112
					<option value ="1">Day</option>
113
					<option value="1">[% t('Day') %]</option>
113
					<option value ="2">Month</option>
114
					<option value="2">[% t('Month') %]</option>
114
					<option value ="3">Year</option>
115
					<option value="3">[% t('Year') %]</option>
115
					</select>
116
					</select>
116
					
117
					
117
				</td>
118
				</td>
118
				<td><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td>
119
				<td><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td>
119
			</tr>
120
			</tr>
120
			<tr class="hilighted">
121
			<tr class="hilighted">
121
				<td>Patron category</td>
122
				<td>[% t('Patron category') %]</td>
122
				<td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
123
				<td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
123
				<td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
124
				<td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
124
                <td>
125
                <td>
Lines 131-137 Link Here
131
                </td>
132
                </td>
132
			</tr>
133
			</tr>
133
			<tr>
134
			<tr>
134
				<td>Item type</td>
135
				<td>[% t('Item type') %]</td>
135
				<td><input type="radio" name="Line" value="itemtype" /></td>
136
				<td><input type="radio" name="Line" value="itemtype" /></td>
136
				<td><input type="radio" name="Column" value="itemtype" /></td>
137
				<td><input type="radio" name="Column" value="itemtype" /></td>
137
                <td>
138
                <td>
Lines 144-150 Link Here
144
                </td>
145
                </td>
145
			</tr>
146
			</tr>
146
			<tr class="hilighted">
147
			<tr class="hilighted">
147
				<td>Library</td>
148
				<td>[% t('Library') %]</td>
148
				<td><input type="radio" name="Line" value="branchcode" /></td>
149
				<td><input type="radio" name="Line" value="branchcode" /></td>
149
				<td><input type="radio" name="Column" value="branchcode" /></td>
150
				<td><input type="radio" name="Column" value="branchcode" /></td>
150
                <td>
151
                <td>
Lines 156-162 Link Here
156
			</tr>
157
			</tr>
157
			[% IF ( hassort1 ) %]
158
			[% IF ( hassort1 ) %]
158
				<tr class="hilighted"> 
159
				<tr class="hilighted"> 
159
					<td>Sort1</td>
160
					<td>[% t('Sort1') %]</td>
160
					<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
161
					<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
161
					<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
162
					<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
162
                    <td>
163
                    <td>
Lines 171-177 Link Here
171
			[% END %]
172
			[% END %]
172
			[% IF ( hassort2 ) %]
173
			[% IF ( hassort2 ) %]
173
				[% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %] 
174
				[% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %] 
174
					<td>Sort2</td>
175
					<td>[% t('Sort2') %]</td>
175
					<td><input type="radio" name="Line" value="borrowers.sort2" /></td>
176
					<td><input type="radio" name="Line" value="borrowers.sort2" /></td>
176
					<td><input type="radio" name="Column" value="borrowers.sort2" /></td>
177
					<td><input type="radio" name="Column" value="borrowers.sort2" /></td>
177
                    <td>
178
                    <td>
Lines 189-205 Link Here
189
	
190
	
190
	
191
	
191
	<fieldset class="rows">
192
	<fieldset class="rows">
192
	<legend>Output</legend>
193
	<legend>[% t('Output') %]</legend>
193
    <ol>
194
    <ol>
194
        <li>
195
        <li>
195
            <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
196
            <label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
196
        </li>
197
        </li>
197
        <li>
198
        <li>
198
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
199
            <label for="outputfile">[% t('To a file:') %]</label> <input type="radio" name="output" value="file" id="outputfile" />
199
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
200
            <label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
200
            <label class="inline" for="MIME">Into an application: </label>
201
            <label class="inline" for="MIME">[% t('Into an application:') %] </label>
201
            <select name="MIME"  size="1" id="MIME">
202
            <select name="MIME" size="1" id="MIME">
202
                <option value="CSV">CSV</option>
203
                <option value="CSV">[% t('CSV') %]</option>
203
            </select>
204
            </select>
204
            <select name="sep" id="sep" size="1">
205
            <select name="sep" id="sep" size="1">
205
            [% FOREACH value IN CGIsepChoice.values.sort() %]
206
            [% FOREACH value IN CGIsepChoice.values.sort() %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt (-91 / +92 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
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 &rsaquo; Circulation statistics [% IF ( do_it ) %]&rsaquo; Results[% END %]</title>
5
<title>[% t('Koha › Reports › Circulation statistics') %] [% IF ( do_it ) %][% t('› Results') %][% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css">
7
<style type="text/css">
7
	.sql {display:none;}
8
	.sql {display:none;}
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]&rsaquo; <a href="/cgi-bin/koha/reports/issues_stats.pl">Circulation statistics</a> &rsaquo; Results [% ELSE %]&rsaquo; Circulation statistics[% END %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% IF ( do_it ) %]› <a href="/cgi-bin/koha/reports/issues_stats.pl">[% t('Circulation statistics') %]</a> [% t('› Results') %] [% ELSE %][% t('› Circulation statistics') %][% END %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
19
Lines 22-55 Link Here
22
23
23
[% IF ( do_it ) %]
24
[% IF ( do_it ) %]
24
    [% FOREACH mainloo IN mainloop %]
25
    [% FOREACH mainloo IN mainloop %]
25
        <h1>Circulation statistics</h1>
26
        <h1>[% t('Circulation statistics') %]</h1>
26
        [% IF ( mainloo.loopfilter ) %]
27
        [% IF ( mainloo.loopfilter ) %]
27
            <p>Filtered on:</p>
28
            <p>[% t('Filtered on:') %]</p>
28
            <ul>
29
            <ul>
29
            [% FOREACH loopfilte IN mainloo.loopfilter %]
30
            [% FOREACH loopfilte IN mainloo.loopfilter %]
30
                [% IF ( loopfilte.err ) %]
31
                [% IF ( loopfilte.err ) %]
31
                    <li class="error">Error:
32
                    <li class="error">[% t('Error:') %]
32
                [% ELSIF ( loopfilte.sql ) %]
33
                [% ELSIF ( loopfilte.sql ) %]
33
                    <li class="sql">
34
                    <li class="sql">
34
                [% ELSE %]
35
                [% ELSE %]
35
                    <li>
36
                    <li>
36
                [% END %]
37
                [% END %]
37
                [% SWITCH loopfilte.crit %]
38
                [% SWITCH loopfilte.crit %]
38
                    [% CASE 0 %]Period From
39
                    [% CASE 0 %][% t('Period From') %]
39
                    [% CASE 1 %]Period To
40
                    [% CASE 1 %][% t('Period To') %]
40
                    [% CASE 2 %]Patron Category =
41
                    [% CASE 2 %][% t('Patron Category =') %]
41
                    [% CASE 3 %]Item Type =
42
                    [% CASE 3 %][% t('Item Type =') %]
42
                    [% CASE 4 %]Issuing library =
43
                    [% CASE 4 %][% t('Issuing library =') %]
43
                    [% CASE 5 %]Collection =
44
                    [% CASE 5 %][% t('Collection =') %]
44
                    [% CASE 6 %]Location =
45
                    [% CASE 6 %][% t('Location =') %]
45
                    [% CASE 7 %]Item call number &gt;=
46
                    [% CASE 7 %][% t('Item call number &gt;=') %]
46
                    [% CASE 8 %]Item call number &lt;
47
                    [% CASE 8 %][% t('Item call number &lt;') %]
47
                    [% CASE 9 %]Patron sort1 =
48
                    [% CASE 9 %][% t('Patron sort1 =') %]
48
                    [% CASE 10 %]Patron sort2 =
49
                    [% CASE 10 %][% t('Patron sort2 =') %]
49
                    [% CASE 11 %]Home library =
50
                    [% CASE 11 %][% t('Home library =') %]
50
                    [% CASE 12 %]Holding library =
51
                    [% CASE 12 %][% t('Holding library =') %]
51
                    [% CASE 13 %]Patron library =
52
                    [% CASE 13 %][% t('Patron library =') %]
52
                    [% CASE 14 %]Issuing library =
53
                    [% CASE 14 %][% t('Issuing library =') %]
53
                    [% CASE %][% loopfilte.crit %] =
54
                    [% CASE %][% loopfilte.crit %] =
54
                [% END %]
55
                [% END %]
55
                [% loopfilte.filter %]
56
                [% loopfilte.filter %]
Lines 64-70 Link Here
64
                [% FOREACH loopco IN mainloo.loopcol %]
65
                [% FOREACH loopco IN mainloo.loopcol %]
65
                    <th>[% loopco.coltitle_display |html %]</th>
66
                    <th>[% loopco.coltitle_display |html %]</th>
66
                [% END %]
67
                [% END %]
67
                <th>TOTAL</th>
68
                <th>[% t('TOTAL') %]</th>
68
                </tr>
69
                </tr>
69
                [% FOREACH loopro IN mainloo.looprow %]
70
                [% FOREACH loopro IN mainloo.looprow %]
70
                    <tr>
71
                    <tr>
Lines 76-82 Link Here
76
                    </tr>
77
                    </tr>
77
                [% END %]
78
                [% END %]
78
            <tr>
79
            <tr>
79
                <th>TOTAL</th>
80
                <th>[% t('TOTAL') %]</th>
80
                [% FOREACH loopfoote IN mainloo.loopfooter %]
81
                [% FOREACH loopfoote IN mainloo.loopfooter %]
81
                <th>[% loopfoote.totalcol %]</th>
82
                <th>[% loopfoote.totalcol %]</th>
82
                [% END %]
83
                [% END %]
Lines 88-157 Link Here
88
89
89
    <form method="post" action="/cgi-bin/koha/reports/issues_stats.pl">
90
    <form method="post" action="/cgi-bin/koha/reports/issues_stats.pl">
90
    <fieldset class="rows">
91
    <fieldset class="rows">
91
	<legend>Circulation statistics</legend><table>
92
	<legend>[% t('Circulation statistics') %]</legend><table>
92
        <thead>
93
        <thead>
93
            <tr>
94
            <tr>
94
                <th>Title</th>
95
                <th>[% t('Title') %]</th>
95
                <th>Row</th>
96
                <th>[% t('Row') %]</th>
96
                <th>Column</th>
97
                <th>[% t('Column') %]</th>
97
                <th>Filter</th>
98
                <th>[% t('Filter') %]</th>
98
            </tr>
99
            </tr>
99
        </thead>
100
        </thead>
100
        <tbody>
101
        <tbody>
101
            <tr>
102
            <tr>
102
                <td>Period</td>
103
                <td>[% t('Period') %]</td>
103
                <td><input type="radio" name="Line" value="datetime" /></td>
104
                <td><input type="radio" name="Line" value="datetime" /></td>
104
                <td><input type="radio" name="Column" value="datetime" /></td>
105
                <td><input type="radio" name="Column" value="datetime" /></td>
105
                <td><label for="from">From</label> <input type="text" size="10" id="from" name="Filter" class="datepickerfrom" />
106
                <td><label for="from">[% t('From') %]</label> <input type="text" size="10" id="from" name="Filter" class="datepickerfrom" />
106
                    <label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" class="datepickerto" />
107
                    <label for="to">[% t('To') %]</label> <input size="10" id="to" name="Filter" value="" type="text" class="datepickerto" />
107
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
108
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
108
                    </td>
109
                    </td>
109
                </tr>
110
                </tr>
110
            <tr>
111
            <tr>
111
                <td><label for="PeriodTypeSel">Type:</label><select name="PeriodTypeSel" id="PeriodTypeSel">
112
                <td><label for="PeriodTypeSel">[% t('Type:') %]</label><select name="PeriodTypeSel" id="PeriodTypeSel">
112
                    <option value ="issue">Checkout</option>
113
                    <option value="issue">[% t('Checkout') %]</option>
113
                    <option value ="renew">Renewal</option>
114
                    <option value="renew">[% t('Renewal') %]</option>
114
                    <option value ="return">Checkin</option>
115
                    <option value="return">[% t('Checkin') %]</option>
115
                    <option value ="localuse">Local Use</option>
116
                    <option value="localuse">[% t('Local Use') %]</option>
116
                    </select></td>
117
                    </select></td>
117
                <td colspan="2"><label for="DisplayBy">group by</label> <select name="DisplayBy" id="DisplayBy">
118
                <td colspan="2"><label for="DisplayBy">[% t('group by') %]</label> <select name="DisplayBy" id="DisplayBy">
118
                    <option value="">None</option>
119
                    <option value="">[% t('None') %]</option>
119
                    <option value ="4">Hour</option>
120
                    <option value="4">[% t('Hour') %]</option>
120
                    <option value ="1">Day of week</option>
121
                    <option value="1">[% t('Day of week') %]</option>
121
                    <option value ="2">Month</option>
122
                    <option value="2">[% t('Month') %]</option>
122
                    <option value ="3">Year</option>
123
                    <option value="3">[% t('Year') %]</option>
123
                    </select>
124
                    </select>
124
                </td>
125
                </td>
125
                <td>
126
                <td>
126
                    <label for="PeriodDaySel">Select day: </label><select name="PeriodDaySel" id="PeriodDaySel">
127
                    <label for="PeriodDaySel">[% t('Select day:') %] </label><select name="PeriodDaySel" id="PeriodDaySel">
127
                    <option value =""></option>
128
                    <option value=""></option>
128
                    <option value ="Monday">Monday</option>
129
                    <option value="Monday">[% t('Monday') %]</option>
129
                    <option value ="Tuesday">Tuesday</option>
130
                    <option value="Tuesday">[% t('Tuesday') %]</option>
130
                    <option value ="Wednesday">Wednesday</option>
131
                    <option value="Wednesday">[% t('Wednesday') %]</option>
131
                    <option value ="Thursday">Thursday</option>
132
                    <option value="Thursday">[% t('Thursday') %]</option>
132
                    <option value ="Friday">Friday</option>
133
                    <option value="Friday">[% t('Friday') %]</option>
133
                    <option value ="Saturday">Saturday</option>
134
                    <option value="Saturday">[% t('Saturday') %]</option>
134
                    <option value ="Sunday">Sunday</option>
135
                    <option value="Sunday">[% t('Sunday') %]</option>
135
                    </select>
136
                    </select>
136
                    <label for="PeriodMonthSel">Select month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
137
                    <label for="PeriodMonthSel">[% t('Select month:') %]</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
137
                    <option value =""></option>
138
                    <option value=""></option>
138
                    <option value ="January">January</option>
139
                    <option value="January">[% t('January') %]</option>
139
                    <option value ="February">February</option>
140
                    <option value="February">[% t('February') %]</option>
140
                    <option value ="March">March</option>
141
                    <option value="March">[% t('March') %]</option>
141
                    <option value ="April">April</option>
142
                    <option value="April">[% t('April') %]</option>
142
                    <option value ="May">May</option>
143
                    <option value="May">[% t('May') %]</option>
143
                    <option value ="June">June</option>
144
                    <option value="June">[% t('June') %]</option>
144
                    <option value ="July">July</option>
145
                    <option value="July">[% t('July') %]</option>
145
                    <option value ="August">August</option>
146
                    <option value="August">[% t('August') %]</option>
146
                    <option value ="September">September</option>
147
                    <option value="September">[% t('September') %]</option>
147
                    <option value ="October">October</option>
148
                    <option value="October">[% t('October') %]</option>
148
                    <option value ="November">November</option>
149
                    <option value="November">[% t('November') %]</option>
149
                    <option value ="December">December</option>
150
                    <option value="December">[% t('December') %]</option>
150
                    </select>
151
                    </select>
151
                </td>
152
                </td>
152
        </tr>
153
        </tr>
153
        <tr>
154
        <tr>
154
            <td>Patron category</td>
155
            <td>[% t('Patron category') %]</td>
155
            <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
156
            <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
156
            <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
157
            <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
157
           <td><select name="Filter" id="borcat">
158
           <td><select name="Filter" id="borcat">
Lines 163-169 Link Here
163
             </td> 
164
             </td> 
164
        </tr>
165
        </tr>
165
        <tr>
166
        <tr>
166
            <td>Item type</td>
167
            <td>[% t('Item type') %]</td>
167
            <td><input type="radio" name="Line" value="itemtype" /></td>
168
            <td><input type="radio" name="Line" value="itemtype" /></td>
168
            <td><input type="radio" name="Column" value="itemtype" /></td>
169
            <td><input type="radio" name="Column" value="itemtype" /></td>
169
           <td><select name="Filter" id="itemtype">
170
           <td><select name="Filter" id="itemtype">
Lines 175-181 Link Here
175
             </td> 
176
             </td> 
176
        </tr>
177
        </tr>
177
        <tr>
178
        <tr>
178
            <td>Issuing library</td>
179
            <td>[% t('Issuing library') %]</td>
179
            <td><input type="radio" name="Line" value="branch" /></td>
180
            <td><input type="radio" name="Line" value="branch" /></td>
180
            <td><input type="radio" name="Column" value="branch" /></td>
181
            <td><input type="radio" name="Column" value="branch" /></td>
181
            <td><select name="Filter" id="branch">
182
            <td><select name="Filter" id="branch">
Lines 185-192 Link Here
185
             </td> 
186
             </td> 
186
        </tr>
187
        </tr>
187
        <tr>
188
        <tr>
188
            <td>Collection</td>
189
            <td>[% t('Collection') %]</td>
189
            <td><input type="radio" name="Line"   value="items.ccode" /></td>
190
            <td><input type="radio" name="Line" value="items.ccode" /></td>
190
            <td><input type="radio" name="Column" value="items.ccode" /></td>
191
            <td><input type="radio" name="Column" value="items.ccode" /></td>
191
            <td><select name="Filter" id="ccode">
192
            <td><select name="Filter" id="ccode">
192
                <option value=""> </option>
193
                <option value=""> </option>
Lines 197-203 Link Here
197
            </td>
198
            </td>
198
        </tr>
199
        </tr>
199
        <tr>
200
        <tr>
200
            <td>Shelving location</td>
201
            <td>[% t('Shelving location') %]</td>
201
            <td><input type="radio" name="Line" value="items.location" /></td>
202
            <td><input type="radio" name="Line" value="items.location" /></td>
202
            <td><input type="radio" name="Column" value="items.location" /></td>
203
            <td><input type="radio" name="Column" value="items.location" /></td>
203
            <td><select name="Filter" id="location">
204
            <td><select name="Filter" id="location">
Lines 209-246 Link Here
209
            </td> 
210
            </td> 
210
        </tr>
211
        </tr>
211
        <tr>
212
        <tr>
212
            <td>Item call number</td>
213
            <td>[% t('Item call number') %]</td>
213
            <td></td>
214
            <td></td>
214
            <td></td>
215
            <td></td>
215
            <td>From <input type="text" name="Filter" size="10" /> (inclusive) to <input type="text" name="Filter" size="10" /> (exclusive) </td>
216
            <td>[% t('From') %] <input type="text" name="Filter" size="10" /> [% t('(inclusive) to') %] <input type="text" name="Filter" size="10" /> [% t('(exclusive)') %] </td>
216
        </tr>
217
        </tr>
217
        [% IF ( hassort1 ) %]
218
        [% IF ( hassort1 ) %]
218
        <tr><td>Patron sort 1</td>
219
        <tr><td>[% t('Patron sort 1') %]</td>
219
			<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
220
			<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
220
			<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
221
			<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
221
			<td><select name="Filter" id="sort1">
222
			<td><select name="Filter" id="sort1">
222
               <option value=""> </option>
223
               <option value=""> </option>
223
               [% FOREACH Bsort IN Bsort1 %]
224
               [% FOREACH Bsort IN Bsort1 %]
224
                <option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>
225
                <option value="[% Bsort.authorised_value %]">[% Bsort.lib %]</option>
225
               [% END %]
226
               [% END %]
226
               </select>
227
               </select>
227
            </td> 
228
            </td> 
228
        </tr>
229
        </tr>
229
        [% END %]
230
        [% END %]
230
        [% IF ( hassort2 ) %]
231
        [% IF ( hassort2 ) %]
231
        <tr><td>Patron sort 2</td>
232
        <tr><td>[% t('Patron sort 2') %]</td>
232
            <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
233
            <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
233
            <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
234
            <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
234
           	<td><select name="Filter" id="sort2">
235
           	<td><select name="Filter" id="sort2">
235
               <option value=""> </option>
236
               <option value=""> </option>
236
               [% FOREACH Bsort IN Bsort2 %]
237
               [% FOREACH Bsort IN Bsort2 %]
237
                   <option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>
238
                   <option value="[% Bsort.authorised_value %]">[% Bsort.lib %]</option>
238
               [% END %]
239
               [% END %]
239
               </select>
240
               </select>
240
            </td> 
241
            </td> 
241
        </tr>
242
        </tr>
242
        [% END %]
243
        [% END %]
243
        <tr><td>Home library</td>
244
        <tr><td>[% t('Home library') %]</td>
244
            <td><input type="radio" name="Line" value="items.homebranch" /></td>
245
            <td><input type="radio" name="Line" value="items.homebranch" /></td>
245
            <td><input type="radio" name="Column" value="items.homebranch" /></td>
246
            <td><input type="radio" name="Column" value="items.homebranch" /></td>
246
            <td><select name="Filter" id="homebranch">
247
            <td><select name="Filter" id="homebranch">
Lines 250-256 Link Here
250
            </td>
251
            </td>
251
        </tr>
252
        </tr>
252
253
253
        <tr><td>Holding library</td>
254
        <tr><td>[% t('Holding library') %]</td>
254
            <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
255
            <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
255
            <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
256
            <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
256
            <td><select name="Filter" id="holdingbranch">
257
            <td><select name="Filter" id="holdingbranch">
Lines 260-271 Link Here
260
            </td>
261
            </td>
261
        </tr>
262
        </tr>
262
        <tr>
263
        <tr>
263
            <td>Patron library</td>
264
            <td>[% t('Patron library') %]</td>
264
            <td><input type="radio" name="Line" value="borrowers.branchcode" /></td>
265
            <td><input type="radio" name="Line" value="borrowers.branchcode" /></td>
265
            <td><input type="radio" name="Column" value="borrowers.branchcode" /></td>
266
            <td><input type="radio" name="Column" value="borrowers.branchcode" /></td>
266
            <td>
267
            <td>
267
                <select name="Filter" id="patronbranch">
268
                <select name="Filter" id="patronbranch">
268
                    <option value="">&nbsp;</option>
269
                    <option value=""> </option>
269
                    [% FOREACH branch IN branchloop %]
270
                    [% FOREACH branch IN branchloop %]
270
                        <option value="[% branch.value %]">
271
                        <option value="[% branch.value %]">
271
                            [% branch.branchname %]
272
                            [% branch.branchname %]
Lines 276-282 Link Here
276
        </tr>
277
        </tr>
277
        [% IF (attribute_types_by_class.keys.size) %]
278
        [% IF (attribute_types_by_class.keys.size) %]
278
            <tr>
279
            <tr>
279
                <th colspan="4">Patron attributes</th>
280
                <th colspan="4">[% t('Patron attributes') %]</th>
280
            </tr>
281
            </tr>
281
            [% FOREACH class IN attribute_types_by_class.keys.sort %]
282
            [% FOREACH class IN attribute_types_by_class.keys.sort %]
282
                [% IF (class) %]
283
                [% IF (class) %]
Lines 293-299 Link Here
293
                        <td>
294
                        <td>
294
                            [% IF attr_type.authorised_value_category %]
295
                            [% IF attr_type.authorised_value_category %]
295
                                <select name="Filter_borrower_attributes.[% attr_type.code %]">
296
                                <select name="Filter_borrower_attributes.[% attr_type.code %]">
296
                                    <option value="">&nbsp;</option>
297
                                    <option value=""> </option>
297
                                    [% FOREACH av IN attr_type.authorised_values %]
298
                                    [% FOREACH av IN attr_type.authorised_values %]
298
                                        <option value="[% av.authorised_value %]">
299
                                        <option value="[% av.authorised_value %]">
299
                                            [% av.lib %]
300
                                            [% av.lib %]
Lines 313-345 Link Here
313
    </table><br /></fieldset>
314
    </table><br /></fieldset>
314
315
315
<fieldset class="rows">
316
<fieldset class="rows">
316
    <legend>Cell value</legend>
317
    <legend>[% t('Cell value') %]</legend>
317
    <ol>
318
    <ol>
318
        <li>
319
        <li>
319
            <label for="cellvalue1">Count total items:</label>
320
            <label for="cellvalue1">[% t('Count total items:') %]</label>
320
            <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" />
321
            <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" />
321
        </li>
322
        </li>
322
        <li>
323
        <li>
323
            <label for="cellvalue3">Count unique items:</label>
324
            <label for="cellvalue3">[% t('Count unique items:') %]</label>
324
            <input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
325
            <input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
325
        </li>
326
        </li>
326
        <li>
327
        <li>
327
            <label for="cellvalue5">Count unique biblios:</label>
328
            <label for="cellvalue5">[% t('Count unique biblios:') %]</label>
328
            <input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
329
            <input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
329
        </li>
330
        </li>
330
    </ol>
331
    </ol>
331
</fieldset>
332
</fieldset>
332
			
333
			
333
	<fieldset class="rows">
334
	<fieldset class="rows">
334
	<legend>Output</legend>
335
	<legend>[% t('Output') %]</legend>
335
    <ol>
336
    <ol>
336
        <li>
337
        <li>
337
            <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
338
            <label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
338
        </li>
339
        </li>
339
        <li>
340
        <li>
340
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
341
            <label for="outputfile">[% t('To a file:') %]</label> <input type="radio" name="output" value="file" id="outputfile" />
341
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
342
            <label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
342
            <label class="inline" for="MIME">Into an application:</label>
343
            <label class="inline" for="MIME">[% t('Into an application:') %]</label>
343
            <select name="MIME" id="MIME" size="1">
344
            <select name="MIME" id="MIME" size="1">
344
            [% FOREACH value IN CGIextChoice %]
345
            [% FOREACH value IN CGIextChoice %]
345
                <option value="[% value %]">[% value %]</option>
346
                <option value="[% value %]">[% value %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt (-37 / +38 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% USE Branches %]
4
[% USE Branches %]
Lines 6-12 Link Here
6
[% USE ItemTypes %]
7
[% USE ItemTypes %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Koha &rsaquo; Reports &rsaquo; Lost items</title>
10
<title>[% t('Koha › Reports › Lost items') %]</title>
10
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
11
[% Asset.css("css/datatables.css") %]
12
[% Asset.css("css/datatables.css") %]
12
</head>
13
</head>
Lines 15-21 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'cat-search.inc' %]
17
[% INCLUDE 'cat-search.inc' %]
17
18
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( get_items ) %] &rsaquo; <a href="/cgi-bin/koha/reports/itemslost.pl">Lost items</a> &rsaquo; Results[% ELSE %] &rsaquo; Lost items[% END %]</div>
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a>[% IF ( get_items ) %] › <a href="/cgi-bin/koha/reports/itemslost.pl">[% t('Lost items') %]</a> [% t('› Results') %][% ELSE %] [% t('› Lost items') %][% END %]</div>
19
20
20
<div id="doc3" class="yui-t2">
21
<div id="doc3" class="yui-t2">
21
   
22
   
Lines 23-56 Link Here
23
	<div id="yui-main">
24
	<div id="yui-main">
24
	<div class="yui-b">
25
	<div class="yui-b">
25
26
26
<h1>Lost items</h1>
27
<h1>[% t('Lost items') %]</h1>
27
28
28
[% IF ( get_items ) %]
29
[% IF ( get_items ) %]
29
30
30
<div class="results">
31
<div class="results">
31
    [% IF items.count%]
32
    [% IF items.count%]
32
        [% items.count %] lost items found
33
        [% items.count %] [% t('lost items found') %]
33
    [% ELSE %]
34
    [% ELSE %]
34
        No lost items found
35
        [% t('No lost items found') %]
35
    [% END %]
36
    [% END %]
36
</div>
37
</div>
37
38
38
    [% IF items.count %]
39
    [% IF items.count %]
39
        <div class="lostitems-table_table_controls">
40
        <div class="lostitems-table_table_controls">
40
                | <a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> |
41
                | <a href="#" class="SelectAll"><i class="fa fa-check"></i> [% t('Select all') %]</a> |
41
                <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a>
42
                <a href="#" class="ClearAll"><i class="fa fa-remove"></i> [% t('Clear all') %]</a>
42
                <span class="itemselection_actions">
43
                <span class="itemselection_actions">
43
                  | Actions:
44
                  [% t('| Actions:') %]
44
                  [% IF csv_profiles.count %]
45
                  [% IF csv_profiles.count %]
45
                      <a class="itemselection_action_export"><i class="fa fa-download"></i> Export selected items</a>
46
                      <a class="itemselection_action_export"><i class="fa fa-download"></i> [% t('Export selected items') %]</a>
46
                      Using the following CSV profile:
47
                      [% t('Using the following CSV profile:') %]
47
                      <select name="csv_profile_id" id="csv_profile_id">
48
                      <select name="csv_profile_id" id="csv_profile_id">
48
                          [% FOREACH csv_profile IN csv_profiles %]
49
                          [% FOREACH csv_profile IN csv_profiles %]
49
                              <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]</<option>
50
                              <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]<!--<option-->
50
                          [% END %]
51
                          [% END %]
51
                      </select>
52
                      </select>
52
                  [% ELSE %]
53
                  [% ELSE %]
53
                      <span class="itemselection_action_export" title="You should create a CSV profile for export_lost_items"><i class="fa fa-download"></i> Export selected items</a>
54
                      <span class="itemselection_action_export" title="[% t('You should create a CSV profile for export_lost_items') %]"><i class="fa fa-download"></i> [% t('Export selected items') %]</a>
54
                  [% END %]
55
                  [% END %]
55
                </span>
56
                </span>
56
        </div>
57
        </div>
Lines 59-79 Link Here
59
            <thead>
60
            <thead>
60
                <tr>
61
                <tr>
61
                    <th class="NoSort"></th>
62
                    <th class="NoSort"></th>
62
                    <th>Title</th>
63
                    <th>[% t('Title') %]</th>
63
                    <th>Author</th>
64
                    <th>[% t('Author') %]</th>
64
                    <th>Lost status</th>
65
                    <th>[% t('Lost status') %]</th>
65
                    <th class="title-string">Lost on</th>
66
                    <th class="title-string">[% t('Lost on') %]</th>
66
                    <th>Barcode</th>
67
                    <th>[% t('Barcode') %]</th>
67
                    <th>Call number</th>
68
                    <th>[% t('Call number') %]</th>
68
                    <th class="title-string">Date last seen</th>
69
                    <th class="title-string">[% t('Date last seen') %]</th>
69
                    <th>Price</th>
70
                    <th>[% t('Price') %]</th>
70
                    <th>Rep.price</th>
71
                    <th>[% t('Rep.price') %]</th>
71
                    <th>Library</th>
72
                    <th>[% t('Library') %]</th>
72
                    <th>Item type</th>
73
                    <th>[% t('Item type') %]</th>
73
                    <th>Current location</th>
74
                    <th>[% t('Current location') %]</th>
74
                    <th>Location</th>
75
                    <th>[% t('Location') %]</th>
75
                    <th>Not for loan status</th>
76
                    <th>[% t('Not for loan status') %]</th>
76
                    <th>Notes</th>
77
                    <th>[% t('Notes') %]</th>
77
                </tr>
78
                </tr>
78
            </thead>
79
            </thead>
79
            <tbody>
80
            <tbody>
Lines 112-133 Link Here
112
    <fieldset class="rows">
113
    <fieldset class="rows">
113
        <ol>
114
        <ol>
114
115
115
	<li><label for="barcodefilter">Barcode: </label><input type="text" name="barcodefilter" id="barcodefilter" size="6" /></li>
116
	<li><label for="barcodefilter">[% t('Barcode:') %] </label><input type="text" name="barcodefilter" id="barcodefilter" size="6" /></li>
116
	<li><label for="branchfilter">Library: </label><select name="branchfilter" id="branchfilter">
117
	<li><label for="branchfilter">[% t('Library:') %] </label><select name="branchfilter" id="branchfilter">
117
                <option value="">All</option>
118
                <option value="">[% t('All') %]</option>
118
                [% PROCESS options_for_libraries libraries => Branches.all() %]
119
                [% PROCESS options_for_libraries libraries => Branches.all() %]
119
            </select></li>
120
            </select></li>
120
    <li><label for="itemtypesfilter">Item type: </label><select name="itemtypesfilter" id="itemtypesfilter">
121
    <li><label for="itemtypesfilter">[% t('Item type:') %] </label><select name="itemtypesfilter" id="itemtypesfilter">
121
                <option value="">All</option>
122
                <option value="">[% t('All') %]</option>
122
                [% FOREACH itemtype IN itemtypes %]
123
                [% FOREACH itemtype IN itemtypes %]
123
                    <option value="[% itemtype.itemtype  %]">[% itemtype.translated_description %]</option>
124
                    <option value="[% itemtype.itemtype  %]">[% itemtype.translated_description %]</option>
124
                [% END %]
125
                [% END %]
125
            </select></li>
126
            </select></li>
126
127
127
    <li>
128
    <li>
128
        <label for="loststatusfilter">Lost status: </label>
129
        <label for="loststatusfilter">[% t('Lost status:') %] </label>
129
        <select name="loststatusfilter" id="loststatusfilter">
130
        <select name="loststatusfilter" id="loststatusfilter">
130
            <option value="">All</option>
131
            <option value="">[% t('All') %]</option>
131
            [% FOREACH l IN AuthorisedValues.GetDescriptionsByKohaField( kohafield => 'items.itemlost') %]
132
            [% FOREACH l IN AuthorisedValues.GetDescriptionsByKohaField( kohafield => 'items.itemlost') %]
132
                [% IF l.authorised_value == lostfilter %]
133
                [% IF l.authorised_value == lostfilter %]
133
                    <option value="[% l.authorised_value %]" selected="selected">[% l.lib %]</option>
134
                    <option value="[% l.authorised_value %]" selected="selected">[% l.lib %]</option>
Lines 139-147 Link Here
139
    </li>
140
    </li>
140
141
141
    <li>
142
    <li>
142
        <label for="notforloanfilter">Not for loan: </label>
143
        <label for="notforloanfilter">[% t('Not for loan:') %] </label>
143
        <select name="notforloanfilter" id="notforloanfilter">
144
        <select name="notforloanfilter" id="notforloanfilter">
144
            <option value="">All</option>
145
            <option value="">[% t('All') %]</option>
145
            [% FOREACH n IN AuthorisedValues.GetDescriptionsByKohaField( kohafield => 'items.notforloan') %]
146
            [% FOREACH n IN AuthorisedValues.GetDescriptionsByKohaField( kohafield => 'items.notforloan') %]
146
                [% IF n.authorised_value == notforloanfilter %]
147
                [% IF n.authorised_value == notforloanfilter %]
147
                    <option value="[% n.authorised_value %]" selected="selected">[% n.lib %]</option>
148
                    <option value="[% n.authorised_value %]" selected="selected">[% n.lib %]</option>
Lines 172-178 Link Here
172
    [% INCLUDE 'columns_settings.inc' %]
173
    [% INCLUDE 'columns_settings.inc' %]
173
    [% Asset.js("js/table_filters.js") %]
174
    [% Asset.js("js/table_filters.js") %]
174
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
175
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
175
    <script type='text/javascript'>
176
    <script type="text/javascript">
176
        $(document).ready(function() {
177
        $(document).ready(function() {
177
            var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'lostitems', 'lostitems-table', 'json' ) %];
178
            var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'lostitems', 'lostitems-table', 'json' ) %];
178
            var lostitems_table = KohaTable("lostitems-table", {
179
            var lostitems_table = KohaTable("lostitems-table", {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt (-9 / +10 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE ItemTypes %]
4
[% USE ItemTypes %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Reports &rsaquo; Catalog by item types</title>
7
<title>[% t('Koha › Reports › Catalog by item types') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% IF ( do_it ) %]
9
[% IF ( do_it ) %]
9
[% Asset.css("css/datatables.css") %]
10
[% Asset.css("css/datatables.css") %]
Lines 14-20 Link Here
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
16
[% INCLUDE 'cat-search.inc' %]
16
17
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( do_it ) %] &rsaquo; <a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalog by item type</a> &rsaquo; Results[% ELSE %] &rsaquo; Catalog by item type[% END %]</div>
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a>[% IF ( do_it ) %] › <a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">[% t('Catalog by item type') %]</a> [% t('› Results') %][% ELSE %] [% t('› Catalog by item type') %][% END %]</div>
18
19
19
<div id="doc3" class="yui-t2">
20
<div id="doc3" class="yui-t2">
20
   
21
   
Lines 24-40 Link Here
24
25
25
[% IF ( do_it ) %]
26
[% IF ( do_it ) %]
26
[% FOREACH mainloo IN mainloop %]
27
[% FOREACH mainloo IN mainloop %]
27
    <h1>Reports on item types [% IF branch %] held at [% Branches.GetName( branch ) %][% END %]</h1>
28
    <h1>[% t('Reports on item types') %] [% IF branch %] [% t('held at') %] [% Branches.GetName( branch ) %][% END %]</h1>
28
	<table id="itemtypest">
29
	<table id="itemtypest">
29
		<thead>
30
		<thead>
30
		<tr>
31
		<tr>
31
			<th>Item type</th>
32
			<th>[% t('Item type') %]</th>
32
			<th>Count</th>
33
			<th>[% t('Count') %]</th>
33
		</tr>
34
		</tr>
34
		</thead>
35
		</thead>
35
		<tfoot>
36
		<tfoot>
36
			<tr>
37
			<tr>
37
				<th>TOTAL</th>
38
				<th>[% t('TOTAL') %]</th>
38
				<th>[% mainloo.total %]</th>
39
				<th>[% mainloo.total %]</th>
39
			</tr>
40
			</tr>
40
		</tfoot>
41
		</tfoot>
Lines 49-65 Link Here
49
	</table>
50
	</table>
50
[% END %]
51
[% END %]
51
[% ELSE %]
52
[% ELSE %]
52
        <h3>View a count of items held at your library grouped by item type</h3>
53
        <h3>[% t('View a count of items held at your library grouped by item type') %]</h3>
53
        <form method="post" action="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">
54
        <form method="post" action="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">
54
          <fieldset class="rows">
55
          <fieldset class="rows">
55
            <ol>
56
            <ol>
56
              <li>
57
              <li>
57
                <label for="value">Select a library:</label>
58
                <label for="value">[% t('Select a library:') %]</label>
58
                <select name="value" size="1" id="value">
59
                <select name="value" size="1" id="value">
59
                  <option value=""></option>
60
                  <option value=""></option>
60
                  [% PROCESS options_for_libraries libraries => Branches.all() %]
61
                  [% PROCESS options_for_libraries libraries => Branches.all() %]
61
                </select>
62
                </select>
62
                <span class="tip">Select none to see all libraries</span>
63
                <span class="tip">[% t('Select none to see all libraries') %]</span>
63
              </li>
64
              </li>
64
            </ol>
65
            </ol>
65
          </fieldset>
66
          </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/orders_by_budget.tt (-36 / +37 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Price %]
3
[% USE Price %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Reports &rsaquo; Orders by fund</title>
6
<title>[% t('Koha › Reports › Orders by fund') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
<body id="rep_orders_by_budget" class="rep">
9
<body id="rep_orders_by_budget" class="rep">
Lines 10-16 Link Here
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
[% Asset.css("css/datatables.css") %]
13
[% Asset.css("css/datatables.css") %]
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( get_orders ) %] &rsaquo; <a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a> &rsaquo; Results[% ELSE %] &rsaquo; Orders by fund[% END %]</div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a>[% IF ( get_orders ) %] › <a href="/cgi-bin/koha/reports/orders_by_fund.pl">[% t('Orders by fund') %]</a> [% t('› Results') %][% ELSE %] [% t('› Orders by fund') %][% END %]</div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
17
Lines 18-55 Link Here
18
        <div id="yui-main">
19
        <div id="yui-main">
19
        <div class="yui-b">
20
        <div class="yui-b">
20
21
21
[% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name %]'</h1>
22
[% IF ( current_budget_name ) %]<h1>[% t('Orders for fund \'') %][% current_budget_name %]'</h1>
22
[% ELSE %]<h1>Orders by fund</h1>
23
[% ELSE %]<h1>[% t('Orders by fund') %]</h1>
23
[% END %]
24
[% END %]
24
25
25
[% IF ( get_orders ) %]
26
[% IF ( get_orders ) %]
26
    <div class="results">
27
    <div class="results">
27
        [% IF ( total ) %]
28
        [% IF ( total ) %]
28
            Orders found: [% total %]
29
            [% t('Orders found:') %] [% total %]
29
        [% ELSE %]
30
        [% ELSE %]
30
            No order found
31
            [% t('No order found') %]
31
        [% END %]
32
        [% END %]
32
    </div>
33
    </div>
33
34
34
    [% IF ( ordersloop ) %]<table id="funds">
35
    [% IF ( ordersloop ) %]<table id="funds">
35
        <thead>
36
        <thead>
36
        <tr>
37
        <tr>
37
        <th>Fund</th>
38
        <th>[% t('Fund') %]</th>
38
        <th>Basket</th>
39
        <th>[% t('Basket') %]</th>
39
        <th>Basket name</th>
40
        <th>[% t('Basket name') %]</th>
40
        <th>Basket by</th>
41
        <th>[% t('Basket by') %]</th>
41
        <th>Title</th>
42
        <th>[% t('Title') %]</th>
42
        <th>Currency</th>
43
        <th>[% t('Currency') %]</th>
43
        <th>List price</th>
44
        <th>[% t('List price') %]</th>
44
        <th>RRP</th>
45
        <th>[% t('RRP') %]</th>
45
        <th>Budgeted cost</th>
46
        <th>[% t('Budgeted cost') %]</th>
46
        <th>Quantity</th>
47
        <th>[% t('Quantity') %]</th>
47
        <th>Total RRP</th>
48
        <th>[% t('Total RRP') %]</th>
48
        <th>Total cost</th>
49
        <th>[% t('Total cost') %]</th>
49
        <th>Entry date</th>
50
        <th>[% t('Entry date') %]</th>
50
        <th>Date received</th>
51
        <th>[% t('Date received') %]</th>
51
        <th>Internal note</th>
52
        <th>[% t('Internal note') %]</th>
52
        <th>Vendor note</th>
53
        <th>[% t('Vendor note') %]</th>
53
        </tr>
54
        </tr>
54
        </thead>
55
        </thead>
55
        <tbody>
56
        <tbody>
Lines 76-92 Link Here
76
            </tr>
77
            </tr>
77
        [% END %]
78
        [% END %]
78
        </tbody>
79
        </tbody>
79
        <tfoot><tr><th>TOTAL</th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th>[% total_quantity  %]</th><th>[% total_rrp | $Price %]</th><th>[% total_ecost | $Price %]</th><th></th><th></th><th></th><th></th></tr></tfoot>
80
        <tfoot><tr><th>[% t('TOTAL') %]</th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th>[% total_quantity  %]</th><th>[% total_rrp | $Price %]</th><th>[% total_ecost | $Price %]</th><th></th><th></th><th></th><th></th></tr></tfoot>
80
        </table>
81
        </table>
81
    [% END %]
82
    [% END %]
82
    [% ELSE %]
83
    [% ELSE %]
83
        <form name="f" action="/cgi-bin/koha/reports/orders_by_fund.pl" method="post">
84
        <form name="f" action="/cgi-bin/koha/reports/orders_by_fund.pl" method="post">
84
        <fieldset class="rows">
85
        <fieldset class="rows">
85
        <legend>Filters</legend>
86
        <legend>[% t('Filters') %]</legend>
86
        <ol><li><label for="budgetfilter">Fund: </label>
87
        <ol><li><label for="budgetfilter">[% t('Fund:') %] </label>
87
        <select name="budgetfilter" id="budgetfilter">
88
        <select name="budgetfilter" id="budgetfilter">
88
            <option value="">All funds</option>
89
            <option value="">[% t('All funds') %]</option>
89
            <option value="activebudgets">All active funds</option>
90
            <option value="activebudgets">[% t('All active funds') %]</option>
90
        [% FOREACH budgetsloo IN budgetsloop %]
91
        [% FOREACH budgetsloo IN budgetsloop %]
91
            [% IF ( budgetsloo.selected ) %]
92
            [% IF ( budgetsloo.selected ) %]
92
                <option value="[% budgetsloo.value %]" selected="selected">
93
                <option value="[% budgetsloo.value %]" selected="selected">
Lines 94-122 Link Here
94
                [% bdgclass=budgetsloo.active? "": "b_inactive" %]
95
                [% bdgclass=budgetsloo.active? "": "b_inactive" %]
95
                    <option class="[% bdgclass %]" value="[% budgetsloo.value %]">
96
                    <option class="[% bdgclass %]" value="[% budgetsloo.value %]">
96
            [% END %]
97
            [% END %]
97
            [% budgetsloo.description %] [% IF !budgetsloo.active %](inactive)[% END %]
98
            [% budgetsloo.description %] [% IF !budgetsloo.active %][% t('(inactive)') %][% END %]
98
            </option>
99
            </option>
99
        [% END %]
100
        [% END %]
100
        </select>
101
        </select>
101
        <label for="showallbudgets" style="float:none;">&nbsp;Show inactive:</label>
102
        <label for="showallbudgets" style="float:none;">[% t(' Show inactive:') %]</label>
102
        <input type="checkbox" id="showbudgets" />
103
        <input type="checkbox" id="showbudgets" />
103
        </li></ol>
104
        </li></ol>
104
        </fieldset>
105
        </fieldset>
105
106
106
        <fieldset class="rows">
107
        <fieldset class="rows">
107
        <legend>Output</legend>
108
        <legend>[% t('Output') %]</legend>
108
        <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
109
        <ol><li><label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
109
            <li><label for="outputfile">To a file:</label>
110
            <li><label for="outputfile">[% t('To a file:') %]</label>
110
                <input type="radio" name="output" value="file" id="outputfile" />
111
                <input type="radio" name="output" value="file" id="outputfile" />
111
                <label class="inline" for="basename">Named: </label>
112
                <label class="inline" for="basename">[% t('Named:') %] </label>
112
                <input type="text" name="basename" id="basename" value="Export" />
113
                <input type="text" name="basename" id="basename" value="Export" />
113
                <label class="inline" for="MIME">Into an application </label>
114
                <label class="inline" for="MIME">[% t('Into an application') %] </label>
114
                <select id='MIME' name='MIME' size='1'>
115
                <select id="MIME" name="MIME" size="1">
115
                [% FOREACH outputFormatloo IN outputFormatloop %]
116
                [% FOREACH outputFormatloo IN outputFormatloop %]
116
                    <option value="[% outputFormatloo %]">[% outputFormatloo %]</option>
117
                    <option value="[% outputFormatloo %]">[% outputFormatloo %]</option>
117
                [% END %]
118
                [% END %]
118
                </select>
119
                </select>
119
                <select id='sep' name='sep' size='1'>
120
                <select id="sep" name="sep" size="1">
120
                [% FOREACH delimiterloo IN delimiterloop %]
121
                [% FOREACH delimiterloo IN delimiterloop %]
121
                    [% IF delimiterloo == delimiterPreference %]
122
                    [% IF delimiterloo == delimiterPreference %]
122
                        <option value="[% delimiterloo %]">[% delimiterloo %]</option>
123
                        <option value="[% delimiterloo %]">[% delimiterloo %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt (-32 / +33 lines)
Lines 1-13 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Reports</title>
4
<title>[% t('Koha › Reports') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
<body id="rep_reports-home" class="rep">
7
<body id="rep_reports-home" class="rep">
7
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'circ-search.inc' %]
9
[% INCLUDE 'circ-search.inc' %]
9
10
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Reports</div>
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> [% t('› Reports') %]</div>
11
12
12
<div class="main container-fluid">
13
<div class="main container-fluid">
13
    <div class="row">
14
    <div class="row">
Lines 19-88 Link Here
19
                    [% IF ( CAN_user_reports_execute_reports || CAN_user_reports_create_reports ) %]
20
                    [% IF ( CAN_user_reports_execute_reports || CAN_user_reports_create_reports ) %]
20
                        <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
21
                        <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
21
                            <fieldset class="brief">
22
                            <fieldset class="brief">
22
                                <h2>Guided reports</h2>
23
                                <h2>[% t('Guided reports') %]</h2>
23
                                <input name="phase" value="Use saved" type="hidden">
24
                                <input name="phase" value="Use saved" type="hidden">
24
                                <input name="filter_set" value="1" type="hidden">
25
                                <input name="filter_set" value="1" type="hidden">
25
                                [% IF ( CAN_user_reports_create_reports ) %]
26
                                [% IF ( CAN_user_reports_create_reports ) %]
26
                                    <p>
27
                                    <p>
27
                                        <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new"><i class="fa fa-code-fork"></i> Create guided report</a>
28
                                        <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new"><i class="fa fa-code-fork"></i> [% t('Create guided report') %]</a>
28
                                    </p>
29
                                    </p>
29
                                    <p>
30
                                    <p>
30
                                        <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create%20report%20from%20SQL"><i class="fa fa-plus"></i> Create from SQL</a>
31
                                        <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create%20report%20from%20SQL"><i class="fa fa-plus"></i> [% t('Create from SQL') %]</a>
31
                                    </p>
32
                                    </p>
32
                                [% END %]
33
                                [% END %]
33
                                <p>
34
                                <p>
34
                                    <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved"><i class="fa fa-list"></i> Use saved</a>
35
                                    <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved"><i class="fa fa-list"></i> [% t('Use saved') %]</a>
35
                                </p>
36
                                </p>
36
                                <label for="filter_keyword">Search by keyword:</label> <input id="filter_keyword" name="filter_keyword" value="" size="16" type="text" /> <input value="Search" type="submit" />
37
                                <label for="filter_keyword">[% t('Search by keyword:') %]</label> <input id="filter_keyword" name="filter_keyword" value="" size="16" type="text" /> <input value="Search" type="submit" />
37
                            </fieldset>
38
                            </fieldset>
38
                        </form>
39
                        </form>
39
                    [% END %]
40
                    [% END %]
40
41
41
        <h5>Reports dictionary</h5>
42
        <h5>[% t('Reports dictionary') %]</h5>
42
        <ul>
43
        <ul>
43
            <li><a href="/cgi-bin/koha/reports/dictionary.pl?phase=View%20Dictionary">View dictionary</a></li>
44
            <li><a href="/cgi-bin/koha/reports/dictionary.pl?phase=View%20Dictionary">[% t('View dictionary') %]</a></li>
44
        </ul>
45
        </ul>
45
46
46
        <h2>Statistics wizards</h2>
47
        <h2>[% t('Statistics wizards') %]</h2>
47
        <ul>
48
        <ul>
48
            <li><a href="/cgi-bin/koha/reports/acquisitions_stats.pl">Acquisitions</a></li>
49
            <li><a href="/cgi-bin/koha/reports/acquisitions_stats.pl">[% t('Acquisitions') %]</a></li>
49
            <li><a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons</a></li>
50
            <li><a href="/cgi-bin/koha/reports/borrowers_stats.pl">[% t('Patrons') %]</a></li>
50
            <li><a href="/cgi-bin/koha/reports/catalogue_stats.pl">Catalog</a></li>
51
            <li><a href="/cgi-bin/koha/reports/catalogue_stats.pl">[% t('Catalog') %]</a></li>
51
            <li><a href="/cgi-bin/koha/reports/issues_stats.pl">Circulation</a></li>
52
            <li><a href="/cgi-bin/koha/reports/issues_stats.pl">[% t('Circulation') %]</a></li>
52
            <li><a href="/cgi-bin/koha/reports/serials_stats.pl">Serials</a></li>
53
            <li><a href="/cgi-bin/koha/reports/serials_stats.pl">[% t('Serials') %]</a></li>
53
            <li><a href="/cgi-bin/koha/reports/cash_register_stats.pl">Cash register</a></li>
54
            <li><a href="/cgi-bin/koha/reports/cash_register_stats.pl">[% t('Cash register') %]</a></li>
54
            <li><a href="/cgi-bin/koha/reports/reserves_stats.pl">Holds</a></li>
55
            <li><a href="/cgi-bin/koha/reports/reserves_stats.pl">[% t('Holds') %]</a></li>
55
      </ul>
56
      </ul>
56
57
57
        [% IF UseKohaPlugins %]
58
        [% IF UseKohaPlugins %]
58
            <h2>Report plugins</h2>
59
            <h2>[% t('Report plugins') %]</h2>
59
            <ul>
60
            <ul>
60
                <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">Report plugins</a></li>
61
                <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">[% t('Report plugins') %]</a></li>
61
            </ul>
62
            </ul>
62
        [% END %]
63
        [% END %]
63
64
64
    </div>
65
    </div>
65
66
66
    <div class="col-xs-6"><h2>Top lists</h2>
67
    <div class="col-xs-6"><h2>[% t('Top lists') %]</h2>
67
        <ul>
68
        <ul>
68
            <li><a href="/cgi-bin/koha/reports/bor_issues_top.pl">Patrons with the most checkouts</a></li>
69
            <li><a href="/cgi-bin/koha/reports/bor_issues_top.pl">[% t('Patrons with the most checkouts') %]</a></li>
69
            <li><a href="/cgi-bin/koha/reports/cat_issues_top.pl">Most-circulated items</a></li>
70
            <li><a href="/cgi-bin/koha/reports/cat_issues_top.pl">[% t('Most-circulated items') %]</a></li>
70
        </ul>
71
        </ul>
71
72
72
        <h2>Inactive</h2>
73
        <h2>[% t('Inactive') %]</h2>
73
        <ul>
74
        <ul>
74
                <li><a href="/cgi-bin/koha/reports/borrowers_out.pl">Patrons who haven't checked out</a></li>
75
                <li><a href="/cgi-bin/koha/reports/borrowers_out.pl">[% t('Patrons who haven\'t checked out') %]</a></li>
75
                <li><a href="/cgi-bin/koha/reports/catalogue_out.pl">Items with no checkouts</a></li>
76
                <li><a href="/cgi-bin/koha/reports/catalogue_out.pl">[% t('Items with no checkouts') %]</a></li>
76
        </ul>
77
        </ul>
77
78
78
        <h2>Other</h2>
79
        <h2>[% t('Other') %]</h2>
79
        <ul>
80
        <ul>
80
            <li><a href="/cgi-bin/koha/reports/itemslost.pl">Items lost</a></li>
81
            <li><a href="/cgi-bin/koha/reports/itemslost.pl">[% t('Items lost') %]</a></li>
81
            <li><a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a></li>
82
            <li><a href="/cgi-bin/koha/reports/orders_by_fund.pl">[% t('Orders by fund') %]</a></li>
82
            <li><a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalog by item type</a></li>
83
            <li><a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">[% t('Catalog by item type') %]</a></li>
83
            <li><a href="/cgi-bin/koha/reports/issues_avg_stats.pl">Average loan time</a></li>
84
            <li><a href="/cgi-bin/koha/reports/issues_avg_stats.pl">[% t('Average loan time') %]</a></li>
84
            <li><a href="http://schema.koha-community.org/" target="blank">Koha database schema</a></li>
85
            <li><a href="http://schema.koha-community.org/" target="blank">[% t('Koha database schema') %]</a></li>
85
            <li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">Koha reports library</a></li>
86
            <li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">[% t('Koha reports library') %]</a></li>
86
        </ul></div>
87
        </ul></div>
87
</div>
88
</div>
88
89
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt (-56 / +57 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
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 &rsaquo; Holds statistics [% IF ( do_it ) %]&rsaquo; Results[% END %]</title>
5
<title>[% t('Koha › Reports › Holds statistics') %] [% IF ( do_it ) %][% t('› Results') %][% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css">
7
<style type="text/css">
7
	.sql {display:none;}
8
	.sql {display:none;}
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]&rsaquo; <a href="/cgi-bin/koha/reports/reserves_stats.pl">Holds statistics</a> &rsaquo; Results [% ELSE %]&rsaquo; Holds statistics[% END %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% IF ( do_it ) %]› <a href="/cgi-bin/koha/reports/reserves_stats.pl">[% t('Holds statistics') %]</a> [% t('› Results') %] [% ELSE %][% t('› Holds statistics') %][% END %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
19
Lines 22-33 Link Here
22
23
23
[% IF ( do_it ) %]
24
[% IF ( do_it ) %]
24
    [% IF ( mainloop ) %]
25
    [% IF ( mainloop ) %]
25
        <h1>Holds statistics</h1>
26
        <h1>[% t('Holds statistics') %]</h1>
26
        [% IF ( loopfilter ) %]
27
        [% IF ( loopfilter ) %]
27
            <p>Filtered on:</p>
28
            <p>[% t('Filtered on:') %]</p>
28
            <ul>
29
            <ul>
29
            [% FOREACH loopfilte IN loopfilter %]
30
            [% FOREACH loopfilte IN loopfilter %]
30
                [% IF ( loopfilte.err ) %]<li class="error">Error:
31
                [% IF ( loopfilte.err ) %]<li class="error">[% t('Error:') %]
31
				[% ELSIF ( loopfilte.sql ) %]<li class="sql">
32
				[% ELSIF ( loopfilte.sql ) %]<li class="sql">
32
				[% ELSE %]<li>
33
				[% ELSE %]<li>
33
				[% END %]
34
				[% END %]
Lines 45-65 Link Here
45
                [% FOREACH loopco IN mainloo.loopcol %]
46
                [% FOREACH loopco IN mainloo.loopcol %]
46
                    <th>[% loopco.coltitle_display |html %]</th>
47
                    <th>[% loopco.coltitle_display |html %]</th>
47
                [% END %]
48
                [% END %]
48
                <th>TOTAL</th>
49
                <th>[% t('TOTAL') %]</th>
49
                </tr>
50
                </tr>
50
                [% FOREACH loopro IN mainloo.looprow %]
51
                [% FOREACH loopro IN mainloo.looprow %]
51
                    <tr>
52
                    <tr>
52
                        <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" |html %]</td>
53
                        <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" |html %]</td>
53
                    [% FOREACH loopcel IN loopro.loopcell %]
54
                    [% FOREACH loopcel IN loopro.loopcell %]
54
						<td align="center">
55
						<td align="center">
55
						[% IF ( loopcel.url_complement ) %]<a href="reserves_stats.pl?output=[% loopcel.output %]&amp;[% loopcel.url_complement %]">[% loopcel.value %]</a>[% ELSE %][% loopcel.value %][% END %]
56
						[% IF ( loopcel.url_complement ) %]<a href="reserves_stats.pl?output=[% loopcel.output %]&[% loopcel.url_complement %]">[% loopcel.value %]</a>[% ELSE %][% loopcel.value %][% END %]
56
						</td>
57
						</td>
57
                    [% END %]
58
                    [% END %]
58
						<td align="center">[% loopro.totalrow %]</td>
59
						<td align="center">[% loopro.totalrow %]</td>
59
                    </tr>
60
                    </tr>
60
                [% END %]
61
                [% END %]
61
            <tr>
62
            <tr>
62
                <th>TOTAL</th>
63
                <th>[% t('TOTAL') %]</th>
63
                [% FOREACH loopfoote IN mainloo.loopfooter %]
64
                [% FOREACH loopfoote IN mainloo.loopfooter %]
64
                <th>[% loopfoote.totalcol %]</th>
65
                <th>[% loopfoote.totalcol %]</th>
65
                [% END %]
66
                [% END %]
Lines 72-141 Link Here
72
73
73
    <form method="post" action="/cgi-bin/koha/reports/reserves_stats.pl">
74
    <form method="post" action="/cgi-bin/koha/reports/reserves_stats.pl">
74
    <fieldset class="rows">
75
    <fieldset class="rows">
75
	<legend>Holds statistics</legend><table>
76
	<legend>[% t('Holds statistics') %]</legend><table>
76
        <thead>
77
        <thead>
77
            <tr>
78
            <tr>
78
                <th>Title</th>
79
                <th>[% t('Title') %]</th>
79
                <th>Row</th>
80
                <th>[% t('Row') %]</th>
80
                <th>Column</th>
81
                <th>[% t('Column') %]</th>
81
                <th>Filter</th>
82
                <th>[% t('Filter') %]</th>
82
            </tr>
83
            </tr>
83
        </thead>
84
        </thead>
84
        <tbody>
85
        <tbody>
85
        	<tr >
86
        	<tr>
86
                <td>Hold status </td>
87
                <td>[% t('Hold status') %] </td>
87
                <td><input type="radio" name="Line" value="reservestatus" /></td>
88
                <td><input type="radio" name="Line" value="reservestatus" /></td>
88
                <td><input type="radio" name="Column" value="reservestatus" checked="checked" /></td>
89
                <td><input type="radio" name="Column" value="reservestatus" checked="checked" /></td>
89
                <td>
90
                <td>
90
				<input type="checkbox" name="filter_reservestatus_or_1" value="1" /> Asked
91
				<input type="checkbox" name="filter_reservestatus_or_1" value="1" /> [% t('Asked') %]
91
				<input type="checkbox" name="filter_reservestatus_or_2" value="2" /> Processing
92
				<input type="checkbox" name="filter_reservestatus_or_2" value="2" /> [% t('Processing') %]
92
				<input type="checkbox" name="filter_reservestatus_or_3" value="3" /> Waiting
93
				<input type="checkbox" name="filter_reservestatus_or_3" value="3" /> [% t('Waiting') %]
93
				<input type="checkbox" name="filter_reservestatus_or_4" value="4" /> Satisfied
94
				<input type="checkbox" name="filter_reservestatus_or_4" value="4" /> [% t('Satisfied') %]
94
				<input type="checkbox" name="filter_reservestatus_or_5" value="5" /> Cancelled
95
				<input type="checkbox" name="filter_reservestatus_or_5" value="5" /> [% t('Cancelled') %]
95
				</td>
96
				</td>
96
             </tr>
97
             </tr>
97
             <tr>
98
             <tr>
98
                <td>Hold date</td>
99
                <td>[% t('Hold date') %]</td>
99
                <td><input type="radio" name="Line" value="reservedate" /></td>
100
                <td><input type="radio" name="Line" value="reservedate" /></td>
100
                <td><input type="radio" name="Column" value="reservedate" /></td>
101
                <td><input type="radio" name="Column" value="reservedate" /></td>
101
                <td><label for="filter_reservedate_begin">From</label> <input type="text"  size="10" id="filter_reservedate_begin" name="filter_reservedate_begin" />
102
                <td><label for="filter_reservedate_begin">[% t('From') %]</label> <input type="text" size="10" id="filter_reservedate_begin" name="filter_reservedate_begin" />
102
                    <label for="filter_reservedate_end">To</label> <input size="10" id="filter_reservedate_end" name="filter_reservedate_end" value="" type="text" />
103
                    <label for="filter_reservedate_end">[% t('To') %]</label> <input size="10" id="filter_reservedate_end" name="filter_reservedate_end" value="" type="text" />
103
                    </td>
104
                    </td>
104
                </tr>
105
                </tr>
105
            <tr>
106
            <tr>
106
                <td>Notification date</td>
107
                <td>[% t('Notification date') %]</td>
107
                <td><input type="radio" name="Line" value="notificationdate" /></td>
108
                <td><input type="radio" name="Line" value="notificationdate" /></td>
108
                <td><input type="radio" name="Column" value="notificationdate" /></td>
109
                <td><input type="radio" name="Column" value="notificationdate" /></td>
109
                <td><label for="filter_notificationdate_begin">From</label> <input type="text"  size="10" id="filter_notificationdate_begin" name="filter_notificationdate_begin" />
110
                <td><label for="filter_notificationdate_begin">[% t('From') %]</label> <input type="text" size="10" id="filter_notificationdate_begin" name="filter_notificationdate_begin" />
110
                    <label for="filter_notificationdate_end">To</label> <input  size="10" id="filter_notificationdate_end" name="filter_notificationdate_end" value="" type="text" />
111
                    <label for="filter_notificationdate_end">[% t('To') %]</label> <input size="10" id="filter_notificationdate_end" name="filter_notificationdate_end" value="" type="text" />
111
                    </td>
112
                    </td>
112
             </tr>
113
             </tr>
113
            <tr>
114
            <tr>
114
                <td>Reminder date</td>
115
                <td>[% t('Reminder date') %]</td>
115
                <td><input type="radio" name="Line" value="reminderdate" /></td>
116
                <td><input type="radio" name="Line" value="reminderdate" /></td>
116
                <td><input type="radio" name="Column" value="reminderdate" /></td>
117
                <td><input type="radio" name="Column" value="reminderdate" /></td>
117
                <td><label for="filter_reminderdate_begin">From</label> <input type="text"  size="10" id="filter_reminderdate_begin" name="Filter" />
118
                <td><label for="filter_reminderdate_begin">[% t('From') %]</label> <input type="text" size="10" id="filter_reminderdate_begin" name="Filter" />
118
                    <label for="filter_reminderdate_end">To</label> <input size="10" id="filter_reminderdate_end" name="filter_reminderdate_end" value="" type="text" />
119
                    <label for="filter_reminderdate_end">[% t('To') %]</label> <input size="10" id="filter_reminderdate_end" name="filter_reminderdate_end" value="" type="text" />
119
                    </td>
120
                    </td>
120
             </tr>
121
             </tr>
121
            <tr>
122
            <tr>
122
                <td>Waiting date</td>
123
                <td>[% t('Waiting date') %]</td>
123
                <td><input type="radio" name="Line" value="waitingdate" /></td>
124
                <td><input type="radio" name="Line" value="waitingdate" /></td>
124
                <td><input type="radio" name="Column" value="waitingdate" /></td>
125
                <td><input type="radio" name="Column" value="waitingdate" /></td>
125
                <td><label for="filter_waitingdate_begin">From</label> <input type="text"  size="10" id="filter_waitingdate_begin" name="filter_waitingdate_begin" />
126
                <td><label for="filter_waitingdate_begin">[% t('From') %]</label> <input type="text" size="10" id="filter_waitingdate_begin" name="filter_waitingdate_begin" />
126
                    <label for="filter_waitingdate_end">To</label> <input  size="10" id="filter_waitingdate_end" name="filter_waitingdate_end" value="" type="text" />
127
                    <label for="filter_waitingdate_end">[% t('To') %]</label> <input size="10" id="filter_waitingdate_end" name="filter_waitingdate_end" value="" type="text" />
127
                    </td>
128
                    </td>
128
             </tr>
129
             </tr>
129
			 <tr>
130
			 <tr>
130
                <td>Cancellation date</td>
131
                <td>[% t('Cancellation date') %]</td>
131
                <td><input type="radio" name="Line" value="cancellationdate" /></td>
132
                <td><input type="radio" name="Line" value="cancellationdate" /></td>
132
                <td><input type="radio" name="Column" value="cancellationdate" /></td>
133
                <td><input type="radio" name="Column" value="cancellationdate" /></td>
133
                <td><label for="filter_cancellationdate_begin">From</label> <input type="text"  size="10" id="filter_cancellationdate_begin" name="filter_cancellationdate_begin" />
134
                <td><label for="filter_cancellationdate_begin">[% t('From') %]</label> <input type="text" size="10" id="filter_cancellationdate_begin" name="filter_cancellationdate_begin" />
134
                    <label for="filter_cancellationdate_end">To</label> <input  size="10" id="filter_cancellationdate_end" name="filter_cancellationdate_end" value="" type="text" />
135
                    <label for="filter_cancellationdate_end">[% t('To') %]</label> <input size="10" id="filter_cancellationdate_end" name="filter_cancellationdate_end" value="" type="text" />
135
                    </td>
136
                    </td>
136
             </tr>
137
             </tr>
137
        <tr>
138
        <tr>
138
            <td>Patron category</td>
139
            <td>[% t('Patron category') %]</td>
139
            <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
140
            <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
140
            <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
141
            <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
141
           <td><select name="filter_categorycode" id="borcat">
142
           <td><select name="filter_categorycode" id="borcat">
Lines 147-153 Link Here
147
             </td> 
148
             </td> 
148
        </tr>
149
        </tr>
149
        <tr>
150
        <tr>
150
            <td>Item type</td>
151
            <td>[% t('Item type') %]</td>
151
            <td><input type="radio" name="Line" value="items.itype" /></td>
152
            <td><input type="radio" name="Line" value="items.itype" /></td>
152
            <td><input type="radio" name="Column" value="items.itype" /></td>
153
            <td><input type="radio" name="Column" value="items.itype" /></td>
153
           <td><select name="filter_items.itype" id="itype">
154
           <td><select name="filter_items.itype" id="itype">
Lines 159-165 Link Here
159
             </td> 
160
             </td> 
160
        </tr>
161
        </tr>
161
        <tr>
162
        <tr>
162
            <td>Pickup library</td>
163
            <td>[% t('Pickup library') %]</td>
163
            <td><input type="radio" name="Line" value="reserves.branchcode" checked="checked" /></td>
164
            <td><input type="radio" name="Line" value="reserves.branchcode" checked="checked" /></td>
164
            <td><input type="radio" name="Column" value="reserves.branchcode" /></td>
165
            <td><input type="radio" name="Column" value="reserves.branchcode" /></td>
165
            <td><select name="filter_reserves.branchcode" id="resbranchcode">
166
            <td><select name="filter_reserves.branchcode" id="resbranchcode">
Lines 169-175 Link Here
169
             </td> 
170
             </td> 
170
        </tr>
171
        </tr>
171
        <tr>
172
        <tr>
172
            <td>Holding library</td>
173
            <td>[% t('Holding library') %]</td>
173
            <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
174
            <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
174
            <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
175
            <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
175
            <td><select name="filter_items.holdingbranch" id="holdingbranch">
176
            <td><select name="filter_items.holdingbranch" id="holdingbranch">
Lines 179-185 Link Here
179
             </td> 
180
             </td> 
180
        </tr>
181
        </tr>
181
        <tr>
182
        <tr>
182
            <td>Home library</td>
183
            <td>[% t('Home library') %]</td>
183
            <td><input type="radio" name="Line" value="items.homebranch" /></td>
184
            <td><input type="radio" name="Line" value="items.homebranch" /></td>
184
            <td><input type="radio" name="Column" value="items.homebranch" /></td>
185
            <td><input type="radio" name="Column" value="items.homebranch" /></td>
185
            <td><select name="filter_items.homebranch" id="homebranch">
186
            <td><select name="filter_items.homebranch" id="homebranch">
Lines 189-196 Link Here
189
             </td> 
190
             </td> 
190
        </tr>
191
        </tr>
191
        <tr>
192
        <tr>
192
            <td>Collection</td>
193
            <td>[% t('Collection') %]</td>
193
            <td><input type="radio" name="Line"   value="items.ccode" /></td>
194
            <td><input type="radio" name="Line" value="items.ccode" /></td>
194
            <td><input type="radio" name="Column" value="items.ccode" /></td>
195
            <td><input type="radio" name="Column" value="items.ccode" /></td>
195
            <td><select name="filter_items.ccode" id="ccode">
196
            <td><select name="filter_items.ccode" id="ccode">
196
                <option value=""> </option>
197
                <option value=""> </option>
Lines 201-207 Link Here
201
            </td>
202
            </td>
202
        </tr>
203
        </tr>
203
        <tr>
204
        <tr>
204
            <td>Shelving location</td>
205
            <td>[% t('Shelving location') %]</td>
205
            <td><input type="radio" name="Line" value="items.location" /></td>
206
            <td><input type="radio" name="Line" value="items.location" /></td>
206
            <td><input type="radio" name="Column" value="items.location" /></td>
207
            <td><input type="radio" name="Column" value="items.location" /></td>
207
            <td><select name="filter_items.location" id="location">
208
            <td><select name="filter_items.location" id="location">
Lines 213-244 Link Here
213
            </td> 
214
            </td> 
214
        </tr>
215
        </tr>
215
        <tr>
216
        <tr>
216
            <td>Item call number</td>
217
            <td>[% t('Item call number') %]</td>
217
            <td></td>
218
            <td></td>
218
            <td></td>
219
            <td></td>
219
            <td>From <input type="text" name="filter_items.itemcallnumber_begin" size="10" /> (inclusive) to <input type="text" name="filter_items.itemcallnumber_endex" size="10" /> (exclusive) </td>
220
            <td>[% t('From') %] <input type="text" name="filter_items.itemcallnumber_begin" size="10" /> [% t('(inclusive) to') %] <input type="text" name="filter_items.itemcallnumber_endex" size="10" /> [% t('(exclusive)') %] </td>
220
        </tr>
221
        </tr>
221
        [% IF ( hassort1 ) %]
222
        [% IF ( hassort1 ) %]
222
        <tr><td>Patron sort 1</td>
223
        <tr><td>[% t('Patron sort 1') %]</td>
223
			<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
224
			<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
224
			<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
225
			<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
225
			<td><select name="filter_borrowers.sort1" id="sort1">
226
			<td><select name="filter_borrowers.sort1" id="sort1">
226
               <option value=""> </option>
227
               <option value=""> </option>
227
               [% FOREACH Bsort IN Bsort1 %]
228
               [% FOREACH Bsort IN Bsort1 %]
228
			   [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
229
			   [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]">[% Bsort.lib %]</option>[% END %]
229
               [% END %]
230
               [% END %]
230
               </select>
231
               </select>
231
            </td> 
232
            </td> 
232
        </tr>
233
        </tr>
233
        [% END %]
234
        [% END %]
234
        [% IF ( hassort2 ) %]
235
        [% IF ( hassort2 ) %]
235
        <tr><td>Patron sort 2</td>
236
        <tr><td>[% t('Patron sort 2') %]</td>
236
            <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
237
            <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
237
            <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
238
            <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
238
           	<td><select name="filter_borrowers.sort2" id="sort2">
239
           	<td><select name="filter_borrowers.sort2" id="sort2">
239
               <option value=""> </option>
240
               <option value=""> </option>
240
               [% FOREACH Bsort IN Bsort2 %]
241
               [% FOREACH Bsort IN Bsort2 %]
241
			   [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
242
			   [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]">[% Bsort.lib %]</option>[% END %]
242
               [% END %]
243
               [% END %]
243
               </select>
244
               </select>
244
            </td> 
245
            </td> 
Lines 247-265 Link Here
247
        </tbody>
248
        </tbody>
248
    </table><br /></fieldset>
249
    </table><br /></fieldset>
249
250
250
<fieldset class="rows"><legend>Cell value </legend><ol><li><label for="cellvalue1">Count holds:</label> <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" /> </li>
251
<fieldset class="rows"><legend>[% t('Cell value') %] </legend><ol><li><label for="cellvalue1">[% t('Count holds:') %]</label> <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" /> </li>
251
            <li><label for="cellvalue2">Count unique borrowers:</label> <input type="radio" name="Cellvalue" value="2" id="cellvalue2" /> </li><li><label for="cellvalue3">Count unique items:</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li><li><label for="cellvalue4">Count unique biblios:</label> <input type="radio" name="Cellvalue" id="cellvalue4" value="4" /> </li></ol></fieldset>
252
            <li><label for="cellvalue2">[% t('Count unique borrowers:') %]</label> <input type="radio" name="Cellvalue" value="2" id="cellvalue2" /> </li><li><label for="cellvalue3">[% t('Count unique items:') %]</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li><li><label for="cellvalue4">[% t('Count unique biblios:') %]</label> <input type="radio" name="Cellvalue" id="cellvalue4" value="4" /> </li></ol></fieldset>
252
			
253
			
253
	<fieldset class="rows">
254
	<fieldset class="rows">
254
	<legend>Output</legend>
255
	<legend>[% t('Output') %]</legend>
255
    <ol>
256
    <ol>
256
        <li>
257
        <li>
257
            <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
258
            <label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
258
        </li>
259
        </li>
259
        <li>
260
        <li>
260
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
261
            <label for="outputfile">[% t('To a file:') %]</label> <input type="radio" name="output" value="file" id="outputfile" />
261
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
262
            <label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
262
            <label class="inline" for="MIME">Into an application:</label>
263
            <label class="inline" for="MIME">[% t('Into an application:') %]</label>
263
            <select name="MIME" id="MIME" size="1">
264
            <select name="MIME" id="MIME" size="1">
264
            [% FOREACH value IN CGIextChoice %]
265
            [% FOREACH value IN CGIextChoice %]
265
                <option value="[% value %]">[% value %]</option>
266
                <option value="[% value %]">[% value %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/serials_stats.tt (-25 / +25 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Reports &rsaquo; Serials subscriptions stats</title>
7
<title>[% t('Koha › Reports › Serials subscriptions stats') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
<style type="text/css">
9
<style type="text/css">
9
	.sql {display: none;}
10
	.sql {display: none;}
Lines 15-40 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'cat-search.inc' %]
17
[% INCLUDE 'cat-search.inc' %]
17
18
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; Serials subscriptions stats</div>
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">[% t('Reports') %]</a> [% t('› Serials subscriptions stats') %]</div>
19
20
20
<div id="doc3" class="yui-t2">
21
<div id="doc3" class="yui-t2">
21
   <div id="bd">
22
   <div id="bd">
22
	<div id="yui-main">
23
	<div id="yui-main">
23
	<div class="yui-b">
24
	<div class="yui-b">
24
25
25
	<h1>Serials subscriptions</h1>
26
	<h1>[% t('Serials subscriptions') %]</h1>
26
[% IF ( do_it ) %]
27
[% IF ( do_it ) %]
27
	<table id="resulttable">
28
	<table id="resulttable">
28
		<thead>
29
		<thead>
29
			<tr>
30
			<tr>
30
				<th>Vendor</th>
31
				<th>[% t('Vendor') %]</th>
31
				<th>Title</th>
32
				<th>[% t('Title') %]</th>
32
				<th>Subscription id</th>
33
				<th>[% t('Subscription id') %]</th>
33
				<th>Branch</th>
34
				<th>[% t('Branch') %]</th>
34
                <th>Call number</th>
35
                <th>[% t('Call number') %]</th>
35
                <th>Subscription begin</th>
36
                <th>[% t('Subscription begin') %]</th>
36
                <th>Subscription end</th>
37
                <th>[% t('Subscription end') %]</th>
37
                <th>Expired? / Closed?</th>
38
                <th>[% t('Expired? / Closed?') %]</th>
38
			</tr>
39
			</tr>
39
		</thead>
40
		</thead>
40
		<tbody>
41
		<tbody>
Lines 49-57 Link Here
49
                    <td><span title="[% data.enddate %]">[% data.enddate | $KohaDates %]</span></td>
50
                    <td><span title="[% data.enddate %]">[% data.enddate | $KohaDates %]</span></td>
50
                    <td>
51
                    <td>
51
                        [% IF data.closed %]
52
                        [% IF data.closed %]
52
                            Closed
53
                            [% t('Closed') %]
53
                        [% ELSIF data.expired %]
54
                        [% ELSIF data.expired %]
54
                            Expired
55
                            [% t('Expired') %]
55
                        [% END %]
56
                        [% END %]
56
                    </td>
57
                    </td>
57
				</tr>
58
				</tr>
Lines 68-93 Link Here
68
			<li>
69
			<li>
69
70
70
				<label for="bookseller">
71
				<label for="bookseller">
71
					Vendor:
72
					[% t('Vendor:') %]
72
			    </label>
73
			    </label>
73
				<select name="bookseller" id="bookseller">
74
				<select name="bookseller" id="bookseller">
74
                    <option value="">Any vendor</option>
75
                    <option value="">[% t('Any vendor') %]</option>
75
    				[% FOREACH bookseller IN booksellers %]
76
    				[% FOREACH bookseller IN booksellers %]
76
						<option value="[% bookseller.aqbooksellerid %]">[% bookseller.name %]</option>
77
						<option value="[% bookseller.aqbooksellerid %]">[% bookseller.name %]</option>
77
					[% END %]
78
					[% END %]
78
			    </select>
79
			    </select>
79
			</li><li>
80
			</li><li>
80
                <label for="branchcode">
81
                <label for="branchcode">
81
					Library:
82
					[% t('Library:') %]
82
		    	</label>
83
		    	</label>
83
		    	<select name="branchcode"  id="branchcode">
84
		    	<select name="branchcode" id="branchcode">
84
				<option value="">Any library</option>
85
				<option value="">[% t('Any library') %]</option>
85
                [% PROCESS options_for_libraries libraries => Branches.all() %]
86
                [% PROCESS options_for_libraries libraries => Branches.all() %]
86
		    	</select>
87
		    	</select>
87
88
88
		    </li>
89
		    </li>
89
		    <li>
90
		    <li>
90
		    	<label for="expired">Include expired subscriptions: </label>
91
		    	<label for="expired">[% t('Include expired subscriptions:') %] </label>
91
                <input type="checkbox" name="expired" id="expired" />
92
                <input type="checkbox" name="expired" id="expired" />
92
		    </li>
93
		    </li>
93
		</ol>
94
		</ol>
Lines 95-109 Link Here
95
96
96
97
97
	<fieldset class="rows">
98
	<fieldset class="rows">
98
	<legend>Output</legend>
99
	<legend>[% t('Output') %]</legend>
99
    <ol>
100
    <ol>
100
        <li>
101
        <li>
101
            <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
102
            <label for="outputscreen">[% t('To screen into the browser:') %] </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
102
        </li>
103
        </li>
103
        <li>
104
        <li>
104
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
105
            <label for="outputfile">[% t('To a file:') %]</label> <input type="radio" name="output" value="file" id="outputfile" />
105
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
106
            <label class="inline" for="basename">[% t('Named:') %] </label><input type="text" name="basename" id="basename" value="Export" />
106
            <label class="inline" for="MIME">Into an application:</label>
107
            <label class="inline" for="MIME">[% t('Into an application:') %]</label>
107
            <select name="MIME" id="MIME" size="1">
108
            <select name="MIME" id="MIME" size="1">
108
            [% FOREACH value IN CGIextChoice %]
109
            [% FOREACH value IN CGIextChoice %]
109
                <option value="[% value %]">[% value %]</option>
110
                <option value="[% value %]">[% value %]</option>
110
- 

Return to bug 20988