3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( do_it ) %]Acquisitions statistics › Results[% ELSE %]Acquisitions statistics[% END %] › Reports › Koha</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="rep_acquisitions_stats" class="rep">
9 [% WRAPPER 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
13 [% WRAPPER 'sub-header.inc' %]
14 [% WRAPPER breadcrumbs %]
15 [% WRAPPER breadcrumb_item %]
16 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
19 [% WRAPPER breadcrumb_item %]
20 <a href="/cgi-bin/koha/reports/acquisitions_stats.pl">Acquisitions statistics</a>
22 [% WRAPPER breadcrumb_item bc_active= 1 %]
26 [% WRAPPER breadcrumb_item bc_active= 1 %]
27 <span>Acquisitions statistics</span>
30 [% END #/ WRAPPER breadcrumbs %]
31 [% END #/ WRAPPER sub-header.inc %]
33 <div class="main container-fluid">
35 <div class="col-sm-10 col-sm-push-2">
38 <h1>Acquisitions statistics </h1>
40 [% FOREACH mainloo IN mainloop %]
41 [% IF ( mainloo.loopfilter.size ) %]
42 <p><strong>Filtered on:</strong></p>
43 [% FOREACH loopfilte IN mainloo.loopfilter %]
45 [% SWITCH loopfilte.crit %]
46 [% CASE '0' %]<span>Placed on (from)</span>
47 [% CASE '1' %]<span>Placed on (to)</span>
48 [% CASE '2' %]<span>Received on (from)</span>
49 [% CASE '3' %]<span>Received on (to)</span>
50 [% CASE '4' %]<span>Vendor</span>
51 [% CASE '5' %]<span>Home library</span>
52 [% CASE '6' %]<span>Collection</span>
53 [% CASE '7' %]<span>Item type</span>
54 [% CASE '8' %]<span>Fund</span>
55 [% CASE '9' %]<span>Sort1</span>
56 [% CASE '10' %]<span>Sort2</span>
57 [% CASE %]<span>Unknown filter</span>
59 : [% loopfilte.filter | html %]
66 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
67 [% FOREACH loopco IN mainloo.loopcol %]
68 <th>[% loopco.coltitle | html %]</th>
72 [% FOREACH loopro IN mainloo.looprow %]
74 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
75 [% loopro.rowtitle | html %]</td>
76 [% FOREACH loopcel IN loopro.loopcell %]
77 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
78 [% IF ( loopcel.value ) %][% loopcel.value | html %]
83 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
84 [% loopro.totalrow | html %]
90 [% FOREACH loopfoote IN mainloo.loopfooter %]
92 [% loopfoote.totalcol | html %]
95 <th>[% mainloo.total | html %]</th>
100 <form method="post" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
101 <fieldset class="rows">
102 <legend>Acquisitions statistics</legend>
113 <tr class="hilighted">
115 <td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
116 <td><input type="radio" checked="checked" name="Column" value="aqbasket.closedate" /> </td>
118 From <input type="text" size="10" id="placedonfrom" name="Filter" value="" class="flatpickr" data-date_to="placedonto" />
119 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
120 To <input size="10" id="placedonto" name="Filter" type="text" value="" class="flatpickr" />
121 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
124 <tr class="hilighted">
126 <td colspan="2">group by <select name="PlacedOnDisplay">
127 <option value="">None</option>
128 <option value ="1">Day of week</option>
129 <option value ="2">Month</option>
130 <option value ="3">Year</option>
138 <td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
139 <td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
141 From <input type="text" size="10" id="receivedonfrom" name="Filter" value="" class="flatpickr" data-date_to="receivedonto" />
142 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
143 To <input type="text" size="10" id="receivedonto" name="Filter" value="" class="flatpickr" />
144 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
149 <td colspan="2">group by <select name="ReceivedOnDisplay">
150 <option value="">None</option>
151 <option value ="1">Day of week</option>
152 <option value ="2">Month</option>
153 <option value ="3">Year</option>
159 <tr class="hilighted">
161 <td><input type="radio" checked="checked" name="Line" value="aqbooksellers.name" /></td>
162 <td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
164 <select name="Filter">
165 <option value="">All vendors</option>
166 [% FOREACH bookseller IN booksellers %]
167 <option value="[% bookseller.name | html %]">[% bookseller.name | html %]</option>
173 <td>Home library</td>
174 <td><input type="radio" name="Line" value="items.homebranch" /></td>
175 <td><input type="radio" name="Column" value="items.homebranch" /></td>
177 <select name="Filter">
178 <option value="" selected="selected">All libraries</option>
179 [% FOREACH branch IN branches %]
180 <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
188 [% ccode_label | html %]
190 <span>Collection</span>
193 <td><input type="radio" name="Line" value="items.ccode" /></td>
194 <td><input type="radio" name="Column" value="items.ccode" /></td>
196 [% IF ccode_avlist.size %]
197 <select name="Filter">
198 <option value="" selected="selected">All</option>
199 [% FOREACH ccode_av IN ccode_avlist %]
200 <option value="[% ccode_av.authorised_value | html %]">[% ccode_av.lib | html %]</option>
204 <input type="text" name="Filter" />
210 <td><input type="radio" name="Line" value="biblioitems.itemtype" /></td>
211 <td><input type="radio" name="Column" value="biblioitems.itemtype" /></td>
213 <select name="Filter" id="itemtypes">
214 <option value="">All item types</option>
215 [% FOREACH itemtype IN itemtypes %]
216 <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
224 <td><input type="radio" name="Line" value="aqbudgets.budget_code" /></td>
225 <td><input type="radio" name="Column" value="aqbudgets.budget_code" /></td>
227 <select name="Filter" id="budget">
228 <option value="">All funds</option>
229 [% FOREACH value IN Budgets.values %]
230 <option value="[% value | html %]">[% Budgets.labels.$value | html %]</option>
236 [% IF ( hassort1 ) %]
237 <tr class="hilighted">
239 <td><input type="radio" name="Line" value="aqorders.sort1" /></td>
240 <td><input type="radio" name="Column" value="aqorders.sort1" /></td>
242 <select name="Filter" id="sort1">
243 <option value="">All</option>
244 [% FOREACH value IN Sort1.values %]
245 <option value="[% value | html %]">[% Sort1.labels.$value | html %]</option>
251 [% IF ( hassort2 ) %]
252 [% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
254 <td><input type="radio" name="Line" value="aqorders.sort2" /></td>
255 <td><input type="radio" name="Column" value="aqorders.sort2" /></td>
257 <select name="Filter" id="sort2">
258 <option value="">All</option>
259 [% FOREACH value IN Sort2.values %]
260 <option value="[% value | html %]">[% Sort2.labels.$value | html %]</option>
270 <fieldset class="rows">
271 <legend> Cell value </legend>
274 <label for="cellvalue1">Count items:</label><input type="radio" name="Cellvalue" id="cellvalue1" value="1" checked="checked" />
277 <label for="cellvalue2">Count unique bibliographic records:</label><input type="radio" name="Cellvalue" id="cellvalue2" value="2" />
280 <label for="cellvalue3">Amount:</label><input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
283 <label for="cellvalue4">Ordered amount:</label><input type="radio" name="Cellvalue" id="cellvalue4" value="4" />
286 <label for="cellvalue5">Spent amount:</label><input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
291 <fieldset class="rows">
292 <legend>Output</legend>
295 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
298 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
299 <label class="inline" for="basename">Named: </label> <input type="text" name="basename" id="basename" value="Export" />
300 <label class="inline" for="MIME">Into an application:</label>
301 <select name="MIME" id="MIME">
302 <option value="CSV">CSV</option>
304 <select name="sep" id="sep">
305 [% FOREACH value IN CGIsepChoice.values.sort() %]
306 [% IF ( value == CGIsepChoice.default ) %]
307 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
309 <option value="[% value | html %]">[% value | html %]</option>
317 <fieldset class="action">
318 <input type="submit" class="btn btn-primary" value="Submit" />
319 <input type="hidden" name="report_name" value="[% report_name | html %]" />
320 <input type="hidden" name="do_it" value="1" />
326 </div> <!-- /.col-sm-10.col-sm-push-2 -->
328 <div class="col-sm-2 col-sm-pull-10">
330 [% INCLUDE 'reports-menu.inc' %]
332 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
333 </div> <!-- /.row -->
335 [% MACRO jsinclude BLOCK %]
336 [% INCLUDE 'calendar.inc' %]
339 [% INCLUDE 'intranet-bottom.inc' %]