Bug 15285: Update for 3 specific tables
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / itemslost.tt
1 [% USE Branches %]
2 [% USE ColumnsSettings %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Reports &rsaquo; Lost items</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
8 [% INCLUDE 'columns_settings.inc' %]
9 <script type='text/javascript'>
10 //<![CDATA[
11     $(document).ready(function() {
12         var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'lostitems', 'lostitems-table', 'json' ) %];
13         var lostitems_table = KohaTable("#lostitems-table", {
14             "dom": 'B<"clearfix">t',
15             "aaSorting": [],
16             "aoColumnDefs": [
17                 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
18                 { "sType": "title-string", "aTargets" : [ "title-string" ] }
19             ],
20             "bPaginate": false,
21         }, columns_settings);
22
23     });
24 //]]>
25 </script>
26
27 </head>
28 <body id="rep_itemslost" class="rep">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'cat-search.inc' %]
31
32 <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 ( get_items ) %] &rsaquo; <a href="/cgi-bin/koha/reports/itemslost.pl">Lost Items</a> &rsaquo; Results[% ELSE %] &rsaquo; Lost items[% END %]</div>
33
34 <div id="doc3" class="yui-t2">
35    
36    <div id="bd">
37         <div id="yui-main">
38         <div class="yui-b">
39
40 <h1>Lost items</h1>
41
42 [% IF ( get_items ) %]
43
44 <div class="results">
45     [% IF ( total ) %]
46         [% total %] lost items found
47     [% ELSE %]
48         No lost items found
49     [% END %]
50 </div>
51
52     [% IF itemsloop %]
53         <table id="lostitems-table">
54             <thead>
55                 <tr>
56                     <th>Title</th>
57                     <th>Author</th>
58                     <th>Lost code</th>
59                     <th>Barcode</th>
60                     <th>Call number</th>
61                     <th>Date last seen</th>
62                     <th>Price</th>
63                     <th>Rep.price</th>
64                     <th>Library</th>
65                     <th>Item type</th>
66                     <th>Current location</th>
67                     <th>Location</th>
68                     <th>Notes</th>
69                 </tr>
70             </thead>
71             <tbody>
72                 [% FOREACH itemsloo IN itemsloop %]
73                     <tr>
74                         <td>
75                             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber %]" title="[% itemsloo.itemnotes %]">[% itemsloo.title |html %]</a>
76                         </td>
77                         <td>[% itemsloo.author %]</td>
78                         <td>[% itemsloo.lib %]</td>
79                         <td>
80                             <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itemsloo.biblionumber %]" title="[% itemsloo.itemnotes %]">[% itemsloo.barcode %]</a>
81                         </td>
82                         <td>[% itemsloo.itemcallnumber %]</td>
83                         <td>[% itemsloo.datelastseen %]</td>
84                         <td>[% itemsloo.price %]</td>
85                         <td>[% itemsloo.replacementprice %]</td>
86                         <td>[% Branches.GetName(itemsloo.homebranch) %]</td>
87                         <td>[% IF ( itemsloo.itype_level ) %][% itemsloo.itype %][% ELSE %][% itemsloo.itemtype %][% END %]</td>
88                         <td>[% Branches.GetName(itemsloo.holdingbranch) %]</td>
89                         <td>[% itemsloo.location %]</td>
90                         <td>[% itemsloo.itemnotes %]</td>
91                     </tr>
92                 [% END %]
93             </tbody>
94         </table>
95     [% END %]
96         [% ELSE %]
97         
98         <form name="f" action="/cgi-bin/koha/reports/itemslost.pl" method="post">
99     <fieldset class="rows">
100         <ol>
101
102         <li><label for="barcodefilter">Barcode: </label><input type="text" name="barcodefilter" id="barcodefilter" size="6" /></li>
103         <li><label for="branchfilter">Library: </label><select name="branchfilter" id="branchfilter">
104                 <option value="">All</option>
105             [% FOREACH branchloo IN branchloop %]
106                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
107                                 [% ELSE %]
108                                 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
109                                 [% END %]
110             [% END %]
111             </select></li>
112     <li><label for="itemtypesfilter">Item type: </label><select name="itemtypesfilter" id="itemtypesfilter">
113                 <option value="">All</option>
114                 [% FOREACH itemtypeloo IN itemtypeloop %]
115                 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
116                                 [% ELSE %]
117                                 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
118                                 [% END %]
119                 [% END %]
120             </select></li>
121
122     <li><label for="loststatusfilter">Lost status: </label><select name="loststatusfilter" id="loststatusfilter">
123                 <option value="">All</option>
124                 [% FOREACH loststatusloo IN loststatusloop %]
125                 [% IF ( loststatusloo.selected ) %]<option value="[% loststatusloo.authorised_value %]" selected="selected">[% loststatusloo.lib %]</option>
126                 [% ELSE %]
127                 <option value="[% loststatusloo.authorised_value %]">[% loststatusloo.lib %]</option>
128                 [% END %]
129                 [% END %]
130             </select></li>
131 </ol></fieldset>
132 <fieldset class="action">    <input type="submit" value="Submit" />
133     <input type="hidden" name="get_items" value="1" /></fieldset>
134 </form>
135         
136         [% END %]
137
138 </div>
139 </div>
140 <div class="yui-b">
141 [% INCLUDE 'reports-menu.inc' %]
142 </div>
143 </div>
144 [% INCLUDE 'intranet-bottom.inc' %]