2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Reports › Most-circulated items[% IF ( do_it ) %] › Results[% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <script type="text/javascript">
8 [% IF ( do_it ) %]function Dopop(link) {
9 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
11 $(document).ready(function() {
12 // http://jqueryui.com/demos/datepicker/#date-range
13 var dates = $( "#from, #to" ).datepicker({
16 onSelect: function( selectedDate ) {
17 var option = this.id == "from" ? "minDate" : "maxDate",
18 instance = $( this ).data( "datepicker" );
19 date = $.datepicker.parseDate(
20 instance.settings.dateFormat ||
21 $.datepicker._defaults.dateFormat,
22 selectedDate, instance.settings );
23 dates.not( this ).datepicker( "option", option, date );
26 var datesRO = $( "#fromRO, #toRO" ).datepicker({
29 onSelect: function( selectedDate ) {
30 var option = this.id == "fromRO" ? "minDate" : "maxDate",
31 instance = $( this ).data( "datepicker" );
32 date = $.datepicker.parseDate(
33 instance.settings.dateFormat ||
34 $.datepicker._defaults.dateFormat,
35 selectedDate, instance.settings );
36 datesRO.not( this ).datepicker( "option", option, date );
43 <body id="rep_cat_issues_top" class="rep">
44 [% INCLUDE 'header.inc' %]
45 [% INCLUDE 'cat-search.inc' %]
47 <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/cat_issues_top.pl">Most-circulated items</a> › Results[% ELSE %]Most-Circulated Items[% END %]</div>
49 <div id="doc3" class="yui-t2">
57 [% FOREACH mainloo IN mainloop %]
58 <h1>Top [% mainloo.limit %] Most-circulated items</h1>
59 [% IF ( mainloo.loopfilter ) %]
61 [% FOREACH loopfilte IN mainloo.loopfilter %]
62 <p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %] [% END %]</p>
67 <tr> <th>Rank/Biblioitemnumbers</th>
68 [% FOREACH loopco IN mainloo.loopcol %]
69 <th colspan="2">[% loopco.coltitle %]</th>
73 [% FOREACH loopco IN mainloo.loopcol %]
75 <th>Count of checkouts</th>
78 [% FOREACH loopro IN mainloo.looprow %]
80 <td>[% loopro.rowtitle %]</td>
81 [% FOREACH loopcel IN loopro.loopcell %]
84 [% IF ( loopcel.reference ) %]
85 [% IF ( loopcel.BiblioDefaultViewmarc ) %]
86 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% loopcel.reference |url %]">
87 [% ELSIF ( loopcel.BiblioDefaultViewisbd ) %]
88 <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=[% loopcel.reference |url %]">
90 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopcel.reference |url %]">
93 [% IF ( loopcel.value ) %][% loopcel.value %][% END %]
94 [% IF ( loopcel.reference ) %]</a>[% END %]
97 [% IF ( loopcel.count ) %][% loopcel.count %][% END %]
105 <h1>Most-circulated items</h1>
106 <form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
107 <fieldset class="rows">
109 <li><label for="from">Checkout date from: </label> <input type="text" size="10" id="from" name="Filter" />
110 <label for="to" class="inline">To:</label> <input size="10" id="to" name="Filter" value="" type="text" />
111 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
112 <li><label for="fromRO">Check-in date from</label> <input type="text" size="10" id="fromRO" name="Filter" />
113 <label for="toRO" class="inline">To: </label> <input type="text" size="10" id="toRO" name="Filter" value="" />
114 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
116 <label for="branch">Library: </label>
117 <select name="Filter" id="branch"><option value="" > Any library</option>
118 [% PROCESS options_for_libraries libraries => Branches.all() %]
122 <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
123 [% FOREACH itemtype IN itemtypes %]
124 <option value="[% itemtype.itemtype %]" >[% itemtype.translated_description %] </option>
129 <label for="itemcallnumber">Call number: </label><input type="text" name="Filter" id="itemcallnumber" value="" />
132 <label for="ccode">Collection: </label><select name="Filter" id="ccode"><option value="" > Any collection</option>
133 [% FOREACH ccodeloo IN ccodeloop %]
134 <option value="[% ccodeloo.value %]" >[% ccodeloo.description %] </option>
139 <label for="shelvingloc">Shelving location: </label><select name="Filter" id="shelvingloc"><option value="" > Any shelving location</option>
140 [% FOREACH shelvinglocloo IN shelvinglocloop %]
141 <option value="[% shelvinglocloo.value %]" >[% shelvinglocloo.description %] </option>
146 <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
147 [% FOREACH patron_category IN patron_categories %]
148 <option value="[% patron_category.categorycode %]" >[% patron_category.description %] </option>
152 <li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
153 <li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
154 <li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
158 <fieldset class="rows">
159 <legend>Limits</legend>
160 <ol><li><label for="numberlimit">Limit to:</label><select name="Limit" id="numberlimit">
161 <option value ="" selected="selected">None</option>
162 <option value="5" selected="selected"> 5</option>
163 <option value ="10">10</option>
164 <option value ="15">15</option>
165 <option value ="20">20</option>
166 <option value ="25">25</option>
167 <option value ="40">40</option>
168 <option value ="50">50</option>
169 <option value ="100">100</option>
171 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
172 <option value ="" selected="selected">None</option>
173 <option value ="branch">Library</option>
174 <option value ="categorycode">Categorycode</option>
175 <option value ="itemtype">Itemtype</option>
176 <option value ="Day">Day</option>
177 <option value ="Week">Week</option>
178 <option value ="Month">Month</option>
179 <option value ="Year">Year</option>
183 <fieldset class="rows">
184 <legend>Output</legend>
187 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
190 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
191 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
192 <label class="inline" for="MIME">Into an application:</label>
193 <select name="MIME" id="MIME" size="1">
194 [% FOREACH value IN CGIextChoice %]
195 <option value="[% value %]">[% value %]</option>
198 <select name="sep" id="sep" size="1">
199 [% FOREACH value IN CGIsepChoice.values.sort() %]
200 [% IF ( value == CGIsepChoice.default ) %]
201 <option value="[% value %]" selected="selected">[% value %]</option>
203 <option value="[% value %]">[% value %]</option>
211 <fieldset class="action">
212 <input type="submit" value="Submit" />
213 <input type="hidden" name="report_name" value="[% report_name %]" />
214 <input type="hidden" name="do_it" value="1" />
222 [% INCLUDE 'reports-menu.inc' %]
225 [% INCLUDE 'intranet-bottom.inc' %]