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