[% IF ( do_it ) %]
[% FOREACH mainloo IN mainloop %]
<h1>Acquisitions statistics </h1>
- [% IF ( mainloo.loopfilter.size ) %]
- <p><b>Filtered on:</b></p>
- [% FOREACH loopfilte IN mainloo.loopfilter %]
- <p>[% loopfilte.crit %]: [% loopfilte.filter %]</p>
+ [% IF ( mainloo.loopfilter.size ) %]
+ <p><b>Filtered on:</b></p>
+ [% FOREACH loopfilte IN mainloo.loopfilter %]
+ <p>
+ [% SWITCH loopfilte.crit %]
+ [% CASE '0' %] Placed on (from)
+ [% CASE '1' %] Placed on (to)
+ [% CASE '2' %] Received on (from)
+ [% CASE '3' %] Received on (to)
+ [% CASE '4' %] Vendor
+ [% CASE '5' %] Home library
+ [% CASE '6' %] Collection
+ [% CASE '7' %] Item type
+ [% CASE '8' %] Fund
+ [% CASE '9' %] Sort1
+ [% CASE '10' %] Sort2
+ [% CASE %] Unknown filter
+ [% END %]
+ : [% loopfilte.filter %]
+ </p>
[% END %]
[% END %]
<td>Vendor</td>
<td><input type="radio" checked="checked" name="Line" value="aqbooksellers.name" /></td>
<td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
- <td>[% CGIBookSeller %]</td>
- </tr>
+ <td>
+ <select name="Filter">
+ <option value="">All vendors</option>
+ [% FOREACH bookseller IN booksellers %]
+ <option value="[% bookseller.name %]">[% bookseller.name %]</option>
+ [% END %]
+ </select>
+ </td>
+ </tr>
<tr>
- <td>Home branch</td>
+ <td>Home library</td>
<td><input type="radio" name="Line" value="items.homebranch" /></td>
<td><input type="radio" name="Column" value="items.homebranch" /></td>
<td>
<select name="Filter">
- <option value="" selected="selected">All branches</option>
+ <option value="" selected="selected">All libraries</option>
[% FOREACH branch IN branches %]
<option value="[% branch.branchcode %]">[% branch.branchname %]</option>
[% END %]
</tr>
<tr>
- <td>Budget</td>
+ <td>Fund</td>
<td><input type="radio" name="Line" value="aqbudgets.budget_code" /></td>
<td><input type="radio" name="Column" value="aqbudgets.budget_code" /></td>
<td>[% CGIBudget %]</td>