Merge branch 'bug_9850' into 3.14-master
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / catalogue_out.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Reports &rsaquo; Items with no checkouts</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <style type="text/css">
5         .sql {display: none;}
6 </style>
7 </head>
8 <body id="rep_catalogue_out" class="rep">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
11
12 <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>
13
14 <div id="doc3" class="yui-t2">
15    <div id="bd">
16         <div id="yui-main">
17         <div class="yui-b">
18
19 [% IF ( do_it ) %]
20         <h1>Items with no checkouts</h1>
21         [% FOREACH mainloo IN mainloop %]
22                 [% IF ( mainloo.loopfilter ) %]
23             <p>Filtered on:</p>
24                         [% FOREACH loopfilte IN mainloo.loopfilter %]
25                                 [% IF ( loopfilte.err ) %]<p class="error">Error: 
26                                 [% ELSE %]<p>
27                                 [% END %]
28                                         [% IF ( loopfilte.sql ) %]<span class="sql">[% END %]
29                                         [% loopfilte.crit %] = [% loopfilte.filter %]
30                                         [% IF ( loopfilte.sql ) %]</span>[% END %]
31                                 </p>
32                         [% END %]
33                 [% END %]
34                 
35                 [% IF ( mainloo.looptables ) %]
36                         <h3><a name="summary" id="summary"></a>Summary</h3>
37                         <table id="summary_table">
38                 <tr><th>Group</th><th>Call number range</th><th>Number of items displayed</th><th>Total items in group</th>
39                                 </tr>
40                         [% FOREACH looptable IN mainloo.looptables %]
41                                 <tr><td><a href="#table[% looptable.coltitle %]">[% looptable.coltitle %]</a></td>
42                                         <td>[% IF ( looptable.looptable_count ) %]
43                                                 [% looptable.looptable_first %] to [% looptable.looptable_last %]
44                                                 [% END %]
45                                         </td>
46                                         <td>[% looptable.looptable_count %]</td>
47                                         <td>[% looptable.coltitle_count %]</td>
48                                 </tr>
49                         [% END %]
50                                 <tr><th>TOTAL</th><th></th><th>[% mainloo.total_looptable_count %]</th><th>[% mainloo.total_coltitle_count %]</th>
51                                 </tr>
52                         </table>
53
54                 [% END %]
55                 [% FOREACH looptable IN mainloo.looptables %]
56                 <h3><a id="table[% looptable.coltitle %]"></a>
57                         [% looptable.coltitle %]
58                 </h3>
59                 <table>
60                         <tr>
61                                 <th>#</th>
62                 <th>Call number</th>
63                                 <th>Barcode</th>
64                 <th>Item details</th>
65                         </tr>
66                                 [% IF ( looptable.looprow ) %]
67                                 [% FOREACH loopro IN looptable.looprow %]
68                                 [% DEFAULT
69                     loopro.itemcallnumber="No call number"
70                     loopro.barcode="No barcode"
71                                     loopro.title="NO TITLE"
72                                     loopro.author=""
73                                 %]
74                                     [% UNLESS ( loop.odd ) %]<tr class="highlight">
75                                     [% ELSE %]<tr>[% END %]
76                     
77                                                 <td>[% loop.count %]</td>
78                                                 <td>[% loopro.itemcallnumber %]</td>
79                                                 <td>[% loopro.barcode %]</td>
80                                                 <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% loopro.title %]</a></p>
81                                                         [% loopro.author %]
82                                                         [% IF ( loopro.branch ) %]at [% loopro.branch %][% END %]
83                                                 </td>
84                                         </tr>
85                                 [% END %]
86                                 [% ELSE %]
87                                         <tr><td colspan="4">No items for [% looptable.coltitle %]</td>
88                                         </tr>
89                                 [% END %]
90                 </table>
91                 [% END %]
92         [% END %]
93 [% ELSE %]
94     <h1>Items with no checkouts</h1>
95         <form method="post" action="/cgi-bin/koha/reports/catalogue_out.pl">
96         
97         <fieldset class="rows">
98                 <ol>
99                         <li><label for="branch">Library: </label>
100         <select name="Filter" id="branch">
101         <option value="">Any library</option>
102     [% FOREACH branchloo IN branchloop %]
103         <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>  
104      [% END %] 
105     </select></li>
106       <li> 
107         <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
108         <option value="">Any item type</option>
109     [% FOREACH itemtypeloo IN itemtypeloop %]
110         <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>  
111      [% END %] 
112     </select>
113     </li>
114                 </ol>   
115         </fieldset>
116         
117         <fieldset class="rows">
118         <legend>Limits</legend>
119                 <ol>
120                 <li><label for="numberlimit">Limit to: </label> <select name="Limit" id="numberlimit">
121                                                 <option value ="" selected="selected">None</option>
122                                                 <option value ="5"> 5</option>
123                                                 <option value ="10">10</option>
124                                                 <option value ="15">15</option>
125                                                 <option value ="20">20</option>
126                                                 <option value ="25">25</option>
127                                                 <option value ="40">40</option>
128                                                 <option value ="50">50</option>
129                                                 <option value ="100">100</option>
130                                                 <option value ="250">250</option>
131                                                 <option value ="500">500</option>
132                                                 <option value ="700">750</option>
133                                                 <option value ="1000">1000</option>
134                                         </select></li>
135                 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
136                                                 <option value ="" selected="selected">None</option>
137                                                 <option value ="homebranch">Library</option>
138                         <option value ="itype">Item type</option>
139                                         </select></li>
140                 </ol>
141         </fieldset>
142 <!-- FIXME: Not implemented
143         <fieldset class="rows">
144         <legend>Output</legend>
145 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
146     <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" disabled="disabled" />
147                 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
148                 <label class="inline" for="MIME">Into an application </label>
149         <select name="MIME" id="MIME">
150         [% FOREACH CGIextChoic IN CGIextChoice %]
151           <option value="[% CGIextChoic.type %]">[% CGIextChoic.type %]</option>
152         [% END %]
153         </select>
154         [% CGIsepChoice %]
155         </li>
156 </ol>
157     </fieldset> -->
158
159         <fieldset class="action">
160         <input type="submit" value="Submit" />
161         <input type="hidden" name="report_name" value="[% report_name %]" />
162         <input type="hidden" name="do_it" value="1" />
163         </fieldset>
164         </form>
165 [% END %]
166
167 </div>
168 </div>
169 <div class="yui-b">
170 [% INCLUDE 'reports-menu.inc' %]
171 </div>
172 </div>
173 [% INCLUDE 'intranet-bottom.inc' %]