Bug 8417: Make the order receive date editable
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / catalogue_out.tt
1 [% USE Branches %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Reports &rsaquo; Items with no checkouts</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <style type="text/css">
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 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; Items with no checkouts</div>
14
15 <div id="doc3" class="yui-t2">
16    <div id="bd">
17         <div id="yui-main">
18         <div class="yui-b">
19
20 [% IF ( do_it ) %]
21         <h1>Items with no checkouts</h1>
22         [% FOREACH mainloo IN mainloop %]
23                 [% IF ( mainloo.loopfilter ) %]
24             <p>Filtered on:</p>
25                         [% FOREACH loopfilte IN mainloo.loopfilter %]
26                                 [% IF ( loopfilte.err ) %]<p class="error">Error: 
27                                 [% ELSE %]<p>
28                                 [% END %]
29                                         [% IF ( loopfilte.sql ) %]<span class="sql">[% END %]
30                                         [% loopfilte.crit %] = [% loopfilte.filter %]
31                                         [% IF ( loopfilte.sql ) %]</span>[% END %]
32                                 </p>
33                         [% END %]
34                 [% END %]
35                 
36                 [% IF ( mainloo.looptables ) %]
37                         <h3><a name="summary" id="summary"></a>Summary</h3>
38                         <table id="summary_table">
39                 <tr><th>Group</th><th>Call number range</th><th>Number of items displayed</th><th>Total items in group</th>
40                                 </tr>
41                         [% FOREACH looptable IN mainloo.looptables %]
42                                 <tr><td><a href="#table[% looptable.coltitle %]">[% looptable.coltitle %]</a></td>
43                                         <td>[% IF ( looptable.looptable_count ) %]
44                                                 [% looptable.looptable_first %] to [% looptable.looptable_last %]
45                                                 [% END %]
46                                         </td>
47                                         <td>[% looptable.looptable_count %]</td>
48                                         <td>[% looptable.coltitle_count %]</td>
49                                 </tr>
50                         [% END %]
51                                 <tr><th>TOTAL</th><th></th><th>[% mainloo.total_looptable_count %]</th><th>[% mainloo.total_coltitle_count %]</th>
52                                 </tr>
53                         </table>
54
55                 [% END %]
56                 [% FOREACH looptable IN mainloo.looptables %]
57                 <h3><a id="table[% looptable.coltitle %]"></a>
58                         [% looptable.coltitle %]
59                 </h3>
60                 <table>
61                         <tr>
62                                 <th>#</th>
63                 <th>Call number</th>
64                                 <th>Barcode</th>
65                 <th>Item details</th>
66                         </tr>
67                                 [% IF ( looptable.looprow ) %]
68                                 [% FOREACH loopro IN looptable.looprow %]
69                                     [% UNLESS ( loop.odd ) %]<tr class="highlight">
70                                     [% ELSE %]<tr>[% END %]
71                     
72                                                 <td>[% loop.count %]</td>
73                         <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber %][% ELSE %]No call number[% END %]</td>
74                         <td>[% IF ( loopro.barcode ) %][% loopro.barcode %][% ELSE %]No barcode[% END %]</td>
75                         <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% IF ( loopro.title ) %][% loopro.title %][% ELSE %]NO TITLE[% END %]</a> [% IF ( loopro.author ) %] by [% loopro.author %][% END %]</p>
76                             [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) %][% END %]
77                                                 </td>
78                                         </tr>
79                                 [% END %]
80                                 [% ELSE %]
81                                         <tr><td colspan="4">No items for [% looptable.coltitle %]</td>
82                                         </tr>
83                                 [% END %]
84                 </table>
85                 [% END %]
86         [% END %]
87 [% ELSE %]
88     <h1>Items with no checkouts</h1>
89         <form method="post" action="/cgi-bin/koha/reports/catalogue_out.pl">
90         
91         <fieldset class="rows">
92                 <ol>
93                         <li><label for="branch">Library: </label>
94         <select name="Filter" id="branch">
95         <option value="">Any library</option>
96     [% FOREACH branchloo IN branchloop %]
97       [% IF ( branchloo.selected ) %]
98         <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
99       [% ELSE %]
100         <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
101       [% END %]
102     [% END %]
103     </select></li>
104       <li> 
105         <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
106         <option value="">Any item type</option>
107     [% FOREACH itemtypeloo IN itemtypeloop %]
108         <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>  
109      [% END %] 
110     </select>
111     </li>
112                 </ol>   
113         </fieldset>
114         
115         <fieldset class="rows">
116         <legend>Limits</legend>
117                 <ol>
118         <li>
119             <label for="numberlimit">Limit to: </label>
120             <select name="Limit" id="numberlimit">
121                 <option value ="10">10</option>
122                 <option value ="20">20</option>
123                 <option value ="50">50</option>
124                 <option value ="100">100</option>
125                 <option value ="200">200</option>
126                 <option value ="300">300</option>
127                 <option value ="400">400</option>
128                 <option value ="500">500</option>
129                 <option value ="1000">1000</option>
130             </select>
131         </li>
132                 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
133                                                 <option value ="" selected="selected">None</option>
134                                                 <option value ="homebranch">Library</option>
135                         <option value ="itype">Item type</option>
136                                         </select></li>
137                 </ol>
138         </fieldset>
139
140         <fieldset class="action">
141         <input type="submit" value="Submit" />
142         <input type="hidden" name="report_name" value="[% report_name %]" />
143     <input type="hidden" name="do_it" value="1" />
144     <input type="hidden" name="output" value="screen" />
145         </fieldset>
146         </form>
147 [% END %]
148
149 </div>
150 </div>
151 <div class="yui-b">
152 [% INCLUDE 'reports-menu.inc' %]
153 </div>
154 </div>
155 [% INCLUDE 'intranet-bottom.inc' %]