311 lines
16 KiB
Cheetah
311 lines
16 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Reports <!-- TMPL_IF NAME="do_it" -->› Checkout statistics › Results <!-- TMPL_ELSE -->› Checkout statistics<!-- /TMPL_IF --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> <!-- TMPL_IF NAME="do_it" -->› <a href="/cgi-bin/koha/reports/issues_stats.pl">Checkout statistics</a> › Results <!-- TMPL_ELSE -->› Checkout statistics<!-- /TMPL_IF --></div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<!-- TMPL_IF NAME="do_it" -->
|
|
<!-- TMPL_LOOP NAME="mainloop" -->
|
|
<h1>Checkout statistics </h1>
|
|
<!-- TMPL_IF NAME="loopfilter" -->
|
|
<p>Filtered on</p>
|
|
<ul>
|
|
<!-- TMPL_LOOP NAME="loopfilter" -->
|
|
<li><!-- TMPL_IF NAME="err" --> <!--/TMPL_IF --> <!-- TMPL_VAR NAME="crit"--> <!-- TMPL_VAR NAME="filter"--><!-- TMPL_IF NAME="err" --> <!--/TMPL_IF --></li>
|
|
<!-- /TMPL_LOOP -->
|
|
</ul>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<table>
|
|
<tr>
|
|
<th><!-- TMPL_VAR name="line" --> / <!-- TMPL_VAR name="column" --></th>
|
|
<!-- TMPL_LOOP NAME="loopcol" -->
|
|
<th><!-- TMPL_VAR NAME="coltitle_display" --></th>
|
|
<!-- /TMPL_LOOP -->
|
|
<th>TOTAL</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="looprow" -->
|
|
<tr>
|
|
<!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR NAME="rowtitle_display" --></td>
|
|
<!-- TMPL_LOOP NAME="loopcell" -->
|
|
<!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" -->
|
|
<!-- TMPL_ELSE -->
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR NAME="totalrow" -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
<tr>
|
|
<th>TOTAL</th>
|
|
<!-- TMPL_LOOP NAME="loopfooter" -->
|
|
<th>
|
|
<!-- TMPL_VAR NAME="totalcol" -->
|
|
</th>
|
|
<!-- /TMPL_LOOP -->
|
|
<th><!-- TMPL_VAR NAME="total" --></th>
|
|
</tr>
|
|
</table>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_ELSE -->
|
|
|
|
<form method="post" action="/cgi-bin/koha/reports/issues_stats.pl">
|
|
<fieldset class="rows">
|
|
<legend>Checkout statistics</legend><table>
|
|
<thead>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Row</th>
|
|
<th>Column</th>
|
|
<th>Filter</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="hilighted">
|
|
<td>Period</td>
|
|
<td><input type="radio" name="Line" value="datetime" /></td>
|
|
<td><input type="radio" name="Column" value="datetime" /></td>
|
|
<td> <label for="from">From</label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
|
|
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFrom" style="cursor: pointer;" />
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function validate1(date) {
|
|
var day = date.getDate();
|
|
var month = date.getMonth() + 1;
|
|
var year = date.getFullYear();
|
|
var weekDay = date.getDay();
|
|
var dayMonth = month + '-' + day;
|
|
var dateString = year + '-' + month + '-' + day;
|
|
var dateTo = document.getElementById('to').value.split("-");
|
|
var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
|
|
if (date > limitDate) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
Calendar.setup(
|
|
{
|
|
inputField : "from",
|
|
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
|
|
button : "openCalendarFrom",
|
|
disableFunc : validate1,
|
|
dateStatusFunc : validate1
|
|
}
|
|
);
|
|
//]]>
|
|
</script>
|
|
<label for="to">To</label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
|
|
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarTo" style="cursor: pointer;" border="0" />
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function validate2(date) {
|
|
var day = date.getDate();
|
|
var month = date.getMonth() + 1;
|
|
var year = date.getFullYear();
|
|
var weekDay = date.getDay();
|
|
var dayMonth = month + '-' + day;
|
|
var dateString = year + '-' + month + '-' + day;
|
|
var dateFrom = document.getElementById('from').value.split("-");
|
|
var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
|
|
if (limitDate > date) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
Calendar.setup(
|
|
{
|
|
inputField : "to",
|
|
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
|
|
button : "openCalendarTo",
|
|
disableFunc : validate2,
|
|
dateStatusFunc : validate2
|
|
}
|
|
);
|
|
//]]>
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<tr class="hilighted">
|
|
<td><label for="PeriodTypeSel">Type:</label><select name="PeriodTypeSel" id="PeriodTypeSel">
|
|
<option value ="issue">Checkout</option>
|
|
<option value ="renew">Renewal</option>
|
|
<option value ="return">Checkin</option>
|
|
<option value ="localuse">Local Use</option>
|
|
</select></td>
|
|
<td colspan="2"><label for="DisplayBy">group by</label> <select name="DisplayBy" id="DisplayBy">
|
|
<option value="">None</option>
|
|
<option value ="1">Day of week</option>
|
|
<option value ="2">Month</option>
|
|
<option value ="3">Year</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<label for="PeriodDaySel">Select Day: </label><select name="PeriodDaySel" id="PeriodDaySel">
|
|
<option value =""></option>
|
|
<option value ="Monday">Monday</option>
|
|
<option value ="Tuesday">Tuesday</option>
|
|
<option value ="Wednesday">Wednesday</option>
|
|
<option value ="Thursday">Thursday</option>
|
|
<option value ="Friday">Friday</option>
|
|
<option value ="Saturday">Saturday</option>
|
|
<option value ="Sunday">Sunday</option>
|
|
</select>
|
|
<label for="PeriodMonthSel">Select Month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
|
|
<option value =""></option>
|
|
<option value ="January">January</option>
|
|
<option value ="February">February</option>
|
|
<option value ="March">March</option>
|
|
<option value ="April">April</option>
|
|
<option value ="May">May</option>
|
|
<option value ="June">June</option>
|
|
<option value ="July">July</option>
|
|
<option value ="August">August</option>
|
|
<option value ="September">September</option>
|
|
<option value ="October">October</option>
|
|
<option value ="November">November</option>
|
|
<option value ="December">December</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Patron Category</td>
|
|
<td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
|
|
<td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
|
|
<td><select name="Filter" id="borcat">
|
|
<option value=""> </option>
|
|
<!-- TMPL_LOOP NAME="categoryloop" -->
|
|
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="description" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></option><!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr class="hilighted">
|
|
<td>Item Type</td>
|
|
<td><input type="radio" name="Line" value="itemtype" /></td>
|
|
<td><input type="radio" name="Column" value="itemtype" /></td>
|
|
<td><select name="Filter" id="itemtype">
|
|
<option value=""> </option>
|
|
<!-- TMPL_LOOP NAME="itemtypeloop" -->
|
|
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="description" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="description" --></option><!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Library</td>
|
|
<td><input type="radio" name="Line" value="branch" /></td>
|
|
<td><input type="radio" name="Column" value="branch" /></td>
|
|
<td><select name="Filter" id="branch">
|
|
<option value=""> </option>
|
|
<!-- TMPL_LOOP NAME="branchloop" -->
|
|
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="description" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="description" --></option><!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Collection</td>
|
|
<td><input type="radio" name="Line" value="items.ccode" /></td>
|
|
<td><input type="radio" name="Column" value="items.ccode" /></td>
|
|
<td><select name="Filter" id="ccode">
|
|
<option value=""> </option>
|
|
<!-- TMPL_LOOP NAME="ccodeloop" -->
|
|
|
|
<!-- TMPL_IF NAME="selected" --> <option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="description" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="description" --></option><!-- /TMPL_IF -->
|
|
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Shelving Location</td>
|
|
<td><input type="radio" name="Line" value="items.location" /></td>
|
|
<td><input type="radio" name="Column" value="items.location" /></td>
|
|
<td><select name="Filter" id="location">
|
|
<option value=""> </option>
|
|
<!-- TMPL_LOOP NAME="locationloop" -->
|
|
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="description" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="description" --></option><!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Item Call Number</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td>From <input type="text" name="Filter" size="10" /> (inclusive) to <input type="text" name="Filter" size="10" /> (exclusive) </td>
|
|
</tr>
|
|
<!-- TMPL_IF Name="hassort1" -->
|
|
<tr>
|
|
<td>Patron sort1</td>
|
|
<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
|
|
<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
|
|
<td><select name="Filter" id="sort1">
|
|
<option value=""> </option>
|
|
<!-- TMPL_LOOP NAME="Bsort1" -->
|
|
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected"><!-- TMPL_VAR NAME="lib" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="authorised_value" -->" ><!-- TMPL_VAR NAME="lib" --></option><!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF Name="hassort2" -->
|
|
<tr> <td>Patron sort2</td>
|
|
<td><input type="radio" name="Line" value="borrowers.sort2" /></td>
|
|
<td><input type="radio" name="Column" value="borrowers.sort2" /></td>
|
|
<td><select name="Filter" id="sort1">
|
|
<option value=""> </option>
|
|
<!-- TMPL_LOOP NAME="Bsort2" -->
|
|
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected"><!-- TMPL_VAR NAME="lib" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="authorised_value" -->"><!-- TMPL_VAR NAME="lib" --></option><!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_IF -->
|
|
</tbody>
|
|
</table><br /></fieldset>
|
|
|
|
<fieldset class="rows"><legend>Cell value </legend><ol><li><label for="cellvalue1">Count total items</label> <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" /> </li>
|
|
<li><label for="cellvalue3">Count unique items</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li></ol></fieldset>
|
|
|
|
<fieldset class="rows">
|
|
<legend>Output</legend>
|
|
<ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
|
|
<li><label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" /> <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" /> <label class="inline" for="MIME">Into an application
|
|
</label><!-- TMPL_VAR NAME="CGIextChoice" -->
|
|
<!-- TMPL_VAR NAME="CGIsepChoice" --></li></ol>
|
|
</fieldset>
|
|
|
|
<fieldset class="action">
|
|
<input type="submit" value="Submit" />
|
|
<input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
|
|
<input type="hidden" name="do_it" value="1" />
|
|
</fieldset>
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="reports-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|