Merge remote-tracking branch 'kc/new/enh/bug_5263' into kcmaster
[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>
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                     [% UNLESS ( loop.odd ) %]<tr class="highlight">
69                     [% ELSE %]<tr>[% END %]
70                                                 <td>[% loop.count %]</td>
71                                                 <td>[% DEFAULT loopro.itemcallnumber="No Call Number" %]</td>
72                                                 <td>[% DEFAULT loopro.barcode="No Barcode" %]</td>
73                                                 <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% DEFAULT loopro.title="NO TITLE" %]</a></p>
74                                                         [% DEFAULT loopro.author="" %]
75                                                         [% IF ( loopro.branch ) %]at [% loopro.branch %][% END %]
76                                                 </td>
77                                         </tr>
78                                 [% END %]
79                                 [% ELSE %]
80                                         <tr><td colspan="4">No items for [% looptable.coltitle %]</td>
81                                         </tr>
82                                 [% END %]
83                 </table>
84                 [% END %]
85         [% END %]
86 [% ELSE %]
87         <h1>Items with no checkouts</h1>
88         <form method="post" action="/cgi-bin/koha/reports/catalogue_out.pl">
89         
90         <fieldset class="rows">
91                 <ol>
92                         <li><label for="branch">Library: </label>
93         <select name="Filter" id="branch">
94                 <option value="">Any Library</option>
95     [% FOREACH branchloo IN branchloop %]
96         <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>  
97      [% END %] 
98     </select></li>
99       <li> 
100         <label for="documenttype">Item Type: </label><select name="Filter" id="documenttype">
101                 <option value="">Any Item Type</option>
102     [% FOREACH itemtypeloo IN itemtypeloop %]
103         <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>  
104      [% END %] 
105     </select>
106     </li>
107                 </ol>   
108         </fieldset>
109         
110         <fieldset class="rows">
111         <legend>Limits</legend>
112                 <ol>
113                 <li><label for="numberlimit">Limit to: </label> <select name="Limit" id="numberlimit">
114                                                 <option value ="" selected="selected">None</option>
115                                                 <option value ="5"> 5</option>
116                                                 <option value ="10">10</option>
117                                                 <option value ="15">15</option>
118                                                 <option value ="20">20</option>
119                                                 <option value ="25">25</option>
120                                                 <option value ="40">40</option>
121                                                 <option value ="50">50</option>
122                                                 <option value ="100">100</option>
123                                                 <option value ="250">250</option>
124                                                 <option value ="500">500</option>
125                                                 <option value ="700">750</option>
126                                                 <option value ="1000">1000</option>
127                                         </select></li>
128                 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
129                                                 <option value ="" selected="selected">None</option>
130                                                 <option value ="homebranch">Library</option>
131                                                 <option value ="itype">Itemtype</option>
132                                         </select></li>
133                 </ol>
134         </fieldset>
135         
136         <fieldset class="rows">
137         <legend>Output</legend>
138 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
139         <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" disabled="disabled" /><!-- FIXME: Not implemented -->
140                 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
141                 <label class="inline" for="MIME">Into an application </label>
142         <select name="MIME" id="MIME">
143         [% FOREACH CGIextChoic IN CGIextChoice %]
144           <option value="[% CGIextChoic.type %]">[% CGIextChoic.type %]</option>
145         [% END %]
146         </select>
147         [% CGIsepChoice %]
148         </li>
149 </ol>
150         </fieldset>
151
152         <fieldset class="action">
153         <input type="submit" value="Submit" />
154         <input type="hidden" name="report_name" value="[% report_name %]" />
155         <input type="hidden" name="do_it" value="1" />
156         </fieldset>
157         </form>
158 [% END %]
159
160 </div>
161 </div>
162 <div class="yui-b">
163 [% INCLUDE 'reports-menu.inc' %]
164 </div>
165 </div>
166 [% INCLUDE 'intranet-bottom.inc' %]