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 class="main container-fluid">
16 <div class="col-sm-10 col-sm-push-2">
20 [% FOREACH mainloo IN mainloop %]
21 <h1>Catalog statistics</h1>
22 [% IF ( mainloo.loopfilter ) %]
24 [% FOREACH loopfilte IN mainloo.loopfilter %]
25 <p>[% loopfilte.crit | html %] =[% loopfilte.filter | html %]</p>
31 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
32 [% FOREACH loopco IN mainloo.loopcol %]
33 <th>[% loopco.coltitle | html %]</th>
37 [% FOREACH loopro IN mainloo.looprow %]
39 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
40 [% loopro.rowtitle | html %]</td>
41 [% FOREACH loopcel IN loopro.loopcell %]
42 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
43 [% IF ( loopcel.value ) %][% loopcel.value | html %]
48 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
49 [% loopro.totalrow | html %]
55 [% FOREACH loopfoote IN mainloo.loopfooter %]
57 [% loopfoote.totalcol | html %]
60 <th>[% mainloo.total | html %]</th>
66 <form method="post" action="/cgi-bin/koha/reports/catalogue_stats.pl">
67 <fieldset class="rows">
68 <legend>Catalog statistics</legend>
80 <td>Koha full call number</td>
81 <td><input type="radio" name="Line" value="items.itemcallnumber" /></td>
82 <td><input type="radio" name="Column" value="items.itemcallnumber" /></td>
83 <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>
87 <td colspan="2"><select name="cotedigits" id="cotedigits">
88 <option value=""> </option>
89 <option value ="1">1</option>
90 <option value ="2">2</option>
91 <option value ="3">3</option>
92 <option value ="4">4</option>
93 <option value ="5">5</option>
95 <label for="cotedigits">characters</label>
101 <td><input type="radio" name="Line" value="[% item_itype | html %]" /></td>
102 <td><input type="radio" checked="checked" name="Column" value="[% item_itype | html %]" /></td>
103 <td><select name="Filter" id="[% item_itype | html %]">
104 <option value=""> </option>
105 [% FOREACH itemtype IN itemtypes %]
106 <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
113 <td><input type="radio" name="Line" value="publishercode" /></td>
114 <td><input type="radio" name="Column" value="publishercode" /></td>
115 <td><input type="text" name="Filter" /></td>
118 <td>Publication year</td>
119 <td><input type="radio" name="Line" value="publicationyear" /></td>
120 <td><input type="radio" name="Column" value="publicationyear" /></td>
121 <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>
124 <td>Home library</td>
125 <td><input type="radio" checked="checked" name="Line" value="items.homebranch" /></td>
126 <td><input type="radio" name="Column" value="items.homebranch" /></td>
127 <td><select name="Filter" id="branch">
128 <option value=""> </option>
129 [% PROCESS options_for_libraries libraries => Branches.all() %]
134 <td>Shelving location</td>
135 <td><input type="radio" name="Line" value="items.location" /></td>
136 <td><input type="radio" name="Column" value="items.location" /></td>
137 <td><select name="Filter" id="location">
138 <option value=""> </option>
139 [% FOREACH locationloo IN locationloop %]
140 [% IF ( locationloo.selected ) %]<option value="[% locationloo.code | html %]" selected="selected">[% locationloo.description | html %]</option>[% ELSE %]<option value="[% locationloo.code | html %]">[% locationloo.description | html %]</option>[% END %]
147 <td><input type="radio" name="Line" value="items.ccode" /></td>
148 <td><input type="radio" name="Column" value="items.ccode" /></td>
149 <td><select name="Filter" id="ccode">
150 <option value=""> </option>
151 [% FOREACH authval IN authvals %]
152 [% IF ( authval.selected ) %]<option value="[% authval.code | html %]" selected="selected">[% authval.description | html %]</option>[% ELSE %]<option value="[% authval.code | html %]">[% authval.description | html %]</option>[% END %]
157 [% IF (notforloan) %]
159 <td>[% notforloan_label | html %]</td>
160 <td><input type="radio" name="Line" value="items.notforloan" /></td>
161 <td><input type="radio" name="Column" value="items.notforloan" /></td>
163 [% IF (notforloan_avlist) %]
164 <select name="Filter" id="notforloan">
165 <option value=""> </option>
166 [% FOREACH av IN notforloan_avlist %]
167 <option value="[% av.authorised_value | html %]">
173 <input type="text" name="Filter" id="notforloan" />
178 <tr style="display:none">
179 <td colspan="4"><input type="hidden" name="Filter" /></td>
184 <td>[% materials_label | html %]</td>
185 <td><input type="radio" name="Line" value="items.materials" /></td>
186 <td><input type="radio" name="Column" value="items.materials" /></td>
188 [% IF (materials_avlist) %]
189 <select name="Filter" id="materials">
190 <option value=""> </option>
191 [% FOREACH av IN materials_avlist %]
192 <option value="[% av.authorised_value | html %]">
198 <input type="text" name="Filter" id="materials" />
203 <tr style="display:none">
204 <td colspan="4"><input type="hidden" name="Filter" /></td>
208 <td colspan="3">Filter barcode</td>
210 <select name="Filter" id="like">
211 <option value="1">like</option>
212 <option value="0">not like</option>
214 <input type="text" name="Filter" id="barcode" />
215 (use * to do a fuzzy search)
219 <td>Date acquired (item)</td>
220 <td><input type="radio" name="Line" value="items.dateaccessioned" /></td>
221 <td><input type="radio" name="Column" value="items.dateaccessioned" /></td>
223 <label for="acqdateFrom">From</label>
224 <input type="text" name="Filter" id="acqdateFrom" class="datepicker" />
225 <label for="acqdateTo">To</label>
226 <input type="text" name="Filter" id="acqdateTo" class="datepicker" />
229 <tr id="removeddatetr">
230 <td>Date deleted (item)</td>
231 <td><input type="radio" name="Line" value="deleteditems.timestamp" /></td>
232 <td><input type="radio" name="Column" value="deleteditems.timestamp" /></td>
234 <label for="deldateFrom">From</label>
235 <input type="text" name="Filter" id="deldateFrom" class="datepicker" />
236 <label for="deldateTo">To</label>
237 <input type="text" name="Filter" id="deldateTo" class="datepicker"/>
241 </table><br /></fieldset>
243 <fieldset class="rows">
244 <legend>Cell value</legend>
247 <label for="cellvalue_items">Count total items</label>
248 <input type="radio" name="Cellvalue" value="items" id="cellvalue_items" checked="checked" />
251 <label for="cellvalue_biblios">Count unique bibliographic records</label>
252 <input type="radio" name="Cellvalue" value="biblios" id="cellvalue_biblios" />
255 <label for="cellvalue_deleteditems">Count deleted items</label>
256 <input type="radio" name="Cellvalue" value="deleteditems" id="cellvalue_deleteditems" />
261 <fieldset class="rows">
262 <legend>Output</legend>
263 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
264 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
265 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
266 <label class="inline" for="MIME">Into an application: </label>
267 <select name="MIME" id="MIME">
268 [% FOREACH CGIextChoic IN CGIextChoice %]
269 <option value="[% CGIextChoic.type | html %]">[% CGIextChoic.type | html %]</option>
272 <!-- <label class="inline" for="sep">Delimiter: </label> -->
273 <select name="sep" id="sep" size="1">
274 [% FOREACH value IN CGIsepChoice.values.sort() %]
275 [% IF ( value == CGIsepChoice.default ) %]
276 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
278 <option value="[% value | html %]">[% value | html %]</option>
286 <fieldset class="action">
287 <input type="submit" value="Submit" />
288 <input type="hidden" name="report_name" value="[% report_name | html %]" />
289 <input type="hidden" name="do_it" value="1" />
295 </div> <!-- /.col-sm-10.col-sm-push-2 -->
297 <div class="col-sm-2 col-sm-pull-10">
299 [% INCLUDE 'reports-menu.inc' %]
301 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
302 </div> <!-- /.row -->
304 [% MACRO jsinclude BLOCK %]
305 [% INCLUDE 'calendar.inc' %]
307 function changeRemovedDateTrStatus() {
308 var Cellvalue = $("input[name='Cellvalue']:checked").val();
309 if(Cellvalue == "deleteditems") {
310 $("#removeddatetr").show();
311 $("input[value='deleteditems.timestamp']").prop('disabled', false);
312 $("#deldateFrom").prop('disabled', false);
313 $("#deldateTo").prop('disabled', false);
315 $("#removeddatetr").hide();
316 $("input[value='deleteditems.timestamp']").prop('disabled', true).prop('checked', false);
317 $("#deldateFrom").prop('disabled', true).val('');
318 $("#deldateTo").prop('disabled', true).val('');
322 $(document).ready(function() {
323 $('#acqdateFrom, #deldateFrom')
324 .datepicker('option', 'onSelect', function(selectedDate) {
325 var id = $(this).attr('id').replace('From', 'To');
326 $('#' + id).datepicker('option', 'minDate', selectedDate);
328 $('#acqdateTo, #deldateTo')
329 .datepicker('option', 'onSelect', function(selectedDate) {
330 var id = $(this).attr('id').replace('To', 'From');
331 $('#' + id).datepicker('option', 'maxDate', selectedDate);
334 $("input[name='Cellvalue']").change(function() {
335 changeRemovedDateTrStatus();
337 changeRemovedDateTrStatus();
342 [% INCLUDE 'intranet-bottom.inc' %]