Bug 13618: Add html filters to all the variables
[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 | html %] = [% loopfilte.filter | html %]
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 | html %]">[% looptable.coltitle | html %]</a></td>
43                                         <td>[% IF ( looptable.looptable_count ) %]
44                                                 [% looptable.looptable_first | html %] to [% looptable.looptable_last | html %]
45                                                 [% END %]
46                                         </td>
47                                         <td>[% looptable.looptable_count | html %]</td>
48                                         <td>[% looptable.coltitle_count | html %]</td>
49                                 </tr>
50                         [% END %]
51                                 <tr><th>TOTAL</th><th></th><th>[% mainloo.total_looptable_count | html %]</th><th>[% mainloo.total_coltitle_count | html %]</th>
52                                 </tr>
53                         </table>
54
55                 [% END %]
56                 [% FOREACH looptable IN mainloo.looptables %]
57                 <h3><a id="table[% looptable.coltitle | html %]"></a>
58                         [% looptable.coltitle | html %]
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                     <tr>
70                     
71                                                 <td>[% loop.count | html %]</td>
72                         <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber | html %][% ELSE %]No call number[% END %]</td>
73                         <td>[% IF ( loopro.barcode ) %][% loopro.barcode | html %][% ELSE %]No barcode[% END %]</td>
74                         <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | html %]">[% IF ( loopro.title ) %][% loopro.title | html %][% ELSE %]NO TITLE[% END %]</a> [% IF ( loopro.author ) %] by [% loopro.author | html %][% END %]</p>
75                             [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) | html %][% END %]
76                                                 </td>
77                                         </tr>
78                                 [% END %]
79                                 [% ELSE %]
80                                         <tr><td colspan="4">No items for [% looptable.coltitle | html %]</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         [% PROCESS options_for_libraries libraries => Branches.all() %]
96     </select></li>
97       <li> 
98         <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
99         <option value="">Any item type</option>
100     [% FOREACH itemtype IN itemtypes %]
101         <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
102      [% END %] 
103     </select>
104     </li>
105                 </ol>   
106         </fieldset>
107         
108         <fieldset class="rows">
109         <legend>Limits</legend>
110                 <ol>
111         <li>
112             <label for="numberlimit">Limit to: </label>
113             <select name="Limit" id="numberlimit">
114                 <option value ="10">10</option>
115                 <option value ="20">20</option>
116                 <option value ="50">50</option>
117                 <option value ="100">100</option>
118                 <option value ="200">200</option>
119                 <option value ="300">300</option>
120                 <option value ="400">400</option>
121                 <option value ="500">500</option>
122                 <option value ="1000">1000</option>
123             </select>
124         </li>
125                 <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
126                                                 <option value ="" selected="selected">None</option>
127                                                 <option value ="homebranch">Library</option>
128                         <option value ="itype">Item type</option>
129                                         </select></li>
130                 </ol>
131         </fieldset>
132
133         <fieldset class="action">
134         <input type="submit" value="Submit" />
135         <input type="hidden" name="report_name" value="[% report_name | html %]" />
136     <input type="hidden" name="do_it" value="1" />
137     <input type="hidden" name="output" value="screen" />
138         </fieldset>
139         </form>
140 [% END %]
141
142 </div>
143 </div>
144 <div class="yui-b">
145 [% INCLUDE 'reports-menu.inc' %]
146 </div>
147 </div>
148 [% INCLUDE 'intranet-bottom.inc' %]