Merge remote-tracking branch 'origin/new/bug_6858'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / catalogue_stats.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Reports [% IF ( do_it ) %]&rsaquo; Catalog statistics &rsaquo; Results[% ELSE %]&rsaquo; Catalog statistics[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="rep_catalogue_stats" class="rep">
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'cat-search.inc' %]
8
9 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]&rsaquo; <a href="/cgi-bin/koha/reports/catalogue_stats.pl">Catalog statistics</a> &rsaquo; Results[% ELSE %]&rsaquo; Catalog statistics[% END %]</div>
10
11 <div id="doc3" class="yui-t2">
12    
13    <div id="bd">
14         <div id="yui-main">
15         <div class="yui-b">
16
17 [% IF ( do_it ) %]
18         [% FOREACH mainloo IN mainloop %]
19                 <h1>Catalog statistics</h1>
20                 [% IF ( mainloo.loopfilter ) %]
21                         <p>Filtered on</p>
22                         [% FOREACH loopfilte IN mainloo.loopfilter %]
23                                         <p>[% loopfilte.crit %] =[% loopfilte.filter %]</p>
24                         [% END %]
25                 [% END %]
26                 
27                 <table>
28                         <tr>
29                                 <th>[% mainloo.line %] / [% mainloo.column %]</th>
30                                 [% FOREACH loopco IN mainloo.loopcol %]
31                                         <th>[% loopco.coltitle %]</th>
32                                 [% END %]
33                                 <th>TOTAL</th>
34                         </tr>
35                                 [% FOREACH loopro IN mainloo.looprow %]
36                                         <tr>
37                                                 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
38                                                 [% loopro.rowtitle %]</td>
39                                                 [% FOREACH loopcel IN loopro.loopcell %]
40                                                         [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
41                                                                 [% IF ( loopcel.value ) %][% loopcel.value %]
42                                                                 [% ELSE %]&nbsp;
43                                                                 [% END %]
44                                                         </td>
45                                                 [% END %]
46                                                 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
47                                                         [% loopro.totalrow %]
48                                                 </td>
49                                         </tr>
50                                 [% END %]
51                                 <tr>
52                                         <th>TOTAL</th>
53                                         [% FOREACH loopfoote IN mainloo.loopfooter %]
54                                                 <th>
55                                                         [% loopfoote.totalcol %]
56                                                 </th>
57                                         [% END %]
58                                         <th>[% mainloo.total %]</th>
59                                 </tr>
60                 </table>
61         [% END %]
62 [% ELSE %]
63
64         <form method="post" action="/cgi-bin/koha/reports/catalogue_stats.pl">
65         <input type="hidden" name="Filter" /> <input type="hidden" name="Filter" />
66         [% UNLESS ( haslccn ) %]
67         <input type="hidden" name="Filter" /> <input type="hidden" name="Filter" />
68         [% END %]
69         <fieldset class="rows">
70         <legend>Catalog statistics</legend>
71         <table>
72                 <thead>
73                         <tr>
74                         <th>Title</th>
75                         <th>Row</th>
76                         <th>Column</th>
77                         <th>Filter</th>
78                         </tr>
79                 </thead>
80                 <tbody>
81                         [% IF ( haslccn ) %]
82                                         <tr>
83                     <td>LoC classification</td>
84                                         <td><input type="radio" name="Line" value="lccn" /></td>
85                                         <td><input type="radio" name="Column" value="lccn" /></td>
86                                         <td> <label for="locFrom">From</label> <input type="text" name="Filter" id="locFrom" /> <label for="locTo">To</label> <input type="text" name="Filter" id="locTo" /></td>
87                                 </tr>
88                                         <tr>
89                                         <td>&nbsp;</td>
90                                         <td colspan="2"><select name="lccndigits" id="lccndigits">
91                                                 <option value=""> </option>
92                                                 <option value ="1">1</option>
93                                                 <option value ="2">2</option>
94                                                 <option value ="3">3</option>
95                                                 <option value ="4">4</option>
96                                                 <option value ="5">5</option>
97                                                 </select>
98                                                 <label for="lccndigits">characters</label>
99                                         </td>
100                                         <td>&nbsp;</td>
101                                 </tr>
102                         [% END %]
103                         [% IF ( hascote ) %]
104                           <tr>
105                     <td>Koha full call number</td>
106                                         <td><input type="radio" name="Line" value="items.itemcallnumber" /></td>
107                                         <td><input type="radio" name="Column" value="items.itemcallnumber" /></td>
108                                         <td><label for="callnoFrom">From</label> <input type="text" name="Filter" id="callnoFrom" /> <label for="callnoTo">To</label> <input type="text" name="Filter" id="callnoTo" /></td>
109                                 </tr>
110                          <tr>
111                                         <td>&nbsp;</td>
112                                         <td colspan="2"><select name="cotedigits" id="cotedigits">
113                                                 <option value=""> </option>
114                                                 <option value ="1">1</option>
115                                                 <option value ="2">2</option>
116                                                 <option value ="3">3</option>
117                                                 <option value ="4">4</option>
118                                                 <option value ="5">5</option>
119                                                 </select>
120                                                 <label for="cotedigits">characters</label> 
121                                         </td>
122                                         <td>&nbsp;</td>
123                                 </tr>
124                                 [% ELSE %]
125                                 <tr><td colspan="4"><input type="hidden" name="Filter" /> <input type="hidden" name="Filter" /></td></tr>
126                         [% END %]
127                          <tr>
128                 <td>Item type</td>
129                                 <td><input type="radio" name="Line" value="[% item_itype %]" /></td>
130                                 <td><input type="radio" name="Column" value="[% item_itype %]" /></td>
131                                 <td><select name="Filter" id="[% item_itype %]">
132                                         <option value=""> </option>
133                                         [% FOREACH CGIItemTyp IN CGIItemType %]
134                                         [% IF ( CGIItemTyp.selected ) %]
135                                         <option value="[% CGIItemTyp.itemtype %]" selected="selected">[% CGIItemTyp.description %]</option>[% ELSE %]<option value="[% CGIItemTyp.itemtype %]">[% CGIItemTyp.description %]</option>[% END %]
136
137                                         [% END %]
138                                         </select>
139                                 </td>
140                         </tr>
141                          <tr>
142                                 <td>Publisher</td>
143                                 <td><input type="radio" name="Line" value="publishercode" /></td>
144                                 <td><input type="radio" name="Column" value="publishercode" /></td>
145                                 <td><input type="text" name="Filter" /></td>
146                         </tr>
147                         <tr>
148                 <td>Publication year</td>
149                                 <td><input type="radio" name="Line" value="publicationyear" /></td>
150                                 <td><input type="radio" name="Column" value="publicationyear" /></td>
151                                 <td><label for="pubyearFrom">From</label> <input type="text" name="Filter" id="pubyearFrom" /> <label for="pubyearTo">To</label> <input type="text" name="Filter" id="pubyearTo" /></td>
152                         </tr>
153                         <tr>
154                 <td>Home library</td>
155                                 <td><input type="radio" name="Line" value="items.homebranch" /></td>
156                                 <td><input type="radio" name="Column" value="items.homebranch" /></td>
157                                 <td><select name="Filter" id="branch">
158                                         <option value=""> </option>
159                                         [% FOREACH CGIBranc IN CGIBranch %]
160                                         [% IF ( CGIBranc.selected ) %]<option value="[% CGIBranc.value %]" selected="selected">[% CGIBranc.branchname %]</option>[% ELSE %]<option value="[% CGIBranc.value %]">[% CGIBranc.branchname %]</option>[% END %]
161                                         [% END %]
162                                         </select>
163                                 </td>
164                         </tr>
165                         <tr>
166                 <td>Shelving location</td>
167                                 <td><input type="radio" name="Line" value="items.location" /></td>
168                                 <td><input type="radio" name="Column" value="items.location" /></td>
169                                 <td><select name="Filter" id="location">
170                                         <option value=""> </option>
171                                         [% FOREACH locationloo IN locationloop %]
172                                         [% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
173                                         [% END %]
174                                         </select>
175                                 </td>
176                         </tr>
177                         <tr>
178                                 <td>Collection</td>
179                                 <td><input type="radio" name="Line"   value="items.ccode" /></td>
180                                 <td><input type="radio" name="Column" value="items.ccode" /></td>
181                                 <td><select name="Filter" id="ccode">
182                                         <option value=""> </option>
183                                         [% FOREACH authval IN authvals %]
184                                         [% IF ( authval.selected ) %]<option value="[% authval.code %]" selected="selected">[% authval.description %]</option>[% ELSE %]<option value="[% authval.code %]">[% authval.description %]</option>[% END %]
185                                         [% END %]
186                                         </select>
187                                 </td>
188                         </tr>
189             <tr>
190                 <td colspan="3">Filter barcode</td>
191                 <td>
192                     <select name="Filter" id="like">
193                         <option value="1">like</option>
194                         <option value="0">not like</option>
195                     </select>
196                     <input type="text" name="Filter" id="barcode" />
197                     (use * to do a fuzzy search)
198                 </td>
199             </tr>
200                 </tbody>
201         </table><br /></fieldset>
202         
203         <fieldset class="rows">
204         <legend>Output</legend>
205         <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
206                 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
207                         <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
208                         <label class="inline" for="MIME">Into an application: </label>
209                         <select name="MIME" id="MIME">
210                         [% FOREACH CGIextChoic IN CGIextChoice %]
211                         <option value="[% CGIextChoic.type %]">[% CGIextChoic.type %]</option>
212                         [% END %]
213                         </select>
214                         <!-- <label class="inline" for="sep">Delimiter: </label> -->
215                         [% CGIsepChoice %]
216                 </li>
217         </ol>
218         </fieldset>
219
220         <fieldset class="action">
221         <input type="submit" value="Submit" />
222         <input type="hidden" name="report_name" value="[% report_name %]" />
223         <input type="hidden" name="do_it" value="1" />
224         </fieldset>
225         </form>
226 [% END %]
227 </div>
228 </div>
229 <div class="yui-b">
230 [% INCLUDE 'reports-menu.inc' %]
231 </div>
232 </div>
233 [% INCLUDE 'intranet-bottom.inc' %]