3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( do_it ) %]Catalog statistics › Results[% ELSE %]Catalog statistics[% END %] › Reports › Koha</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="rep_catalogue_stats" class="rep">
9 [% WRAPPER 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
13 [% WRAPPER 'sub-header.inc' %]
14 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
20 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
24 <a href="/cgi-bin/koha/reports/catalogue_stats.pl">Catalog statistics</a>
27 <a href="#" aria-current="page">
33 <a href="#" aria-current="page">
42 <div class="main container-fluid">
44 <div class="col-sm-10 col-sm-push-2">
47 <h1>Catalog statistics</h1>
49 [% FOREACH mainloo IN mainloop %]
50 [% IF ( mainloo.loopfilter ) %]
52 [% FOREACH loopfilte IN mainloo.loopfilter %]
53 <p>[% loopfilte.crit | html %] =[% loopfilte.filter | html %]</p>
57 <table id="catalogue_stats">
60 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
61 [% FOREACH loopco IN mainloo.loopcol %]
62 <th>[% loopco.coltitle | html %]</th>
68 [% FOREACH loopro IN mainloo.looprow %]
70 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
71 [% loopro.rowtitle | html %]</td>
72 [% FOREACH loopcel IN loopro.loopcell %]
73 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
74 [% IF ( loopcel.value ) %][% loopcel.value | html %]
79 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
80 [% loopro.totalrow | html %]
87 <th>TOTAL (all results)</th>
88 [% FOREACH loopfoote IN mainloo.loopfooter %]
90 [% loopfoote.totalcol | html %]
93 <th>[% mainloo.total | html %]</th>
100 <form method="post" action="/cgi-bin/koha/reports/catalogue_stats.pl">
101 <fieldset class="rows">
102 <legend>Catalog statistics</legend>
114 <td>Koha full call number</td>
115 <td><input type="radio" name="Line" value="items.itemcallnumber" /></td>
116 <td><input type="radio" name="Column" value="items.itemcallnumber" /></td>
117 <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>
121 <td colspan="2"><select name="cotedigits" id="cotedigits">
122 <option value=""> </option>
123 <option value ="1">1</option>
124 <option value ="2">2</option>
125 <option value ="3">3</option>
126 <option value ="4">4</option>
127 <option value ="5">5</option>
129 <label for="cotedigits">characters</label>
135 <td><input type="radio" name="Line" value="[% item_itype | html %]" /></td>
136 <td><input type="radio" checked="checked" name="Column" value="[% item_itype | html %]" /></td>
137 <td><select name="Filter" id="[% item_itype | html %]">
138 <option value=""> </option>
139 [% FOREACH itemtype IN itemtypes %]
140 <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
147 <td><input type="radio" name="Line" value="publishercode" /></td>
148 <td><input type="radio" name="Column" value="publishercode" /></td>
149 <td><input type="text" name="Filter" /></td>
152 <td>Publication year</td>
153 <td><input type="radio" name="Line" value="publicationyear" /></td>
154 <td><input type="radio" name="Column" value="publicationyear" /></td>
155 <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>
158 <td>Home library</td>
159 <td><input type="radio" checked="checked" name="Line" value="items.homebranch" /></td>
160 <td><input type="radio" name="Column" value="items.homebranch" /></td>
161 <td><select name="Filter" id="branch">
162 <option value=""> </option>
163 [% PROCESS options_for_libraries libraries => Branches.all() %]
168 <td>Shelving location</td>
169 <td><input type="radio" name="Line" value="items.location" /></td>
170 <td><input type="radio" name="Column" value="items.location" /></td>
171 <td><select name="Filter" id="location">
172 <option value=""> </option>
173 [% FOREACH locationloo IN locationloop %]
174 [% 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 %]
181 <td><input type="radio" name="Line" value="items.ccode" /></td>
182 <td><input type="radio" name="Column" value="items.ccode" /></td>
183 <td><select name="Filter" id="ccode">
184 <option value=""> </option>
185 [% FOREACH authval IN authvals %]
186 [% 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 %]
191 [% IF (notforloan) %]
193 <td>[% notforloan_label | html %]</td>
194 <td><input type="radio" name="Line" value="items.notforloan" /></td>
195 <td><input type="radio" name="Column" value="items.notforloan" /></td>
197 [% IF (notforloan_avlist) %]
198 <select name="Filter" id="notforloan">
199 <option value=""> </option>
200 [% FOREACH av IN notforloan_avlist %]
201 <option value="[% av.authorised_value | html %]">
207 <input type="text" name="Filter" id="notforloan" />
212 <tr style="display:none">
213 <td colspan="4"><input type="hidden" name="Filter" /></td>
218 <td>[% materials_label | html %]</td>
219 <td><input type="radio" name="Line" value="items.materials" /></td>
220 <td><input type="radio" name="Column" value="items.materials" /></td>
222 [% IF (materials_avlist) %]
223 <select name="Filter" id="materials">
224 <option value=""> </option>
225 [% FOREACH av IN materials_avlist %]
226 <option value="[% av.authorised_value | html %]">
232 <input type="text" name="Filter" id="materials" />
237 <tr style="display:none">
238 <td colspan="4"><input type="hidden" name="Filter" /></td>
242 <td colspan="3">Filter barcode</td>
244 <select name="Filter" id="like">
245 <option value="1">like</option>
246 <option value="0">not like</option>
248 <input type="text" name="Filter" id="barcode" />
249 (use * to do a fuzzy search)
253 <td>Date acquired (item)</td>
254 <td><input type="radio" name="Line" value="items.dateaccessioned" /></td>
255 <td><input type="radio" name="Column" value="items.dateaccessioned" /></td>
257 <label for="acqdateFrom">From</label>
258 <input type="text" name="Filter" id="acqdateFrom" data-date_to="acqdateTo" class="flatpickr" />
260 <label for="acqdateTo">To</label>
261 <input type="text" name="Filter" id="acqdateTo" class="flatpickr" />
264 <tr id="removeddatetr">
265 <td>Date deleted (item)</td>
266 <td><input type="radio" name="Line" value="deleteditems.timestamp" /></td>
267 <td><input type="radio" name="Column" value="deleteditems.timestamp" /></td>
269 <label for="deldateFrom">From</label>
270 <input type="text" name="Filter" id="deldateFrom" data-date_to="deldateTo" class="flatpickr" />
272 <label for="deldateTo">To</label>
273 <input type="text" name="Filter" id="deldateTo" class="flatpickr" />
277 </table><br /></fieldset>
279 <fieldset class="rows">
280 <legend>Cell value</legend>
283 <label for="cellvalue_items">Count total items</label>
284 <input type="radio" name="Cellvalue" value="items" id="cellvalue_items" checked="checked" />
287 <label for="cellvalue_biblios">Count unique bibliographic records</label>
288 <input type="radio" name="Cellvalue" value="biblios" id="cellvalue_biblios" />
291 <label for="cellvalue_deleteditems">Count deleted items</label>
292 <input type="radio" name="Cellvalue" value="deleteditems" id="cellvalue_deleteditems" />
297 <fieldset class="rows">
298 <legend>Output</legend>
299 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
300 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
301 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
302 <label class="inline" for="MIME">Into an application: </label>
303 <select name="MIME" id="MIME">
304 [% FOREACH CGIextChoic IN CGIextChoice %]
305 <option value="[% CGIextChoic.type | html %]">[% CGIextChoic.type | html %]</option>
308 <!-- <label class="inline" for="sep">Delimiter: </label> -->
309 <select name="sep" id="sep">
310 [% FOREACH value IN CGIsepChoice.values.sort() %]
311 [% IF ( value == CGIsepChoice.default ) %]
312 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
314 <option value="[% value | html %]">[% value | html %]</option>
322 <fieldset class="action">
323 <input type="submit" value="Submit" />
324 <input type="hidden" name="report_name" value="[% report_name | html %]" />
325 <input type="hidden" name="do_it" value="1" />
331 </div> <!-- /.col-sm-10.col-sm-push-2 -->
333 <div class="col-sm-2 col-sm-pull-10">
335 [% INCLUDE 'reports-menu.inc' %]
337 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
338 </div> <!-- /.row -->
340 [% MACRO jsinclude BLOCK %]
341 [% INCLUDE 'calendar.inc' %]
342 [% INCLUDE 'datatables.inc' %]
343 [% INCLUDE 'columns_settings.inc' %]
345 function changeRemovedDateTrStatus() {
346 var Cellvalue = $("input[name='Cellvalue']:checked").val();
347 if(Cellvalue == "deleteditems") {
348 $("#removeddatetr").show();
349 $("input[value='deleteditems.timestamp']").prop('disabled', false);
350 $("#deldateFrom").prop('disabled', false);
351 $("#deldateTo").prop('disabled', false);
353 $("#removeddatetr").hide();
354 $("input[value='deleteditems.timestamp']").prop('disabled', true).prop('checked', false);
355 $("#deldateFrom").prop('disabled', true).val('');
356 $("#deldateTo").prop('disabled', true).val('');
360 $(document).ready(function() {
362 $("input[name='Cellvalue']").change(function() {
363 changeRemovedDateTrStatus();
365 changeRemovedDateTrStatus();
367 columns_settings = [% FILTER collapse %]
371 "columnname": "[% mainloo.line | html %]_[% mainloo.column | html %]",
372 "cannot_be_toggled": 1,
373 "cannot_be_modified": 1
375 [% FOREACH loopco IN mainloo.loopcol %]
378 "columnname": "[% loopco.coltitle | html %]",
379 "cannot_be_toggled": 0,
380 "cannot_be_modified": 0
385 "columnname": "total",
386 "cannot_be_toggled": 0,
387 "cannot_be_modified": 0
392 var catalogue_stats = KohaTable("catalogue_stats", {
395 }, columns_settings );
400 [% INCLUDE 'intranet-bottom.inc' %]