1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Reports [% IF ( do_it ) %]› Acquisitions statistics › Results[% ELSE %]› Acquisitions statistics[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript">
7 $(document).ready(function() {
8 // http://jqueryui.com/demos/datepicker/#date-range
9 var dates = $( "#from, #to" ).datepicker({
12 onSelect: function( selectedDate ) {
13 var option = this.id == "from" ? "minDate" : "maxDate",
14 instance = $( this ).data( "datepicker" );
15 date = $.datepicker.parseDate(
16 instance.settings.dateFormat ||
17 $.datepicker._defaults.dateFormat,
18 selectedDate, instance.settings );
19 dates.not( this ).datepicker( "option", option, date );
22 var datesRO = $( "#fromRO, #toRO" ).datepicker({
25 onSelect: function( selectedDate ) {
26 var option = this.id == "fromRO" ? "minDate" : "maxDate",
27 instance = $( this ).data( "datepicker" );
28 date = $.datepicker.parseDate(
29 instance.settings.dateFormat ||
30 $.datepicker._defaults.dateFormat,
31 selectedDate, instance.settings );
32 datesRO.not( this ).datepicker( "option", option, date );
39 <body id="rep_acquisitions_stats" class="rep">
40 [% INCLUDE 'header.inc' %]
41 [% INCLUDE 'cat-search.inc' %]
43 <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>
45 <div id="doc3" class="yui-t2">
52 [% FOREACH mainloo IN mainloop %]
53 <h1>Acquisitions statistics </h1>
54 [% IF ( mainloo.loopfilter.size ) %]
55 <p><b>Filtered on:</b></p>
56 [% FOREACH loopfilte IN mainloo.loopfilter %]
58 [% SWITCH loopfilte.crit %]
59 [% CASE '0' %] Placed on (from)
60 [% CASE '1' %] Placed on (to)
61 [% CASE '2' %] Received on (from)
62 [% CASE '3' %] Received on (to)
64 [% CASE '5' %] Home library
65 [% CASE '6' %] Collection
66 [% CASE '7' %] Item type
70 [% CASE %] Unknown filter
72 : [% loopfilte.filter %]
79 <th>[% mainloo.line %] / [% mainloo.column %]</th>
80 [% FOREACH loopco IN mainloo.loopcol %]
81 <th>[% loopco.coltitle %]</th>
85 [% FOREACH loopro IN mainloo.looprow %]
87 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
88 [% loopro.rowtitle %]</td>
89 [% FOREACH loopcel IN loopro.loopcell %]
90 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
91 [% IF ( loopcel.value ) %][% loopcel.value %]
96 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
103 [% FOREACH loopfoote IN mainloo.loopfooter %]
105 [% loopfoote.totalcol %]
108 <th>[% mainloo.total %]</th>
113 <form method="post" action="/cgi-bin/koha/reports/acquisitions_stats.pl">
114 <fieldset class="rows">
115 <legend>Acquisitions statistics</legend>
126 <tr class="hilighted">
128 <td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
129 <td><input type="radio" checked="checked" name="Column" value="aqbasket.closedate" /> </td>
130 <td> From <input type="text" size="10" id="from" name="Filter" value="" />
131 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
132 To <input size="10" id="to" name="Filter" type="text" value="" />
133 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
136 <tr class="hilighted">
138 <td colspan="2">group by <select name="PlacedOnDisplay">
139 <option value="">None</option>
140 <option value ="1">Day of week</option>
141 <option value ="2">Month</option>
142 <option value ="3">Year</option>
150 <td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
151 <td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
152 <td> From <input type="text" size="10" id="fromRO" name="Filter" value="" />
153 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
154 To <input type="text" size="10" id="toRO" name="Filter" value="" />
155 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
160 <td colspan="2">group by <select name="ReceivedOnDisplay">
161 <option value="">None</option>
162 <option value ="1">Day of week</option>
163 <option value ="2">Month</option>
164 <option value ="3">Year</option>
170 <tr class="hilighted">
172 <td><input type="radio" checked="checked" name="Line" value="aqbooksellers.name" /></td>
173 <td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
175 <select name="Filter">
176 <option value="">All vendors</option>
177 [% FOREACH bookseller IN booksellers %]
178 <option value="[% bookseller.name %]">[% bookseller.name %]</option>
184 <td>Home library</td>
185 <td><input type="radio" name="Line" value="items.homebranch" /></td>
186 <td><input type="radio" name="Column" value="items.homebranch" /></td>
188 <select name="Filter">
189 <option value="" selected="selected">All libraries</option>
190 [% FOREACH branch IN branches %]
191 <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
204 <td><input type="radio" name="Line" value="items.ccode" /></td>
205 <td><input type="radio" name="Column" value="items.ccode" /></td>
207 [% IF ccode_avlist.size %]
208 <select name="Filter">
209 <option value="" selected="selected">All</option>
210 [% FOREACH ccode_av IN ccode_avlist %]
211 <option value="[% ccode_av.value %]">[% ccode_av.lib %]</option>
215 <input type="text" name="Filter" />
221 <td><input type="radio" name="Line" value="biblioitems.itemtype" /></td>
222 <td><input type="radio" name="Column" value="biblioitems.itemtype" /></td>
223 <td>[% CGIItemType %]</td>
228 <td><input type="radio" name="Line" value="aqbudgets.budget_code" /></td>
229 <td><input type="radio" name="Column" value="aqbudgets.budget_code" /></td>
230 <td>[% CGIBudget %]</td>
233 [% IF ( hassort1 ) %]
234 <tr class="hilighted">
236 <td><input type="radio" name="Line" value="aqorders.sort1" /></td>
237 <td><input type="radio" name="Column" value="aqorders.sort1" /></td>
238 <td>[% CGISort1 %] </td>
241 [% IF ( hassort2 ) %]
242 [% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
244 <td><input type="radio" name="Line" value="aqorders.sort2" /></td>
245 <td><input type="radio" name="Column" value="aqorders.sort2" /></td>
246 <td>[% CGISort2 %] </td>
253 <fieldset class="rows">
254 <legend> Cell value </legend>
257 <label for="cellvalue1">Count items</label><input type="radio" name="Cellvalue" id="cellvalue1" value="1" checked="checked" />
260 <label for="cellvalue2">Count unique biblios</label><input type="radio" name="Cellvalue" id="cellvalue2" value="2" />
263 <label for="cellvalue3">Amount</label><input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
266 <label for="cellvalue4">Ordered amount</label><input type="radio" name="Cellvalue" id="cellvalue4" value="4" />
269 <label for="cellvalue5">Spent amount</label><input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
274 <fieldset class="rows">
275 <legend>Output</legend>
276 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
277 <li><label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" /> <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" /> <label class="inline" for="MIME">Into an application
278 </label>[% CGIextChoice %]
279 [% CGIsepChoice %]</li></ol>
282 <fieldset class="action">
283 <input type="submit" value="Submit" />
284 <input type="hidden" name="report_name" value="[% report_name %]" />
285 <input type="hidden" name="do_it" value="1" />
292 [% INCLUDE 'reports-menu.inc' %]
295 [% INCLUDE 'intranet-bottom.inc' %]