Bug 34571: Remove use of "onclick" for ExpandField in cataloguing editors
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / cat_issues_top.tt
1 [% USE raw %]
2 [% USE Branches %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Most-circulated items[% IF ( do_it ) %] &rsaquo; Results[% END %] &rsaquo; Reports &rsaquo; Koha</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8
9 <body id="rep_cat_issues_top" class="rep">
10 [% WRAPPER 'header.inc' %]
11     [% INCLUDE 'cat-search.inc' %]
12 [% END %]
13
14 [% WRAPPER 'sub-header.inc' %]
15     [% WRAPPER breadcrumbs %]
16         [% WRAPPER breadcrumb_item %]
17             <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
18         [% END %]
19         [% IF ( do_it ) %]
20             [% WRAPPER breadcrumb_item %]
21                 <a href="/cgi-bin/koha/reports/cat_issues_top.pl">Most-circulated items</a>
22             [% END %]
23             [% WRAPPER breadcrumb_item bc_active= 1 %]
24                 <span>Results</span>
25             [% END %]
26         [% ELSE %]
27             [% WRAPPER breadcrumb_item bc_active= 1 %]
28                 <span>Most-circulated items</span>
29             [% END %]
30         [% END # /IF ( do_it ) %]
31     [% END #/ WRAPPER breadcrumbs %]
32 [% END #/ WRAPPER sub-header.inc %]
33
34 <div class="main container-fluid">
35     <div class="row">
36         <div class="col-sm-10 col-sm-push-2">
37             <main>
38
39 [% IF ( do_it ) %]
40
41         [% FOREACH mainloo IN mainloop %]
42         <h1>Top [% mainloo.limit | html %] Most-circulated items</h1>
43                 [% IF ( mainloo.loopfilter ) %]
44             <p>Filtered on:</p>
45                         [% FOREACH loopfilte IN mainloo.loopfilter %]
46                     <p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %]  [% END %]</p>
47                         [% END %]
48                 [% END %]
49                 
50                 <table>
51 <tr>                            <th>Rank/Biblioitemnumbers</th>
52                                 [% FOREACH loopco IN mainloo.loopcol %]
53                                         <th colspan="2">[% loopco.coltitle | html %]</th>
54                                 [% END %]</tr>
55         <tr>
56                                 <th>&nbsp;</th>
57                                 [% FOREACH loopco IN mainloo.loopcol %]
58                                         <th>Item</th>
59                     <th>Count of checkouts</th>
60                                 [% END %]
61                           </tr>
62                                 [% FOREACH loopro IN mainloo.looprow %]
63                     <tr>
64                                                 <td>[% loopro.rowtitle | html %]</td>
65                                                 [% FOREACH loopcel IN loopro.loopcell %]
66                                                         <td>
67
68 [% IF ( loopcel.reference ) %]
69     <a href="[% PROCESS biblio_a_href biblionumber => loopcel.reference %]">
70  [% END %]                                        
71                                                                 [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %]
72                                                                 [% IF ( loopcel.reference ) %]</a>[% END %]
73                                                         </td>
74                                                         <td>
75                                                                 [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %]
76                                                         </td>
77                                                 [% END %]
78                                         </tr>
79                                 [% END %]
80                 </table>
81         [% END %]
82 [% ELSE %]
83     <h1>Most-circulated items</h1>
84         <form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
85         <fieldset class="rows">
86         <ol>
87         <li>
88             <label for="checkoutfrom">Checkout date from: </label>
89             <input type="text" size="10" id="checkoutfrom" name="Filter" data-date_to="checkoutto" class="flatpickr" />
90
91             <label for="checkoutto" class="inline">To:</label>
92             <input size="10" id="checkoutto" name="Filter" value="" type="text" class="flatpickr" />
93             <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
94         </li>
95         <li>
96             <label for="checkinfrom">Check-in date from</label>
97             <input type="text" size="10" id="checkinfrom" name="Filter" data-date_to="checkinto" class="flatpickr" />
98
99             <label for="checkinto" class="inline">To: </label>
100             <input type="text" size="10" id="checkinto" name="Filter" value="" class="flatpickr" />
101             <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
102         </li>
103         <li>
104             <label for="branch">Library: </label>
105             <select name="Filter" id="branch"><option value="" > Any library</option>
106                 [% PROCESS options_for_libraries libraries => Branches.all() %]
107             </select>
108         </li>
109       <li> 
110         <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
111     [% FOREACH itemtype IN itemtypes %]
112         <option value="[% itemtype.itemtype | html %]" >[% itemtype.translated_description | html %] </option>
113      [% END %] 
114     </select>
115       </li>
116       <li> 
117         <label for="itemcallnumber">Call number: </label><input type="text" name="Filter" id="itemcallnumber" value="" />
118       </li>
119       <li>
120         <label for="ccode">Collection: </label><select name="Filter" id="ccode"><option value="" > Any collection</option>
121     [% FOREACH ccodeloo IN ccodeloop %]
122         <option value="[% ccodeloo.value | html %]" >[% ccodeloo.description | html %] </option>
123      [% END %]
124     </select>
125       </li>
126       <li>
127         <label for="shelvingloc">Shelving location: </label><select name="Filter" id="shelvingloc"><option value="" > Any shelving location</option>
128     [% FOREACH shelvinglocloo IN shelvinglocloop %]
129         <option value="[% shelvinglocloo.value | html %]" >[% shelvinglocloo.description | html %] </option>
130      [% END %]
131     </select>
132       </li>
133       <li>
134         <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
135     [% FOREACH patron_category IN patron_categories %]
136         <option value="[% patron_category.categorycode | html %]" >[% patron_category.description | html %] </option>
137      [% END %]
138     </select>
139         </li>
140                                 <li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
141                                 <li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
142                                 <li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
143         </ol>
144         </fieldset>
145         
146         <fieldset class="rows">
147         <legend>Limits</legend>
148         <ol><li><label for="numberlimit">Limit to:</label><select name="Limit" id="numberlimit">
149                         <option value ="" selected="selected">None</option>
150                                                 <option value="5" selected="selected"> 5</option>
151                                                 <option value ="10">10</option>
152                                                 <option value ="15">15</option>
153                                                 <option value ="20">20</option>
154                                                 <option value ="25">25</option>
155                                                 <option value ="40">40</option>
156                                                 <option value ="50">50</option>
157                                                 <option value ="100">100</option>
158                                         </select></li>
159         <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
160                                                 <option value ="" selected="selected">None</option>
161                         <option value ="branch">Library</option>
162                                                 <option value ="categorycode">Categorycode</option>
163                                                 <option value ="itemtype">Itemtype</option>
164                                                 <option value ="Day">Day</option>
165                                                 <option value ="Week">Week</option>
166                                                 <option value ="Month">Month</option>
167                                                 <option value ="Year">Year</option>
168                                         </select></li></ol>
169         </fieldset>
170         
171         <fieldset class="rows">
172         <legend>Output</legend>
173     <ol>
174         <li>
175             <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
176         </li>
177         <li>
178             <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
179             <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
180             <label class="inline" for="MIME">Into an application:</label>
181             <select name="MIME" id="MIME">
182             [% FOREACH value IN CGIextChoice %]
183                 <option value="[% value | html %]">[% value | html %]</option>
184             [% END %]
185             </select>
186             <select name="sep" id="sep">
187             [% FOREACH value IN CGIsepChoice.values.sort() %]
188               [% IF ( value == CGIsepChoice.default ) %]
189                 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
190               [% ELSE %]
191                 <option value="[% value | html %]">[% value | html %]</option>
192               [% END %]
193             [% END %]
194             </select>
195         </li>
196     </ol>
197         </fieldset>
198
199         <fieldset class="action">
200     <input type="submit" class="btn btn-primary" value="Submit" />
201         <input type="hidden" name="report_name" value="[% report_name | html %]" />
202         <input type="hidden" name="do_it" value="1" />
203         </fieldset>
204         </form>
205 [% END %]
206
207             </main>
208         </div> <!-- /.col-sm-10.col-sm-push-2 -->
209
210         <div class="col-sm-2 col-sm-pull-10">
211             <aside>
212                 [% INCLUDE 'reports-menu.inc' %]
213             </aside>
214         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
215      </div> <!-- /.row -->
216
217 [% MACRO jsinclude BLOCK %]
218     [% INCLUDE 'calendar.inc' %]
219 [% END %]
220
221 [% INCLUDE 'intranet-bottom.inc' %]