1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Reports › Most-Circulated Items</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 <!-- TMPL_IF NAME="do_it" -->
6 <script language="JavaScript" type="text/javascript">
8 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
14 <!-- TMPL_INCLUDE NAME="header.inc" -->
15 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
17 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> › Most-Circulated Items</div>
19 <div id="doc3" class="yui-t2">
25 <!-- TMPL_IF NAME="do_it" -->
27 <!-- TMPL_LOOP NAME="mainloop" -->
28 <h1>Top <!-- TMPL_VAR NAME="limit"--> Most-Circulated Items</h1>
29 <!-- TMPL_IF NAME="loopfilter"-->
31 <!-- TMPL_LOOP NAME="loopfilter" -->
32 <p><!-- TMPL_IF NAME="err" --> <!--/TMPL_IF --> <!-- TMPL_VAR NAME="crit"--> =<!-- TMPL_VAR NAME="filter"--><!-- TMPL_IF NAME="err" --> <!--/TMPL_IF --></p>
37 <th>Rank/Biblioitemnumbers</th>
38 <!-- TMPL_LOOP NAME="loopcol" -->
39 <th colspan="2"><!-- TMPL_VAR NAME="coltitle" --></th>
43 <!-- TMPL_LOOP NAME="loopcol" -->
45 <th>Count of Checkouts</th>
48 <!-- TMPL_LOOP NAME="looprow" -->
49 <!-- TMPL_IF NAME="hilighted" --><tr class="highlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
50 <td><!-- TMPL_VAR NAME="rowtitle" --></td>
51 <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
52 <!-- TMPL_VAR NAME="rowtitle" --></td>
53 <!-- TMPL_LOOP NAME="loopcell" -->
56 <!-- TMPL_IF NAME="reference" -->
57 <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
58 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="reference" ESCAPE="URL" -->">
59 <!-- TMPL_ELSIF name="BiblioDefaultViewisbd"-->
60 <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="reference" ESCAPE="URL" -->">
62 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="reference" ESCAPE="URL" -->">
65 <!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
66 <!-- TMPL_IF NAME="reference" --></a><!-- /TMPL_IF -->
69 <!-- TMPL_IF NAME="count" --><!-- TMPL_VAR NAME="count" --><!-- /TMPL_IF -->
77 <h1>Most-Circulated Items</h1>
78 <form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
79 <fieldset class="rows">
81 <li><label for="from">Checkout date from: </label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
82 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFrom" style="cursor: pointer;" />
83 <script language="JavaScript" type="text/javascript">
84 function validate1(date) {
85 var day = date.getDate();
86 var month = date.getMonth() + 1;
87 var year = date.getFullYear();
88 var weekDay = date.getDay();
89 var dayMonth = month + '-' + day;
90 var dateString = year + '-' + month + '-' + day;
91 var dateTo = document.getElementById('to').value.split("-");
92 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
93 if (date > limitDate) {
103 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
104 button : "openCalendarFrom",
105 disableFunc : validate1,
106 dateStatusFunc : validate1
110 <label for="to" class="inline">To:</label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
111 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarTo" style="cursor: pointer;" border="0" />
112 <script type="text/javascript">
113 function validate2(date) {
114 var day = date.getDate();
115 var month = date.getMonth() + 1;
116 var year = date.getFullYear();
117 var weekDay = date.getDay();
118 var dayMonth = month + '-' + day;
119 var dateString = year + '-' + month + '-' + day;
120 var dateFrom = document.getElementById('from').value.split("-");
121 var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
122 if (limitDate > date) {
132 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
133 button : "openCalendarTo",
134 disableFunc : validate2,
135 dateStatusFunc : validate2
139 <li><label for="fromRO">Check-in date from</label> <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
140 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFromRO" style="cursor: pointer;" />
141 <script language="JavaScript" type="text/javascript">
142 function validate1(date) {
143 var day = date.getDate();
144 var month = date.getMonth() + 1;
145 var year = date.getFullYear();
146 var weekDay = date.getDay();
147 var dayMonth = month + '-' + day;
148 var dateString = year + '-' + month + '-' + day;
149 var dateTo = document.getElementById('toRO').value.split("-");
150 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
151 if (date > limitDate) {
160 inputField : "fromRO",
161 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
162 button : "openCalendarFromRO",
163 disableFunc : validate1,
164 dateStatusFunc : validate1
168 <label for="toRO" class="inline">To: </label> <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
169 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarToRO" style="cursor: pointer;" border="0" />
170 <script type="text/javascript">
171 function validate2(date) {
172 var day = date.getDate();
173 var month = date.getMonth() + 1;
174 var year = date.getFullYear();
175 var weekDay = date.getDay();
176 var dayMonth = month + '-' + day;
177 var dateString = year + '-' + month + '-' + day;
178 var dateFrom = document.getElementById('fromRO').value.split("-");
179 var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
180 if (limitDate > date) {
190 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
191 button : "openCalendarToRO",
192 disableFunc : validate2,
193 dateStatusFunc : validate2
197 <li><label for="branch">Branch: </label>
198 <select name="Filter" id="branch"><option value="" > Any Branch</option>
199 <!--TMPL_LOOP Name="branchloop"-->
200 <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="branchname"--> </option>
204 <label for="documenttype">Document Type: </label><select name="Filter" id="documenttype"><option value="" > Any Document type</option>
205 <!--TMPL_LOOP Name="itemtypeloop"-->
206 <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
211 <label for="patroncategory">Patron Category: </label><select name="Filter" id="patroncategory"><option value="" > Any Category code</option>
212 <!--TMPL_LOOP Name="borcatloop"-->
213 <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
217 <li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
218 <li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
219 <li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
223 <fieldset class="rows">
224 <legend>Limits</legend>
225 <ol><li><label for="numberlimit">Limit to:</label><select name="Limit" id="numberlimit">
226 <option value ="" selected="selected">None</option>
227 <option value="5" selected="selected"> 5</option>
228 <option value ="10">10</option>
229 <option value ="15">15</option>
230 <option value ="20">20</option>
231 <option value ="25">25</option>
232 <option value ="40">40</option>
233 <option value ="50">50</option>
234 <option value ="100">100</option>
236 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
237 <option value ="" selected="selected">None</option>
238 <option value ="issuingbranch">Branch</option>
239 <option value ="categorycode">Categorycode</option>
240 <option value ="itemtype">Itemtype</option>
241 <option value ="Day">Day</option>
242 <option value ="Week">Week</option>
243 <option value ="Month">Month</option>
244 <option value ="Year">Year</option>
248 <fieldset class="rows">
249 <legend>Output</legend>
250 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
251 <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
252 </label><!-- TMPL_VAR NAME="CGIextChoice" -->
253 <!-- TMPL_VAR NAME="CGIsepChoice" --></li></ol>
256 <fieldset class="action">
257 <input type="submit" value="Submit" />
258 <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
259 <input type="hidden" name="do_it" value="1" />
267 <!-- TMPL_INCLUDE NAME="reports-menu.inc" -->
270 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->