Bug 7478: fix template translation problem in catalogue_out.tt
[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         <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>  
98      [% END %] 
99     </select></li>
100       <li> 
101         <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
102         <option value="">Any item type</option>
103     [% FOREACH itemtypeloo IN itemtypeloop %]
104         <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>  
105      [% END %] 
106     </select>
107     </li>
108                 </ol>   
109         </fieldset>
110         
111         <fieldset class="rows">
112         <legend>Limits</legend>
113                 <ol>
114                 <li><label for="numberlimit">Limit to: </label> <select name="Limit" id="numberlimit">
115                                                 <option value ="" selected="selected">None</option>
116                                                 <option value ="5"> 5</option>
117                                                 <option value ="10">10</option>
118                                                 <option value ="15">15</option>
119                                                 <option value ="20">20</option>
120                                                 <option value ="25">25</option>
121                                                 <option value ="40">40</option>
122                                                 <option value ="50">50</option>
123                                                 <option value ="100">100</option>
124                                                 <option value ="250">250</option>
125                                                 <option value ="500">500</option>
126                                                 <option value ="700">750</option>
127                                                 <option value ="1000">1000</option>
128                                         </select></li>
129                 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
130                                                 <option value ="" selected="selected">None</option>
131                                                 <option value ="homebranch">Library</option>
132                         <option value ="itype">Item type</option>
133                                         </select></li>
134                 </ol>
135         </fieldset>
136 <!-- FIXME: Not implemented
137         <fieldset class="rows">
138         <legend>Output</legend>
139 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
140     <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" disabled="disabled" />
141                 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
142                 <label class="inline" for="MIME">Into an application </label>
143         <select name="MIME" id="MIME">
144         [% FOREACH CGIextChoic IN CGIextChoice %]
145           <option value="[% CGIextChoic.type %]">[% CGIextChoic.type %]</option>
146         [% END %]
147         </select>
148         [% CGIsepChoice %]
149         </li>
150 </ol>
151     </fieldset> -->
152
153         <fieldset class="action">
154         <input type="submit" value="Submit" />
155         <input type="hidden" name="report_name" value="[% report_name %]" />
156     <input type="hidden" name="do_it" value="1" />
157     <input type="hidden" name="output" value="screen" />
158         </fieldset>
159         </form>
160 [% END %]
161
162 </div>
163 </div>
164 <div class="yui-b">
165 [% INCLUDE 'reports-menu.inc' %]
166 </div>
167 </div>
168 [% INCLUDE 'intranet-bottom.inc' %]