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