Bug 32091: Consistent classes for primary buttons: Reports
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / catalogue_out.tt
1 [% USE Branches %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Items with no checkouts &rsaquo; Reports &rsaquo; Koha</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <style>
6         .sql {display: none;}
7 </style>
8 </head>
9 <body id="rep_catalogue_out" class="rep">
10 [% WRAPPER 'header.inc' %]
11     [% INCLUDE 'cat-search.inc' %]
12 [% END %]
13
14 [% WRAPPER 'sub-header.inc' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
16     <ol>
17         <li>
18             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19         </li>
20         <li>
21             <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
22         </li>
23         <li>
24             <a href="#" aria-current="page">
25                 Items with no checkouts
26             </a>
27         </li>
28     </ol>
29 </nav>
30 [% END %]
31
32 <div class="main container-fluid">
33     <div class="row">
34         <div class="col-sm-10 col-sm-push-2">
35             <main>
36
37 [% IF ( do_it ) %]
38         <h1>Items with no checkouts</h1>
39         [% FOREACH mainloo IN mainloop %]
40                 [% IF ( mainloo.loopfilter ) %]
41             <p>Filtered on:</p>
42                         [% FOREACH loopfilte IN mainloo.loopfilter %]
43                                 [% IF ( loopfilte.err ) %]<p class="error">Error: 
44                                 [% ELSE %]<p>
45                                 [% END %]
46                                         [% IF ( loopfilte.sql ) %]<span class="sql">[% END %]
47                                         [% loopfilte.crit | html %] = [% loopfilte.filter | html %]
48                                         [% IF ( loopfilte.sql ) %]</span>[% END %]
49                                 </p>
50                         [% END %]
51                 [% END %]
52                 
53                 [% IF ( mainloo.looptables ) %]
54                         <h3><a name="summary" id="summary"></a>Summary</h3>
55                         <table id="summary_table">
56                 <tr><th>Group</th><th>Call number range</th><th>Number of items displayed</th><th>Total items in group</th>
57                                 </tr>
58                         [% FOREACH looptable IN mainloo.looptables %]
59                 <tr><td><a href="#table[% looptable.coltitle | uri %]">[% looptable.coltitle | html %]</a></td>
60                                         <td>[% IF ( looptable.looptable_count ) %]
61                                                 [% looptable.looptable_first | html %] to [% looptable.looptable_last | html %]
62                                                 [% END %]
63                                         </td>
64                                         <td>[% looptable.looptable_count | html %]</td>
65                                         <td>[% looptable.coltitle_count | html %]</td>
66                                 </tr>
67                         [% END %]
68                                 <tr><th>TOTAL</th><th></th><th>[% mainloo.total_looptable_count | html %]</th><th>[% mainloo.total_coltitle_count | html %]</th>
69                                 </tr>
70                         </table>
71
72                 [% END %]
73                 [% FOREACH looptable IN mainloo.looptables %]
74                 <h3><a id="table[% looptable.coltitle | html %]"></a>
75                         [% looptable.coltitle | html %]
76                 </h3>
77                 <table>
78                         <tr>
79                                 <th>#</th>
80                 <th>Call number</th>
81                                 <th>Barcode</th>
82                 <th>Item details</th>
83                         </tr>
84                                 [% IF ( looptable.looprow ) %]
85                                 [% FOREACH loopro IN looptable.looprow %]
86                     <tr>
87                     
88                                                 <td>[% loop.count | html %]</td>
89                         <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber | html %][% ELSE %]No call number[% END %]</td>
90                         <td>[% IF ( loopro.barcode ) %][% loopro.barcode | html %][% ELSE %]No barcode[% END %]</td>
91                         <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]">[% IF ( loopro.title ) %][% loopro.title | html %][% ELSE %]NO TITLE[% END %]</a> [% IF ( loopro.author ) %] by [% loopro.author | html %][% END %]</p>
92                             [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) | html %][% END %]
93                                                 </td>
94                                         </tr>
95                                 [% END %]
96                                 [% ELSE %]
97                                         <tr><td colspan="4">No items for [% looptable.coltitle | html %]</td>
98                                         </tr>
99                                 [% END %]
100                 </table>
101                 [% END %]
102         [% END %]
103 [% ELSE %]
104     <h1>Items with no checkouts</h1>
105         <form method="post" action="/cgi-bin/koha/reports/catalogue_out.pl">
106         
107         <fieldset class="rows">
108                 <ol>
109                         <li><label for="branch">Library: </label>
110         <select name="Filter" id="branch">
111         <option value="">Any library</option>
112         [% PROCESS options_for_libraries libraries => Branches.all() %]
113     </select></li>
114       <li> 
115         <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
116         <option value="">Any item type</option>
117     [% FOREACH itemtype IN itemtypes %]
118         <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
119      [% END %] 
120     </select>
121     </li>
122                 </ol>   
123         </fieldset>
124         
125         <fieldset class="rows">
126         <legend>Limits</legend>
127                 <ol>
128         <li>
129             <label for="numberlimit">Limit to: </label>
130             <select name="Limit" id="numberlimit">
131                 <option value ="10">10</option>
132                 <option value ="20">20</option>
133                 <option value ="50">50</option>
134                 <option value ="100">100</option>
135                 <option value ="200">200</option>
136                 <option value ="300">300</option>
137                 <option value ="400">400</option>
138                 <option value ="500">500</option>
139                 <option value ="1000">1000</option>
140             </select>
141         </li>
142                 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
143                                                 <option value ="" selected="selected">None</option>
144                                                 <option value ="homebranch">Library</option>
145                         <option value ="itype">Item type</option>
146                                         </select></li>
147                 </ol>
148         </fieldset>
149
150         <fieldset class="action">
151     <input type="submit" class="btn btn-primary" value="Submit" />
152         <input type="hidden" name="report_name" value="[% report_name | html %]" />
153     <input type="hidden" name="do_it" value="1" />
154     <input type="hidden" name="output" value="screen" />
155         </fieldset>
156         </form>
157 [% END %]
158
159             </main>
160         </div> <!-- /.col-sm-10.col-sm-push-2 -->
161
162         <div class="col-sm-2 col-sm-pull-10">
163             <aside>
164                 [% INCLUDE 'reports-menu.inc' %]
165             </aside>
166         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
167      </div> <!-- /.row -->
168
169 [% INCLUDE 'intranet-bottom.inc' %]