1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Reports [% IF ( do_it ) %]› Catalog statistics › Results[% ELSE %]› Catalog statistics[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript">
7 function changeRemovedDateTrStatus() {
8 var Cellvalue = $("input[name='Cellvalue']:checked").val();
9 if(Cellvalue == "deleteditems") {
10 $("#removeddatetr").show();
11 $("input[value='deleteditems.timestamp']").attr('disabled', false);
12 $("#deldateFrom").attr('disabled', false);
13 $("#deldateTo").attr('disabled', false);
15 $("#removeddatetr").hide();
16 $("input[value='deleteditems.timestamp']").attr('disabled', true).attr('checked', false);
17 $("#deldateFrom").attr('disabled', true).val('');
18 $("#deldateTo").attr('disabled', true).val('');
22 $(document).ready(function() {
23 $('#acqdateFrom, #deldateFrom')
24 .datepicker('option', 'onSelect', function(selectedDate) {
25 var id = $(this).attr('id').replace('From', 'To');
26 $('#' + id).datepicker('option', 'minDate', selectedDate);
28 $('#acqdateTo, #deldateTo')
29 .datepicker('option', 'onSelect', function(selectedDate) {
30 var id = $(this).attr('id').replace('To', 'From');
31 $('#' + id).datepicker('option', 'maxDate', selectedDate);
34 $("input[name='Cellvalue']").change(function() {
35 changeRemovedDateTrStatus();
37 changeRemovedDateTrStatus();
42 <body id="rep_catalogue_stats" class="rep">
43 [% INCLUDE 'header.inc' %]
44 [% INCLUDE 'cat-search.inc' %]
46 <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/catalogue_stats.pl">Catalog statistics</a> › Results[% ELSE %]› Catalog statistics[% END %]</div>
48 <div id="doc3" class="yui-t2">
55 [% FOREACH mainloo IN mainloop %]
56 <h1>Catalog statistics</h1>
57 [% IF ( mainloo.loopfilter ) %]
59 [% FOREACH loopfilte IN mainloo.loopfilter %]
60 <p>[% loopfilte.crit %] =[% loopfilte.filter %]</p>
66 <th>[% mainloo.line %] / [% mainloo.column %]</th>
67 [% FOREACH loopco IN mainloo.loopcol %]
68 <th>[% loopco.coltitle %]</th>
72 [% FOREACH loopro IN mainloo.looprow %]
74 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
75 [% loopro.rowtitle %]</td>
76 [% FOREACH loopcel IN loopro.loopcell %]
77 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
78 [% IF ( loopcel.value ) %][% loopcel.value %]
83 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
90 [% FOREACH loopfoote IN mainloo.loopfooter %]
92 [% loopfoote.totalcol %]
95 <th>[% mainloo.total %]</th>
101 <form method="post" action="/cgi-bin/koha/reports/catalogue_stats.pl">
102 <fieldset class="rows">
103 <legend>Catalog statistics</legend>
115 <td>Koha full call number</td>
116 <td><input type="radio" name="Line" value="items.itemcallnumber" /></td>
117 <td><input type="radio" name="Column" value="items.itemcallnumber" /></td>
118 <td><label for="callnoFrom">From</label> <input type="text" name="Filter" id="callnoFrom" /> <label for="callnoTo">To</label> <input type="text" name="Filter" id="callnoTo" /></td>
122 <td colspan="2"><select name="cotedigits" id="cotedigits">
123 <option value=""> </option>
124 <option value ="1">1</option>
125 <option value ="2">2</option>
126 <option value ="3">3</option>
127 <option value ="4">4</option>
128 <option value ="5">5</option>
130 <label for="cotedigits">characters</label>
136 <td><input type="radio" name="Line" value="[% item_itype %]" /></td>
137 <td><input type="radio" name="Column" value="[% item_itype %]" /></td>
138 <td><select name="Filter" id="[% item_itype %]">
139 <option value=""> </option>
140 [% FOREACH itemtype IN itemtypes %]
141 <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
148 <td><input type="radio" name="Line" value="publishercode" /></td>
149 <td><input type="radio" name="Column" value="publishercode" /></td>
150 <td><input type="text" name="Filter" /></td>
153 <td>Publication year</td>
154 <td><input type="radio" name="Line" value="publicationyear" /></td>
155 <td><input type="radio" name="Column" value="publicationyear" /></td>
156 <td><label for="pubyearFrom">From</label> <input type="text" name="Filter" id="pubYearFrom" /> <label for="pubyearTo">To</label> <input type="text" name="Filter" id="pubyearTo" /></td>
159 <td>Home library</td>
160 <td><input type="radio" name="Line" value="items.homebranch" /></td>
161 <td><input type="radio" name="Column" value="items.homebranch" /></td>
162 <td><select name="Filter" id="branch">
163 <option value=""> </option>
164 [% FOREACH CGIBranc IN CGIBranch %]
165 [% IF ( CGIBranc.selected ) %]<option value="[% CGIBranc.value %]" selected="selected">[% CGIBranc.branchname %]</option>[% ELSE %]<option value="[% CGIBranc.value %]">[% CGIBranc.branchname %]</option>[% END %]
171 <td>Shelving location</td>
172 <td><input type="radio" name="Line" value="items.location" /></td>
173 <td><input type="radio" name="Column" value="items.location" /></td>
174 <td><select name="Filter" id="location">
175 <option value=""> </option>
176 [% FOREACH locationloo IN locationloop %]
177 [% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
184 <td><input type="radio" name="Line" value="items.ccode" /></td>
185 <td><input type="radio" name="Column" value="items.ccode" /></td>
186 <td><select name="Filter" id="ccode">
187 <option value=""> </option>
188 [% FOREACH authval IN authvals %]
189 [% IF ( authval.selected ) %]<option value="[% authval.code %]" selected="selected">[% authval.description %]</option>[% ELSE %]<option value="[% authval.code %]">[% authval.description %]</option>[% END %]
194 [% IF (notforloan) %]
196 <td>[% notforloan_label %]</td>
197 <td><input type="radio" name="Line" value="items.notforloan" /></td>
198 <td><input type="radio" name="Column" value="items.notforloan" /></td>
200 [% IF (notforloan_avlist) %]
201 <select name="Filter" id="notforloan">
202 <option value=""> </option>
203 [% FOREACH av IN notforloan_avlist %]
204 <option value="[% av.authorised_value %]">
210 <input type="text" name="Filter" id="notforloan" />
215 <tr style="display:none">
216 <td colspan="4"><input type="hidden" name="Filter" /></td>
221 <td>[% materials_label %]</td>
222 <td><input type="radio" name="Line" value="items.materials" /></td>
223 <td><input type="radio" name="Column" value="items.materials" /></td>
225 [% IF (materials_avlist) %]
226 <select name="Filter" id="materials">
227 <option value=""> </option>
228 [% FOREACH av IN materials_avlist %]
229 <option value="[% av.authorised_value %]">
235 <input type="text" name="Filter" id="materials" />
240 <tr style="display:none">
241 <td colspan="4"><input type="hidden" name="Filter" /></td>
245 <td colspan="3">Filter barcode</td>
247 <select name="Filter" id="like">
248 <option value="1">like</option>
249 <option value="0">not like</option>
251 <input type="text" name="Filter" id="barcode" />
252 (use * to do a fuzzy search)
256 <td>Date acquired (item)</td>
257 <td><input type="radio" name="Line" value="items.dateaccessioned" /></td>
258 <td><input type="radio" name="Column" value="items.dateaccessioned" /></td>
260 <label for="acqdateFrom">From</label>
261 <input type="text" name="Filter" id="acqdateFrom" class="datepicker" />
262 <label for="acqdateTo">To</label>
263 <input type="text" name="Filter" id="acqdateTo" class="datepicker" />
266 <tr id="removeddatetr">
267 <td>Date deleted (item)</td>
268 <td><input type="radio" name="Line" value="deleteditems.timestamp" /></td>
269 <td><input type="radio" name="Column" value="deleteditems.timestamp" /></td>
271 <label for="deldateFrom">From</label>
272 <input type="text" name="Filter" id="deldateFrom" class="datepicker" />
273 <label for="deldateTo">To</label>
274 <input type="text" name="Filter" id="deldateTo" class="datepicker"/>
278 </table><br /></fieldset>
280 <fieldset class="rows">
281 <legend>Cell value</legend>
284 <label for="cellvalue_items">Count total items</label>
285 <input type="radio" name="Cellvalue" value="items" id="cellvalue_items" checked="checked" />
288 <label for="cellvalue_biblios">Count unique biblios</label>
289 <input type="radio" name="Cellvalue" value="biblios" id="cellvalue_biblios" />
292 <label for="cellvalue_deleteditems">Count deleted items</label>
293 <input type="radio" name="Cellvalue" value="deleteditems" id="cellvalue_deleteditems" />
298 <fieldset class="rows">
299 <legend>Output</legend>
300 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
301 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
302 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
303 <label class="inline" for="MIME">Into an application: </label>
304 <select name="MIME" id="MIME">
305 [% FOREACH CGIextChoic IN CGIextChoice %]
306 <option value="[% CGIextChoic.type %]">[% CGIextChoic.type %]</option>
309 <!-- <label class="inline" for="sep">Delimiter: </label> -->
310 <select name="sep" id="sep" size="1">
311 [% FOREACH value IN CGIsepChoice.values.sort() %]
312 [% IF ( value == CGIsepChoice.default ) %]
313 <option value="[% value %]" selected="selected">[% value %]</option>
315 <option value="[% value %]">[% value %]</option>
323 <fieldset class="action">
324 <input type="submit" value="Submit" />
325 <input type="hidden" name="report_name" value="[% report_name %]" />
326 <input type="hidden" name="do_it" value="1" />
333 [% INCLUDE 'reports-menu.inc' %]
336 [% INCLUDE 'intranet-bottom.inc' %]