Bug 29602: Surround strings with span tag
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / acquisitions_stats.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( do_it ) %]Acquisitions statistics &rsaquo; Results[% ELSE %]Acquisitions statistics[% END %] &rsaquo; Reports &rsaquo; Koha</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="rep_acquisitions_stats" class="rep">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
10
11 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
12     <ol>
13         <li>
14             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
15         </li>
16         <li>
17             <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
18         </li>
19         [% IF ( do_it ) %]
20             <li>
21                 <a href="/cgi-bin/koha/reports/acquisitions_stats.pl">Acquisitions statistics</a>
22             </li>
23             <li>
24                 <a href="#" aria-current="page">
25                     Results
26                 </a>
27             </li>
28         [% ELSE %]
29             <li>
30                 <a href="#" aria-current="page">
31                     Acquisitions statistics
32                 </a>
33             </li>
34         [% END %]
35     </ol>
36 </nav>
37
38 <div class="main container-fluid">
39     <div class="row">
40         <div class="col-sm-10 col-sm-push-2">
41             <main>
42
43 [% IF ( do_it ) %]
44         [% FOREACH mainloo IN mainloop %]
45                 <h1>Acquisitions statistics </h1>
46         [% IF ( mainloo.loopfilter.size ) %]
47             <p><strong>Filtered on:</strong></p>
48             [% FOREACH loopfilte IN mainloo.loopfilter %]
49                 <p>
50                     [% SWITCH loopfilte.crit %]
51                         [% CASE '0' %]<span>Placed on (from)</span>
52                         [% CASE '1' %]<span>Placed on (to)</span>
53                         [% CASE '2' %]<span>Received on (from)</span>
54                         [% CASE '3' %]<span>Received on (to)</span>
55                         [% CASE '4' %]<span>Vendor</span>
56                         [% CASE '5' %]<span>Home library</span>
57                         [% CASE '6' %]<span>Collection</span>
58                         [% CASE '7' %]<span>Item type</span>
59                         [% CASE '8' %]<span>Fund</span>
60                         [% CASE '9' %]<span>Sort1</span>
61                         [% CASE '10' %]<span>Sort2</span>
62                         [% CASE %]<span>Unknown filter</span>
63                     [% END %]
64                     : [% loopfilte.filter | html %]
65                 </p>
66                         [% END %]
67                 [% END %]
68
69                 <table>
70                         <tr >
71                                 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
72                                 [% FOREACH loopco IN mainloo.loopcol %]
73                                         <th>[% loopco.coltitle | html %]</th>
74                                 [% END %]
75                                 <th>TOTAL</th>
76                         </tr>
77                                 [% FOREACH loopro IN mainloo.looprow %]
78                                         <tr>
79                                                 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
80                                                 [% loopro.rowtitle | html %]</td>
81                                                 [% FOREACH loopcel IN loopro.loopcell %]
82                                                         [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
83                                                                 [% IF ( loopcel.value ) %][% loopcel.value | html %]
84                                                                 [% ELSE %] &nbsp;
85                                                                 [% END %]
86                                                         </td>
87                                                 [% END %]
88                                                 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
89                                                         [% loopro.totalrow | html %]
90                                                 </td>
91                                         </tr>
92                                 [% END %]
93                                 <tr >
94                                         <th>TOTAL</th>
95                                         [% FOREACH loopfoote IN mainloo.loopfooter %]
96                                                 <th>
97                                                         [% loopfoote.totalcol | html %]
98                                                 </th>
99                                         [% END %]
100                                         <th>[% mainloo.total | html %]</th>
101                                 </tr>
102                 </table>
103         [% END %]
104 [% ELSE %]
105         <form method="post" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
106         <fieldset class="rows">
107         <legend>Acquisitions statistics</legend>
108         <table>
109                 <thead>
110                         <tr>
111                         <th>Title</th>
112                         <th>Row</th>
113                         <th>Column</th>
114                         <th>Filter</th>
115                         </tr>
116                 </thead>
117                 <tbody>
118                         <tr class="hilighted">
119                 <td>Placed on</td>
120                                 <td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
121                                 <td><input type="radio" checked="checked" name="Column" value="aqbasket.closedate" /> </td>
122                 <td>
123                     From <input type="text" size="10" id="placedonfrom" name="Filter" value="" class="flatpickr" data-date_to="placedonto" />
124                     <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
125                     To <input size="10" id="placedonto" name="Filter" type="text" value="" class="flatpickr" />
126                     <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
127                 </td>
128                         </tr>
129                         <tr class="hilighted">
130                                 <td>&nbsp;</td>
131                                 <td colspan="2">group by <select name="PlacedOnDisplay">
132                                         <option value="">None</option>
133                                         <option value ="1">Day of week</option>
134                                         <option value ="2">Month</option>
135                                         <option value ="3">Year</option>
136                                         </select>
137
138                                 </td>
139                                 <td>&nbsp;</td>
140                         </tr>
141                         <tr>
142                 <td>Received on</td>
143                                 <td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
144                                 <td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
145                 <td>
146                     From <input type="text" size="10" id="receivedonfrom" name="Filter" value="" class="flatpickr" data-date_to="receivedonto" />
147                     <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
148                     To <input type="text" size="10" id="receivedonto" name="Filter" value="" class="flatpickr" />
149                     <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
150                 </td>
151                         </tr>
152                         <tr>
153                                 <td>&nbsp;</td>
154                                 <td colspan="2">group by <select name="ReceivedOnDisplay">
155                                         <option value="">None</option>
156                                         <option value ="1">Day of week</option>
157                                         <option value ="2">Month</option>
158                                         <option value ="3">Year</option>
159                                         </select>
160
161                                 </td>
162                                 <td>&nbsp;</td>
163                         </tr>
164                         <tr class="hilighted">
165                                 <td>Vendor</td>
166                                 <td><input type="radio" checked="checked" name="Line" value="aqbooksellers.name" /></td>
167                                 <td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
168                 <td>
169                     <select name="Filter">
170                         <option value="">All vendors</option>
171                         [% FOREACH bookseller IN booksellers %]
172                             <option value="[% bookseller.name | html %]">[% bookseller.name | html %]</option>
173                         [% END %]
174                     </select>
175                 </td>
176             </tr>
177             <tr>
178                 <td>Home library</td>
179                 <td><input type="radio" name="Line" value="items.homebranch" /></td>
180                 <td><input type="radio" name="Column" value="items.homebranch" /></td>
181                 <td>
182                     <select name="Filter">
183                         <option value="" selected="selected">All libraries</option>
184                         [% FOREACH branch IN branches %]
185                             <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
186                         [% END %]
187                     </select>
188                 </td>
189             </tr>
190             <tr>
191                 <td>
192                     [% IF ccode_label %]
193                         [% ccode_label | html %]
194                     [% ELSE %]
195                         <span>Collection</span>
196                     [% END %]
197                 </td>
198                 <td><input type="radio" name="Line" value="items.ccode" /></td>
199                 <td><input type="radio" name="Column" value="items.ccode" /></td>
200                 <td>
201                     [% IF ccode_avlist.size %]
202                         <select name="Filter">
203                             <option value="" selected="selected">All</option>
204                             [% FOREACH ccode_av IN ccode_avlist %]
205                                 <option value="[% ccode_av.authorised_value | html %]">[% ccode_av.lib | html %]</option>
206                             [% END %]
207                         </select>
208                     [% ELSE %]
209                         <input type="text" name="Filter" />
210                     [% END %]
211                 </td>
212             </tr>
213                         <tr>
214                 <td>Item type</td>
215                                 <td><input type="radio" name="Line" value="biblioitems.itemtype" /></td>
216                                 <td><input type="radio" name="Column" value="biblioitems.itemtype" /></td>
217                 <td>
218                     <select name="Filter" id="itemtypes">
219                         <option value="">All item types</option>
220                         [% FOREACH itemtype IN itemtypes %]
221                         <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
222                         [% END %]
223                     </select>
224                 </td>
225                         </tr>
226
227                         <tr>
228                                 <td>Fund</td>
229                                 <td><input type="radio" name="Line" value="aqbudgets.budget_code" /></td>
230                                 <td><input type="radio" name="Column" value="aqbudgets.budget_code" /></td>
231                 <td>
232                     <select name="Filter" id="budget">
233                         <option value="">All funds</option>
234                         [% FOREACH value IN Budgets.values %]
235                         <option value="[% value | html %]">[% Budgets.labels.$value | html %]</option>
236                         [% END %]
237                     </select>
238                 </td>
239                         </tr>
240
241                         [% IF ( hassort1 ) %]
242                                 <tr class="hilighted">
243                                         <td>Sort1</td>
244                                         <td><input type="radio" name="Line" value="aqorders.sort1" /></td>
245                                         <td><input type="radio" name="Column" value="aqorders.sort1" /></td>
246                     <td>
247                         <select name="Filter" id="sort1">
248                             <option value="">All</option>
249                             [% FOREACH value IN Sort1.values %]
250                             <option value="[% value | html %]">[% Sort1.labels.$value | html %]</option>
251                             [% END %]
252                         </select>
253                     </td>
254                                 </tr>
255                         [% END %]
256                         [% IF ( hassort2 ) %]
257                                 [% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
258                                         <td>Sort2</td>
259                                         <td><input type="radio" name="Line" value="aqorders.sort2" /></td>
260                                         <td><input type="radio" name="Column" value="aqorders.sort2" /></td>
261                     <td>
262                         <select name="Filter" id="sort2">
263                             <option value="">All</option>
264                             [% FOREACH value IN Sort2.values %]
265                             <option value="[% value | html %]">[% Sort2.labels.$value | html %]</option>
266                             [% END %]
267                         </select>
268                     </td>
269                                 </tr>
270                         [% END %]
271                 </tbody>
272         </table><br />
273         </fieldset>
274
275 <fieldset class="rows">
276     <legend> Cell value </legend>
277     <ol>
278         <li>
279             <label for="cellvalue1">Count items:</label><input type="radio" name="Cellvalue" id="cellvalue1" value="1" checked="checked" />
280         </li>
281         <li>
282             <label for="cellvalue2">Count unique bibliographic records:</label><input type="radio" name="Cellvalue" id="cellvalue2" value="2" />
283         </li>
284         <li>
285             <label for="cellvalue3">Amount:</label><input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
286         </li>
287         <li>
288             <label for="cellvalue4">Ordered amount:</label><input type="radio" name="Cellvalue" id="cellvalue4" value="4" />
289         </li>
290         <li>
291             <label for="cellvalue5">Spent amount:</label><input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
292         </li>
293     </ol>
294 </fieldset>
295
296         <fieldset class="rows">
297         <legend>Output</legend>
298     <ol>
299         <li>
300             <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
301         </li>
302         <li>
303             <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
304             <label class="inline" for="basename">Named: </label> <input type="text" name="basename" id="basename" value="Export" />
305             <label class="inline" for="MIME">Into an application:</label>
306             <select name="MIME" id="MIME">
307                 <option value="CSV">CSV</option>
308             </select>
309             <select name="sep" id="sep">
310             [% FOREACH value IN CGIsepChoice.values.sort() %]
311               [% IF ( value == CGIsepChoice.default ) %]
312                 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
313               [% ELSE %]
314                 <option value="[% value | html %]">[% value | html %]</option>
315               [% END %]
316             [% END %]
317             </select>
318         </li>
319     </ol>
320         </fieldset>
321
322         <fieldset class="action">
323         <input type="submit" value="Submit" />
324         <input type="hidden" name="report_name" value="[% report_name | html %]" />
325         <input type="hidden" name="do_it" value="1" />
326         </fieldset>
327         </form>
328 [% END %]
329
330             </main>
331         </div> <!-- /.col-sm-10.col-sm-push-2 -->
332
333         <div class="col-sm-2 col-sm-pull-10">
334             <aside>
335                 [% INCLUDE 'reports-menu.inc' %]
336             </aside>
337         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
338      </div> <!-- /.row -->
339
340 [% MACRO jsinclude BLOCK %]
341     [% INCLUDE 'calendar.inc' %]
342 [% END %]
343
344 [% INCLUDE 'intranet-bottom.inc' %]