3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Most-circulated items[% IF ( do_it ) %] › Results[% END %] › Reports › Koha</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="rep_cat_issues_top" class="rep">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
12 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
15 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
22 <a href="/cgi-bin/koha/reports/cat_issues_top.pl">Most-circulated items</a>
25 <a href="#" aria-current="page">
31 <a href="#" aria-current="page">
39 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
46 [% FOREACH mainloo IN mainloop %]
47 <h1>Top [% mainloo.limit | html %] Most-circulated items</h1>
48 [% IF ( mainloo.loopfilter ) %]
50 [% FOREACH loopfilte IN mainloo.loopfilter %]
51 <p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %] [% END %]</p>
56 <tr> <th>Rank/Biblioitemnumbers</th>
57 [% FOREACH loopco IN mainloo.loopcol %]
58 <th colspan="2">[% loopco.coltitle | html %]</th>
62 [% FOREACH loopco IN mainloo.loopcol %]
64 <th>Count of checkouts</th>
67 [% FOREACH loopro IN mainloo.looprow %]
69 <td>[% loopro.rowtitle | html %]</td>
70 [% FOREACH loopcel IN loopro.loopcell %]
73 [% IF ( loopcel.reference ) %]
74 [% IF ( loopcel.BiblioDefaultViewmarc ) %]
75 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% loopcel.reference |url %]">
76 [% ELSIF ( loopcel.BiblioDefaultViewisbd ) %]
77 <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=[% loopcel.reference |url %]">
79 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopcel.reference |url %]">
82 [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %]
83 [% IF ( loopcel.reference ) %]</a>[% END %]
86 [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %]
94 <h1>Most-circulated items</h1>
95 <form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
96 <fieldset class="rows">
98 <li><label for="from">Checkout date from: </label> <input type="text" size="10" id="from" name="Filter" />
99 <label for="to" class="inline">To:</label> <input size="10" id="to" name="Filter" value="" type="text" />
100 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
101 <li><label for="fromRO">Check-in date from</label> <input type="text" size="10" id="fromRO" name="Filter" />
102 <label for="toRO" class="inline">To: </label> <input type="text" size="10" id="toRO" name="Filter" value="" />
103 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
105 <label for="branch">Library: </label>
106 <select name="Filter" id="branch"><option value="" > Any library</option>
107 [% PROCESS options_for_libraries libraries => Branches.all() %]
111 <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
112 [% FOREACH itemtype IN itemtypes %]
113 <option value="[% itemtype.itemtype | html %]" >[% itemtype.translated_description | html %] </option>
118 <label for="itemcallnumber">Call number: </label><input type="text" name="Filter" id="itemcallnumber" value="" />
121 <label for="ccode">Collection: </label><select name="Filter" id="ccode"><option value="" > Any collection</option>
122 [% FOREACH ccodeloo IN ccodeloop %]
123 <option value="[% ccodeloo.value | html %]" >[% ccodeloo.description | html %] </option>
128 <label for="shelvingloc">Shelving location: </label><select name="Filter" id="shelvingloc"><option value="" > Any shelving location</option>
129 [% FOREACH shelvinglocloo IN shelvinglocloop %]
130 <option value="[% shelvinglocloo.value | html %]" >[% shelvinglocloo.description | html %] </option>
135 <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
136 [% FOREACH patron_category IN patron_categories %]
137 <option value="[% patron_category.categorycode | html %]" >[% patron_category.description | html %] </option>
141 <li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
142 <li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
143 <li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
147 <fieldset class="rows">
148 <legend>Limits</legend>
149 <ol><li><label for="numberlimit">Limit to:</label><select name="Limit" id="numberlimit">
150 <option value ="" selected="selected">None</option>
151 <option value="5" selected="selected"> 5</option>
152 <option value ="10">10</option>
153 <option value ="15">15</option>
154 <option value ="20">20</option>
155 <option value ="25">25</option>
156 <option value ="40">40</option>
157 <option value ="50">50</option>
158 <option value ="100">100</option>
160 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
161 <option value ="" selected="selected">None</option>
162 <option value ="branch">Library</option>
163 <option value ="categorycode">Categorycode</option>
164 <option value ="itemtype">Itemtype</option>
165 <option value ="Day">Day</option>
166 <option value ="Week">Week</option>
167 <option value ="Month">Month</option>
168 <option value ="Year">Year</option>
172 <fieldset class="rows">
173 <legend>Output</legend>
176 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
179 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
180 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
181 <label class="inline" for="MIME">Into an application:</label>
182 <select name="MIME" id="MIME">
183 [% FOREACH value IN CGIextChoice %]
184 <option value="[% value | html %]">[% value | html %]</option>
187 <select name="sep" id="sep">
188 [% FOREACH value IN CGIsepChoice.values.sort() %]
189 [% IF ( value == CGIsepChoice.default ) %]
190 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
192 <option value="[% value | html %]">[% value | html %]</option>
200 <fieldset class="action">
201 <input type="submit" value="Submit" />
202 <input type="hidden" name="report_name" value="[% report_name | html %]" />
203 <input type="hidden" name="do_it" value="1" />
209 </div> <!-- /.col-sm-10.col-sm-push-2 -->
211 <div class="col-sm-2 col-sm-pull-10">
213 [% INCLUDE 'reports-menu.inc' %]
215 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
216 </div> <!-- /.row -->
218 [% MACRO jsinclude BLOCK %]
219 [% INCLUDE 'calendar.inc' %]
221 [% UNLESS ( do_it ) %]
222 $(document).ready(function() {
223 // http://jqueryui.com/demos/datepicker/#date-range
224 var dates = $( "#from, #to" ).datepicker({
227 onSelect: function( selectedDate ) {
228 var option = this.id == "from" ? "minDate" : "maxDate",
229 instance = $( this ).data( "datepicker" );
230 date = $.datepicker.parseDate(
231 instance.settings.dateFormat ||
232 $.datepicker._defaults.dateFormat,
233 selectedDate, instance.settings );
234 dates.not( this ).datepicker( "option", option, date );
237 var datesRO = $( "#fromRO, #toRO" ).datepicker({
240 onSelect: function( selectedDate ) {
241 var option = this.id == "fromRO" ? "minDate" : "maxDate",
242 instance = $( this ).data( "datepicker" );
243 date = $.datepicker.parseDate(
244 instance.settings.dateFormat ||
245 $.datepicker._defaults.dateFormat,
246 selectedDate, instance.settings );
247 datesRO.not( this ).datepicker( "option", option, date );
255 [% INCLUDE 'intranet-bottom.inc' %]