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