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