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 id="doc3" class="yui-t2">
20 [% FOREACH mainloo IN mainloop %]
21 <h1>Acquisitions statistics </h1>
22 [% IF ( mainloo.loopfilter.size ) %]
23 <p><b>Filtered on:</b></p>
24 [% FOREACH loopfilte IN mainloo.loopfilter %]
26 [% SWITCH loopfilte.crit %]
27 [% CASE '0' %] Placed on (from)
28 [% CASE '1' %] Placed on (to)
29 [% CASE '2' %] Received on (from)
30 [% CASE '3' %] Received on (to)
32 [% CASE '5' %] Home library
33 [% CASE '6' %] Collection
34 [% CASE '7' %] Item type
38 [% CASE %] Unknown filter
40 : [% loopfilte.filter | html %]
47 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
48 [% FOREACH loopco IN mainloo.loopcol %]
49 <th>[% loopco.coltitle | html %]</th>
53 [% FOREACH loopro IN mainloo.looprow %]
55 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
56 [% loopro.rowtitle | html %]</td>
57 [% FOREACH loopcel IN loopro.loopcell %]
58 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
59 [% IF ( loopcel.value ) %][% loopcel.value | html %]
64 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
65 [% loopro.totalrow | html %]
71 [% FOREACH loopfoote IN mainloo.loopfooter %]
73 [% loopfoote.totalcol | html %]
76 <th>[% mainloo.total | html %]</th>
81 <form method="post" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
82 <fieldset class="rows">
83 <legend>Acquisitions statistics</legend>
94 <tr class="hilighted">
96 <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> From <input type="text" size="10" id="from" name="Filter" value="" />
99 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
100 To <input size="10" id="to" name="Filter" type="text" value="" />
101 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
104 <tr class="hilighted">
106 <td colspan="2">group by <select name="PlacedOnDisplay">
107 <option value="">None</option>
108 <option value ="1">Day of week</option>
109 <option value ="2">Month</option>
110 <option value ="3">Year</option>
118 <td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
119 <td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
120 <td> From <input type="text" size="10" id="fromRO" name="Filter" value="" />
121 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
122 To <input type="text" size="10" id="toRO" name="Filter" value="" />
123 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
128 <td colspan="2">group by <select name="ReceivedOnDisplay">
129 <option value="">None</option>
130 <option value ="1">Day of week</option>
131 <option value ="2">Month</option>
132 <option value ="3">Year</option>
138 <tr class="hilighted">
140 <td><input type="radio" checked="checked" name="Line" value="aqbooksellers.name" /></td>
141 <td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
143 <select name="Filter">
144 <option value="">All vendors</option>
145 [% FOREACH bookseller IN booksellers %]
146 <option value="[% bookseller.name | html %]">[% bookseller.name | html %]</option>
152 <td>Home library</td>
153 <td><input type="radio" name="Line" value="items.homebranch" /></td>
154 <td><input type="radio" name="Column" value="items.homebranch" /></td>
156 <select name="Filter">
157 <option value="" selected="selected">All libraries</option>
158 [% FOREACH branch IN branches %]
159 <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
167 [% ccode_label | html %]
172 <td><input type="radio" name="Line" value="items.ccode" /></td>
173 <td><input type="radio" name="Column" value="items.ccode" /></td>
175 [% IF ccode_avlist.size %]
176 <select name="Filter">
177 <option value="" selected="selected">All</option>
178 [% FOREACH ccode_av IN ccode_avlist %]
179 <option value="[% ccode_av.value | html %]">[% ccode_av.lib | html %]</option>
183 <input type="text" name="Filter" />
189 <td><input type="radio" name="Line" value="biblioitems.itemtype" /></td>
190 <td><input type="radio" name="Column" value="biblioitems.itemtype" /></td>
192 <select name="Filter" size="1" id="itemtypes">
193 <option value="">All item types</option>
194 [% FOREACH itemtype IN itemtypes %]
195 <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
203 <td><input type="radio" name="Line" value="aqbudgets.budget_code" /></td>
204 <td><input type="radio" name="Column" value="aqbudgets.budget_code" /></td>
206 <select name="Filter" size="1" id="budget">
207 <option value="">All funds</option>
208 [% FOREACH value IN Budgets.values %]
209 <option value="[% value | html %]">[% Budgets.labels.$value | html %]</option>
215 [% IF ( hassort1 ) %]
216 <tr class="hilighted">
218 <td><input type="radio" name="Line" value="aqorders.sort1" /></td>
219 <td><input type="radio" name="Column" value="aqorders.sort1" /></td>
221 <select name="Filter" size="1" id="sort1">
222 <option value="">All</option>
223 [% FOREACH value IN Sort1.values %]
224 <option value="[% value | html %]">[% Sort1.labels.$value | html %]</option>
230 [% IF ( hassort2 ) %]
231 [% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
233 <td><input type="radio" name="Line" value="aqorders.sort2" /></td>
234 <td><input type="radio" name="Column" value="aqorders.sort2" /></td>
236 <select name="Filter" size="1" id="sort2">
237 <option value="">All</option>
238 [% FOREACH value IN Sort2.values %]
239 <option value="[% value | html %]">[% Sort2.labels.$value | html %]</option>
249 <fieldset class="rows">
250 <legend> Cell value </legend>
253 <label for="cellvalue1">Count items:</label><input type="radio" name="Cellvalue" id="cellvalue1" value="1" checked="checked" />
256 <label for="cellvalue2">Count unique biblios:</label><input type="radio" name="Cellvalue" id="cellvalue2" value="2" />
259 <label for="cellvalue3">Amount:</label><input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
262 <label for="cellvalue4">Ordered amount:</label><input type="radio" name="Cellvalue" id="cellvalue4" value="4" />
265 <label for="cellvalue5">Spent amount:</label><input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
270 <fieldset class="rows">
271 <legend>Output</legend>
274 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
277 <label for="outputfile">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="MIME">Into an application:</label>
280 <select name="MIME" id="MIME" size="1">
281 <option value="CSV">CSV</option>
283 <select name="sep" id="sep" size="1">
284 [% FOREACH value IN CGIsepChoice.values.sort() %]
285 [% IF ( value == CGIsepChoice.default ) %]
286 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
288 <option value="[% value | html %]">[% value | html %]</option>
296 <fieldset class="action">
297 <input type="submit" value="Submit" />
298 <input type="hidden" name="report_name" value="[% report_name | html %]" />
299 <input type="hidden" name="do_it" value="1" />
306 [% INCLUDE 'reports-menu.inc' %]
310 [% MACRO jsinclude BLOCK %]
311 [% INCLUDE 'calendar.inc' %]
312 <script type="text/javascript">
313 $(document).ready(function() {
314 // http://jqueryui.com/demos/datepicker/#date-range
315 var dates = $( "#from, #to" ).datepicker({
318 onSelect: function( selectedDate ) {
319 var option = this.id == "from" ? "minDate" : "maxDate",
320 instance = $( this ).data( "datepicker" );
321 date = $.datepicker.parseDate(
322 instance.settings.dateFormat ||
323 $.datepicker._defaults.dateFormat,
324 selectedDate, instance.settings );
325 dates.not( this ).datepicker( "option", option, date );
328 var datesRO = $( "#fromRO, #toRO" ).datepicker({
331 onSelect: function( selectedDate ) {
332 var option = this.id == "fromRO" ? "minDate" : "maxDate",
333 instance = $( this ).data( "datepicker" );
334 date = $.datepicker.parseDate(
335 instance.settings.dateFormat ||
336 $.datepicker._defaults.dateFormat,
337 selectedDate, instance.settings );
338 datesRO.not( this ).datepicker( "option", option, date );
345 [% INCLUDE 'intranet-bottom.inc' %]