3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Reports [% IF ( do_it ) %]› Catalog statistics › Results[% ELSE %]› Catalog statistics[% END %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="rep_catalogue_stats" class="rep">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
12 <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>
14 <div id="doc3" class="yui-t2">
21 [% FOREACH mainloo IN mainloop %]
22 <h1>Catalog statistics</h1>
23 [% IF ( mainloo.loopfilter ) %]
25 [% FOREACH loopfilte IN mainloo.loopfilter %]
26 <p>[% loopfilte.crit %] =[% loopfilte.filter %]</p>
32 <th>[% mainloo.line %] / [% mainloo.column %]</th>
33 [% FOREACH loopco IN mainloo.loopcol %]
34 <th>[% loopco.coltitle %]</th>
38 [% FOREACH loopro IN mainloo.looprow %]
40 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
41 [% loopro.rowtitle %]</td>
42 [% FOREACH loopcel IN loopro.loopcell %]
43 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
44 [% IF ( loopcel.value ) %][% loopcel.value %]
49 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
56 [% FOREACH loopfoote IN mainloo.loopfooter %]
58 [% loopfoote.totalcol %]
61 <th>[% mainloo.total %]</th>
67 <form method="post" action="/cgi-bin/koha/reports/catalogue_stats.pl">
68 <fieldset class="rows">
69 <legend>Catalog statistics</legend>
81 <td>Koha full call number</td>
82 <td><input type="radio" name="Line" value="items.itemcallnumber" /></td>
83 <td><input type="radio" name="Column" value="items.itemcallnumber" /></td>
84 <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>
88 <td colspan="2"><select name="cotedigits" id="cotedigits">
89 <option value=""> </option>
90 <option value ="1">1</option>
91 <option value ="2">2</option>
92 <option value ="3">3</option>
93 <option value ="4">4</option>
94 <option value ="5">5</option>
96 <label for="cotedigits">characters</label>
102 <td><input type="radio" name="Line" value="[% item_itype %]" /></td>
103 <td><input type="radio" name="Column" value="[% item_itype %]" /></td>
104 <td><select name="Filter" id="[% item_itype %]">
105 <option value=""> </option>
106 [% FOREACH itemtype IN itemtypes %]
107 <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
114 <td><input type="radio" name="Line" value="publishercode" /></td>
115 <td><input type="radio" name="Column" value="publishercode" /></td>
116 <td><input type="text" name="Filter" /></td>
119 <td>Publication year</td>
120 <td><input type="radio" name="Line" value="publicationyear" /></td>
121 <td><input type="radio" name="Column" value="publicationyear" /></td>
122 <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>
125 <td>Home library</td>
126 <td><input type="radio" name="Line" value="items.homebranch" /></td>
127 <td><input type="radio" name="Column" value="items.homebranch" /></td>
128 <td><select name="Filter" id="branch">
129 <option value=""> </option>
130 [% PROCESS options_for_libraries libraries => Branches.all() %]
135 <td>Shelving location</td>
136 <td><input type="radio" name="Line" value="items.location" /></td>
137 <td><input type="radio" name="Column" value="items.location" /></td>
138 <td><select name="Filter" id="location">
139 <option value=""> </option>
140 [% FOREACH locationloo IN locationloop %]
141 [% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
148 <td><input type="radio" name="Line" value="items.ccode" /></td>
149 <td><input type="radio" name="Column" value="items.ccode" /></td>
150 <td><select name="Filter" id="ccode">
151 <option value=""> </option>
152 [% FOREACH authval IN authvals %]
153 [% IF ( authval.selected ) %]<option value="[% authval.code %]" selected="selected">[% authval.description %]</option>[% ELSE %]<option value="[% authval.code %]">[% authval.description %]</option>[% END %]
158 [% IF (notforloan) %]
160 <td>[% notforloan_label %]</td>
161 <td><input type="radio" name="Line" value="items.notforloan" /></td>
162 <td><input type="radio" name="Column" value="items.notforloan" /></td>
164 [% IF (notforloan_avlist) %]
165 <select name="Filter" id="notforloan">
166 <option value=""> </option>
167 [% FOREACH av IN notforloan_avlist %]
168 <option value="[% av.authorised_value %]">
174 <input type="text" name="Filter" id="notforloan" />
179 <tr style="display:none">
180 <td colspan="4"><input type="hidden" name="Filter" /></td>
185 <td>[% materials_label %]</td>
186 <td><input type="radio" name="Line" value="items.materials" /></td>
187 <td><input type="radio" name="Column" value="items.materials" /></td>
189 [% IF (materials_avlist) %]
190 <select name="Filter" id="materials">
191 <option value=""> </option>
192 [% FOREACH av IN materials_avlist %]
193 <option value="[% av.authorised_value %]">
199 <input type="text" name="Filter" id="materials" />
204 <tr style="display:none">
205 <td colspan="4"><input type="hidden" name="Filter" /></td>
209 <td colspan="3">Filter barcode</td>
211 <select name="Filter" id="like">
212 <option value="1">like</option>
213 <option value="0">not like</option>
215 <input type="text" name="Filter" id="barcode" />
216 (use * to do a fuzzy search)
220 <td>Date acquired (item)</td>
221 <td><input type="radio" name="Line" value="items.dateaccessioned" /></td>
222 <td><input type="radio" name="Column" value="items.dateaccessioned" /></td>
224 <label for="acqdateFrom">From</label>
225 <input type="text" name="Filter" id="acqdateFrom" class="datepicker" />
226 <label for="acqdateTo">To</label>
227 <input type="text" name="Filter" id="acqdateTo" class="datepicker" />
230 <tr id="removeddatetr">
231 <td>Date deleted (item)</td>
232 <td><input type="radio" name="Line" value="deleteditems.timestamp" /></td>
233 <td><input type="radio" name="Column" value="deleteditems.timestamp" /></td>
235 <label for="deldateFrom">From</label>
236 <input type="text" name="Filter" id="deldateFrom" class="datepicker" />
237 <label for="deldateTo">To</label>
238 <input type="text" name="Filter" id="deldateTo" class="datepicker"/>
242 </table><br /></fieldset>
244 <fieldset class="rows">
245 <legend>Cell value</legend>
248 <label for="cellvalue_items">Count total items</label>
249 <input type="radio" name="Cellvalue" value="items" id="cellvalue_items" checked="checked" />
252 <label for="cellvalue_biblios">Count unique biblios</label>
253 <input type="radio" name="Cellvalue" value="biblios" id="cellvalue_biblios" />
256 <label for="cellvalue_deleteditems">Count deleted items</label>
257 <input type="radio" name="Cellvalue" value="deleteditems" id="cellvalue_deleteditems" />
262 <fieldset class="rows">
263 <legend>Output</legend>
264 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
265 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
266 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
267 <label class="inline" for="MIME">Into an application: </label>
268 <select name="MIME" id="MIME">
269 [% FOREACH CGIextChoic IN CGIextChoice %]
270 <option value="[% CGIextChoic.type %]">[% CGIextChoic.type %]</option>
273 <!-- <label class="inline" for="sep">Delimiter: </label> -->
274 <select name="sep" id="sep" size="1">
275 [% FOREACH value IN CGIsepChoice.values.sort() %]
276 [% IF ( value == CGIsepChoice.default ) %]
277 <option value="[% value %]" selected="selected">[% value %]</option>
279 <option value="[% value %]">[% value %]</option>
287 <fieldset class="action">
288 <input type="submit" value="Submit" />
289 <input type="hidden" name="report_name" value="[% report_name %]" />
290 <input type="hidden" name="do_it" value="1" />
297 [% INCLUDE 'reports-menu.inc' %]
301 [% MACRO jsinclude BLOCK %]
302 [% INCLUDE 'calendar.inc' %]
303 <script type="text/javascript">
304 function changeRemovedDateTrStatus() {
305 var Cellvalue = $("input[name='Cellvalue']:checked").val();
306 if(Cellvalue == "deleteditems") {
307 $("#removeddatetr").show();
308 $("input[value='deleteditems.timestamp']").prop('disabled', false);
309 $("#deldateFrom").prop('disabled', false);
310 $("#deldateTo").prop('disabled', false);
312 $("#removeddatetr").hide();
313 $("input[value='deleteditems.timestamp']").prop('disabled', true).prop('checked', false);
314 $("#deldateFrom").prop('disabled', true).val('');
315 $("#deldateTo").prop('disabled', true).val('');
319 $(document).ready(function() {
320 $('#acqdateFrom, #deldateFrom')
321 .datepicker('option', 'onSelect', function(selectedDate) {
322 var id = $(this).attr('id').replace('From', 'To');
323 $('#' + id).datepicker('option', 'minDate', selectedDate);
325 $('#acqdateTo, #deldateTo')
326 .datepicker('option', 'onSelect', function(selectedDate) {
327 var id = $(this).attr('id').replace('To', 'From');
328 $('#' + id).datepicker('option', 'maxDate', selectedDate);
331 $("input[name='Cellvalue']").change(function() {
332 changeRemovedDateTrStatus();
334 changeRemovedDateTrStatus();
339 [% INCLUDE 'intranet-bottom.inc' %]