2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Reports [% IF ( do_it ) %]› Acquisitions statistics › Results[% ELSE %]› Acquisitions statistics[% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="rep_acquisitions_stats" class="rep">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]› <a href="/cgi-bin/koha/reports/acquisitions_stats.pl">Acquisitions statistics</a> › Results[% ELSE %] › Acquisitions statistics [% END %]</div>
13 <div class="main container-fluid">
15 <div class="col-sm-10 col-sm-push-2">
19 [% FOREACH mainloo IN mainloop %]
20 <h1>Acquisitions statistics </h1>
21 [% IF ( mainloo.loopfilter.size ) %]
22 <p><b>Filtered on:</b></p>
23 [% FOREACH loopfilte IN mainloo.loopfilter %]
25 [% SWITCH loopfilte.crit %]
26 [% CASE '0' %] Placed on (from)
27 [% CASE '1' %] Placed on (to)
28 [% CASE '2' %] Received on (from)
29 [% CASE '3' %] Received on (to)
31 [% CASE '5' %] Home library
32 [% CASE '6' %] Collection
33 [% CASE '7' %] Item type
37 [% CASE %] Unknown filter
39 : [% loopfilte.filter | html %]
46 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
47 [% FOREACH loopco IN mainloo.loopcol %]
48 <th>[% loopco.coltitle | html %]</th>
52 [% FOREACH loopro IN mainloo.looprow %]
54 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
55 [% loopro.rowtitle | html %]</td>
56 [% FOREACH loopcel IN loopro.loopcell %]
57 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
58 [% IF ( loopcel.value ) %][% loopcel.value | html %]
63 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
64 [% loopro.totalrow | html %]
70 [% FOREACH loopfoote IN mainloo.loopfooter %]
72 [% loopfoote.totalcol | html %]
75 <th>[% mainloo.total | html %]</th>
80 <form method="post" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
81 <fieldset class="rows">
82 <legend>Acquisitions statistics</legend>
93 <tr class="hilighted">
95 <td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
96 <td><input type="radio" checked="checked" name="Column" value="aqbasket.closedate" /> </td>
97 <td> From <input type="text" size="10" id="from" name="Filter" value="" />
98 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
99 To <input size="10" id="to" name="Filter" type="text" value="" />
100 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
103 <tr class="hilighted">
105 <td colspan="2">group by <select name="PlacedOnDisplay">
106 <option value="">None</option>
107 <option value ="1">Day of week</option>
108 <option value ="2">Month</option>
109 <option value ="3">Year</option>
117 <td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
118 <td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
119 <td> From <input type="text" size="10" id="fromRO" name="Filter" value="" />
120 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
121 To <input type="text" size="10" id="toRO" name="Filter" value="" />
122 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
127 <td colspan="2">group by <select name="ReceivedOnDisplay">
128 <option value="">None</option>
129 <option value ="1">Day of week</option>
130 <option value ="2">Month</option>
131 <option value ="3">Year</option>
137 <tr class="hilighted">
139 <td><input type="radio" checked="checked" name="Line" value="aqbooksellers.name" /></td>
140 <td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
142 <select name="Filter">
143 <option value="">All vendors</option>
144 [% FOREACH bookseller IN booksellers %]
145 <option value="[% bookseller.name | html %]">[% bookseller.name | html %]</option>
151 <td>Home library</td>
152 <td><input type="radio" name="Line" value="items.homebranch" /></td>
153 <td><input type="radio" name="Column" value="items.homebranch" /></td>
155 <select name="Filter">
156 <option value="" selected="selected">All libraries</option>
157 [% FOREACH branch IN branches %]
158 <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
166 [% ccode_label | html %]
171 <td><input type="radio" name="Line" value="items.ccode" /></td>
172 <td><input type="radio" name="Column" value="items.ccode" /></td>
174 [% IF ccode_avlist.size %]
175 <select name="Filter">
176 <option value="" selected="selected">All</option>
177 [% FOREACH ccode_av IN ccode_avlist %]
178 <option value="[% ccode_av.authorised_value | html %]">[% ccode_av.lib | html %]</option>
182 <input type="text" name="Filter" />
188 <td><input type="radio" name="Line" value="biblioitems.itemtype" /></td>
189 <td><input type="radio" name="Column" value="biblioitems.itemtype" /></td>
191 <select name="Filter" size="1" id="itemtypes">
192 <option value="">All item types</option>
193 [% FOREACH itemtype IN itemtypes %]
194 <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
202 <td><input type="radio" name="Line" value="aqbudgets.budget_code" /></td>
203 <td><input type="radio" name="Column" value="aqbudgets.budget_code" /></td>
205 <select name="Filter" size="1" id="budget">
206 <option value="">All funds</option>
207 [% FOREACH value IN Budgets.values %]
208 <option value="[% value | html %]">[% Budgets.labels.$value | html %]</option>
214 [% IF ( hassort1 ) %]
215 <tr class="hilighted">
217 <td><input type="radio" name="Line" value="aqorders.sort1" /></td>
218 <td><input type="radio" name="Column" value="aqorders.sort1" /></td>
220 <select name="Filter" size="1" id="sort1">
221 <option value="">All</option>
222 [% FOREACH value IN Sort1.values %]
223 <option value="[% value | html %]">[% Sort1.labels.$value | html %]</option>
229 [% IF ( hassort2 ) %]
230 [% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
232 <td><input type="radio" name="Line" value="aqorders.sort2" /></td>
233 <td><input type="radio" name="Column" value="aqorders.sort2" /></td>
235 <select name="Filter" size="1" id="sort2">
236 <option value="">All</option>
237 [% FOREACH value IN Sort2.values %]
238 <option value="[% value | html %]">[% Sort2.labels.$value | html %]</option>
248 <fieldset class="rows">
249 <legend> Cell value </legend>
252 <label for="cellvalue1">Count items:</label><input type="radio" name="Cellvalue" id="cellvalue1" value="1" checked="checked" />
255 <label for="cellvalue2">Count unique bibliographic records:</label><input type="radio" name="Cellvalue" id="cellvalue2" value="2" />
258 <label for="cellvalue3">Amount:</label><input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
261 <label for="cellvalue4">Ordered amount:</label><input type="radio" name="Cellvalue" id="cellvalue4" value="4" />
264 <label for="cellvalue5">Spent amount:</label><input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
269 <fieldset class="rows">
270 <legend>Output</legend>
273 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
276 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
277 <label class="inline" for="basename">Named: </label> <input type="text" name="basename" id="basename" value="Export" />
278 <label class="inline" for="MIME">Into an application:</label>
279 <select name="MIME" id="MIME" size="1">
280 <option value="CSV">CSV</option>
282 <select name="sep" id="sep" size="1">
283 [% FOREACH value IN CGIsepChoice.values.sort() %]
284 [% IF ( value == CGIsepChoice.default ) %]
285 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
287 <option value="[% value | html %]">[% value | html %]</option>
295 <fieldset class="action">
296 <input type="submit" value="Submit" />
297 <input type="hidden" name="report_name" value="[% report_name | html %]" />
298 <input type="hidden" name="do_it" value="1" />
304 </div> <!-- /.col-sm-10.col-sm-push-2 -->
306 <div class="col-sm-2 col-sm-pull-10">
308 [% INCLUDE 'reports-menu.inc' %]
310 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
311 </div> <!-- /.row -->
313 [% MACRO jsinclude BLOCK %]
314 [% INCLUDE 'calendar.inc' %]
316 $(document).ready(function() {
317 // http://jqueryui.com/demos/datepicker/#date-range
318 var dates = $( "#from, #to" ).datepicker({
321 onSelect: function( selectedDate ) {
322 var option = this.id == "from" ? "minDate" : "maxDate",
323 instance = $( this ).data( "datepicker" );
324 date = $.datepicker.parseDate(
325 instance.settings.dateFormat ||
326 $.datepicker._defaults.dateFormat,
327 selectedDate, instance.settings );
328 dates.not( this ).datepicker( "option", option, date );
331 var datesRO = $( "#fromRO, #toRO" ).datepicker({
334 onSelect: function( selectedDate ) {
335 var option = this.id == "fromRO" ? "minDate" : "maxDate",
336 instance = $( this ).data( "datepicker" );
337 date = $.datepicker.parseDate(
338 instance.settings.dateFormat ||
339 $.datepicker._defaults.dateFormat,
340 selectedDate, instance.settings );
341 datesRO.not( this ).datepicker( "option", option, date );
348 [% INCLUDE 'intranet-bottom.inc' %]