73060fdb0c2c6b28ce4a4e0a632c1142b6e58f31
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / catalogue_out.tt
1 [% USE Branches %]
2 [% USE ItemTypes %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Items with no checkouts &rsaquo; Reports &rsaquo; Koha</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <style>
7     .sql {display: none;}
8 </style>
9 </head>
10
11 <body id="rep_catalogue_out" class="rep">
12 [% WRAPPER 'header.inc' %]
13     [% INCLUDE 'cat-search.inc' %]
14 [% END %]
15
16 [% WRAPPER 'sub-header.inc' %]
17 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18     <ol>
19         <li>
20             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21         </li>
22         <li>
23             <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
24         </li>
25         <li>
26             <a href="#" aria-current="page">
27                 Items with no checkouts
28             </a>
29         </li>
30     </ol>
31 </nav>
32 [% END %]
33
34 <div class="main container-fluid">
35     <div class="row">
36         <div class="col-sm-10 col-sm-push-2">
37             <main>
38                 [% IF ( do_it ) %]
39                     <h1>Items with no checkouts</h1>
40                     [% FOREACH mainloo IN mainloop %]
41                         [% IF ( mainloo.loopfilter ) %]
42                             <p>Filtered on:</p>
43                             [% FOREACH loopfilte IN mainloo.loopfilter %]
44                                 [% IF ( loopfilte.err ) %]
45                                     <p class="error">Error:
46                                 [% ELSE %]
47                                     <p>
48                                 [% END %]
49                                 [% IF ( loopfilte.sql ) %]
50                                     <span class="sql">
51                                         [% loopfilte.crit | html %] = [% loopfilte.filter | html %]
52                                     </span>
53                                 [% ELSE %]
54                                     <span>[% loopfilte.crit | html %] = [% loopfilte.filter | html %]</span>
55                                     [% IF ( loopfilte.crit == "by" ) %]
56                                         [% group_by = loopfilte.filter %]
57                                     [% END %]
58                                 [% END %]
59                                 </p>
60                             [% END %]
61                         [% END %]
62
63                         [% IF ( mainloo.looptables ) %]
64                             <div class="page-section">
65                                 <h3><a name="summary" id="summary"></a>Summary</h3>
66                                 <table id="summary_table">
67                                     <tr>
68                                         <th>Group</th>
69                                         <th>Call number range</th>
70                                         <th>Number of items displayed</th>
71                                         <th>Total items in group</th>
72                                     </tr>
73                                     [% FOREACH looptable IN mainloo.looptables %]
74                                         <tr>
75                                             <td>
76                                                 [% IF ( group_by=="itype" ) %]
77                                                     <a href="#table[% looptable.coltitle | uri %]">[% ItemTypes.GetDescription( looptable.coltitle ) | html %]</a>
78                                                 [% ELSIF ( group_by=="homebranch" ) %]
79                                                     <a href="#table[% looptable.coltitle | uri %]">[% Branches.GetName( looptable.coltitle ) | html %]</a>
80                                                 [% ELSE %]
81                                                     <a href="#table[% looptable.coltitle | uri %]">[% looptable.coltitle | html %]</a>
82                                                 [% END %]
83                                             </td>
84                                             <td>
85                                                 [% IF ( looptable.looptable_count ) %]
86                                                     [% looptable.looptable_first | html %] to [% looptable.looptable_last | html %]
87                                                 [% END %]
88                                             </td>
89                                             <td>[% looptable.looptable_count | html %]</td>
90                                             <td>[% looptable.coltitle_count | html %]</td>
91                                         </tr>
92                                     [% END %]
93                                     <tr>
94                                         <th>TOTAL</th>
95                                         <th></th>
96                                         <th>[% mainloo.total_looptable_count | html %]</th>
97                                         <th>[% mainloo.total_coltitle_count | html %]</th>
98                                     </tr>
99                                 </table>
100                             </div>
101                         [% END %]
102
103                         [% FOREACH looptable IN mainloo.looptables %]
104                             <div class="page-section">
105                                 <h3>
106                                     [% IF ( group_by=="itype" ) %]
107                                         <a id="table[% looptable.coltitle | html %]" >[% ItemTypes.GetDescription( looptable.coltitle ) | html %]</a>
108                                     [% ELSIF ( group_by=="homebranch" ) %]
109                                         <a id="table[% looptable.coltitle | html %]" >[% Branches.GetName( looptable.coltitle ) | html %]</a>
110                                     [% ELSE %]
111                                         Ungrouped
112                                     [% END %]
113                                 </h3>
114                                 <table>
115                                     <tr>
116                                         <th>#</th>
117                                         <th>Call number</th>
118                                         <th>Barcode</th>
119                                         <th>Item details</th>
120                                     </tr>
121                                     [% IF ( looptable.looprow ) %]
122                                         [% FOREACH loopro IN looptable.looprow %]
123                                             <tr>
124                                                 <td>[% loop.count | html %]</td>
125                                                 <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber | html %][% ELSE %]No call number[% END %]</td>
126                                                 <td>[% IF ( loopro.barcode ) %][% loopro.barcode | html %][% ELSE %]No barcode[% END %]</td>
127                                                 <td>
128                                                     <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]">[% IF ( loopro.title ) %][% loopro.title | html %][% ELSE %]NO TITLE[% END %]</a> [% IF ( loopro.author ) %] by [% loopro.author | html %][% END %]</p>
129                                                     [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) | html %][% END %]
130                                                 </td>
131                                             </tr>
132                                         [% END %]
133                                         [% ELSE %]
134                                             <tr>
135                                                 <td colspan="4">No items for [% looptable.coltitle | html %]</td>
136                                             </tr>
137                                         [% END %]
138                                 </table>
139                             </div>
140                         [% END %]
141                     [% END %]
142                 [% ELSE %]
143
144                     <h1>Items with no checkouts</h1>
145
146                     <form method="post" action="/cgi-bin/koha/reports/catalogue_out.pl">
147                         <fieldset class="rows">
148                             <ol>
149                                 <li>
150                                     <label for="branch">Library: </label>
151                                     <select name="Filter" id="branch">
152                                         <option value="">Any library</option>
153                                         [% PROCESS options_for_libraries libraries => Branches.all() %]
154                                     </select>
155                                 </li>
156                                 <li>
157                                     <label for="documenttype">Item type: </label>
158                                     <select name="Filter" id="documenttype">
159                                         <option value="">Any item type</option>
160                                         [% FOREACH itemtype IN itemtypes %]
161                                             <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
162                                         [% END %]
163                                     </select>
164                                 </li>
165                             </ol>
166                     </fieldset>
167
168                     <fieldset class="rows">
169                         <legend>Limits</legend>
170                         <ol>
171                             <li>
172                                 <label for="numberlimit">Limit to: </label>
173                                 <select name="Limit" id="numberlimit">
174                                     <option value ="10">10</option>
175                                     <option value ="20">20</option>
176                                     <option value ="50">50</option>
177                                     <option value ="100">100</option>
178                                     <option value ="200">200</option>
179                                     <option value ="300">300</option>
180                                     <option value ="400">400</option>
181                                     <option value ="500">500</option>
182                                     <option value ="1000">1000</option>
183                                 </select>
184                             </li>
185                             <li>
186                                 <label for="criteria">By: </label>
187                                 <select name="Criteria" id="criteria">
188                                     <option value ="" selected="selected">None</option>
189                                     <option value ="homebranch">Library</option>
190                                     <option value ="itype">Item type</option>
191                                 </select>
192                             </li>
193                         </ol>
194                     </fieldset>
195
196                     <fieldset class="action">
197                         <input type="submit" class="btn btn-primary" value="Submit" />
198                         <input type="hidden" name="report_name" value="[% report_name | html %]" />
199                         <input type="hidden" name="do_it" value="1" />
200                         <input type="hidden" name="output" value="screen" />
201                     </fieldset>
202                 </form>
203             [% END %]
204
205             </main>
206         </div> <!-- /.col-sm-10.col-sm-push-2 -->
207         <div class="col-sm-2 col-sm-pull-10">
208             <aside>
209                 [% INCLUDE 'reports-menu.inc' %]
210             </aside>
211     </div> <!-- /.col-sm-2.col-sm-pull-10 -->
212 </div> <!-- /.row -->
213
214 [% INCLUDE 'intranet-bottom.inc' %]