1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Reports › Most-circulated items[% IF ( do_it ) %] › Results[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript">
7 [% IF ( do_it ) %]function Dopop(link) {
8 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
10 $(document).ready(function() {
11 // http://jqueryui.com/demos/datepicker/#date-range
12 var dates = $( "#from, #to" ).datepicker({
15 onSelect: function( selectedDate ) {
16 var option = this.id == "from" ? "minDate" : "maxDate",
17 instance = $( this ).data( "datepicker" );
18 date = $.datepicker.parseDate(
19 instance.settings.dateFormat ||
20 $.datepicker._defaults.dateFormat,
21 selectedDate, instance.settings );
22 dates.not( this ).datepicker( "option", option, date );
25 var datesRO = $( "#fromRO, #toRO" ).datepicker({
28 onSelect: function( selectedDate ) {
29 var option = this.id == "fromRO" ? "minDate" : "maxDate",
30 instance = $( this ).data( "datepicker" );
31 date = $.datepicker.parseDate(
32 instance.settings.dateFormat ||
33 $.datepicker._defaults.dateFormat,
34 selectedDate, instance.settings );
35 datesRO.not( this ).datepicker( "option", option, date );
42 <body id="rep_cat_issues_top" class="rep">
43 [% INCLUDE 'header.inc' %]
44 [% INCLUDE 'cat-search.inc' %]
46 <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>
48 <div id="doc3" class="yui-t2">
56 [% FOREACH mainloo IN mainloop %]
57 <h1>Top [% mainloo.limit %] Most-circulated items</h1>
58 [% IF ( mainloo.loopfilter ) %]
60 [% FOREACH loopfilte IN mainloo.loopfilter %]
61 <p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %] [% END %]</p>
66 <tr> <th>Rank/Biblioitemnumbers</th>
67 [% FOREACH loopco IN mainloo.loopcol %]
68 <th colspan="2">[% loopco.coltitle %]</th>
72 [% FOREACH loopco IN mainloo.loopcol %]
74 <th>Count of checkouts</th>
77 [% FOREACH loopro IN mainloo.looprow %]
78 [% IF ( loopro.hilighted ) %]<tr class="highlighted">[% ELSE %]<tr>[% END %]
79 <td>[% loopro.rowtitle %]</td>
80 [% FOREACH loopcel IN loopro.loopcell %]
83 [% IF ( loopcel.reference ) %]
84 [% IF ( loopcel.BiblioDefaultViewmarc ) %]
85 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% loopcel.reference |url %]">
86 [% ELSIF ( loopcel.BiblioDefaultViewisbd ) %]
87 <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=[% loopcel.reference |url %]">
89 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopcel.reference |url %]">
92 [% IF ( loopcel.value ) %][% loopcel.value %][% END %]
93 [% IF ( loopcel.reference ) %]</a>[% END %]
96 [% IF ( loopcel.count ) %][% loopcel.count %][% END %]
104 <h1>Most-circulated items</h1>
105 <form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
106 <fieldset class="rows">
108 <li><label for="from">Checkout date from: </label> <input type="text" size="10" id="from" name="Filter" />
109 <label for="to" class="inline">To:</label> <input size="10" id="to" name="Filter" value="" type="text" />
110 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
111 <li><label for="fromRO">Check-in date from</label> <input type="text" size="10" id="fromRO" name="Filter" />
112 <label for="toRO" class="inline">To: </label> <input type="text" size="10" id="toRO" name="Filter" value="" />
113 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
114 <li><label for="branch">Library: </label>
115 <select name="Filter" id="branch"><option value="" > Any library</option>
116 [% FOREACH branchloo IN branchloop %]
117 <option value="[% branchloo.value %]" >[% branchloo.branchname %] </option>
121 <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
122 [% FOREACH itemtypeloo IN itemtypeloop %]
123 <option value="[% itemtypeloo.value %]" >[% itemtypeloo.description %] </option>
128 <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any Category code</option>
129 [% FOREACH borcatloo IN borcatloop %]
130 <option value="[% borcatloo.value %]" >[% borcatloo.description %] </option>
134 <li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
135 <li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
136 <li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
140 <fieldset class="rows">
141 <legend>Limits</legend>
142 <ol><li><label for="numberlimit">Limit to:</label><select name="Limit" id="numberlimit">
143 <option value ="" selected="selected">None</option>
144 <option value="5" selected="selected"> 5</option>
145 <option value ="10">10</option>
146 <option value ="15">15</option>
147 <option value ="20">20</option>
148 <option value ="25">25</option>
149 <option value ="40">40</option>
150 <option value ="50">50</option>
151 <option value ="100">100</option>
153 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
154 <option value ="" selected="selected">None</option>
155 <option value ="issuingbranch">Library</option>
156 <option value ="categorycode">Categorycode</option>
157 <option value ="itemtype">Itemtype</option>
158 <option value ="Day">Day</option>
159 <option value ="Week">Week</option>
160 <option value ="Month">Month</option>
161 <option value ="Year">Year</option>
165 <fieldset class="rows">
166 <legend>Output</legend>
169 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
172 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
173 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
174 <label class="inline" for="MIME">Into an application </label>
175 <select name="MIME" id="MIME" size="1">
176 [% FOREACH value IN CGIextChoice %]
177 <option value="[% value %]">[% value %]</option>
180 <select name="sep" id="sep" size="1">
181 [% FOREACH value IN CGIsepChoice.values.sort() %]
182 [% IF ( value == CGIsepChoice.default ) %]
183 <option value="[% value %]" selected="selected">[% value %]</option>
185 <option value="[% value %]">[% value %]</option>
193 <fieldset class="action">
194 <input type="submit" value="Submit" />
195 <input type="hidden" name="report_name" value="[% report_name %]" />
196 <input type="hidden" name="do_it" value="1" />
204 [% INCLUDE 'reports-menu.inc' %]
207 [% INCLUDE 'intranet-bottom.inc' %]