Merge branch 'bug_9850' into 3.14-master
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / itemslost.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Reports &rsaquo; Lost items</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="rep_itemslost" 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 ( get_items ) %] &rsaquo; <a href="/cgi-bin/koha/reports/itemslost.pl">Lost Items</a> &rsaquo; Results[% ELSE %] &rsaquo; Lost items[% 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 <h1>Lost items</h1>
18
19 [% IF ( get_items ) %]
20
21 <div class="results">
22     [% IF ( total ) %]
23         [% total %] lost items found
24     [% ELSE %]
25         No lost items found
26     [% END %]
27 </div>
28
29     [% IF ( itemsloop ) %]<table>
30     <tr>
31         <th>Title</th>
32         <th>Author</th>
33         <th>Lost code</th>
34         <th>Barcode</th>
35         <th>Date last seen</th>
36         <th>Price</th>
37         <th>Rep.price</th>
38         <th>Library</th>
39         <th>Item type</th>
40         <th>Current location</th>
41         <th>Location</th>
42         <th>Notes</th>
43     </tr>
44      [% FOREACH itemsloo IN itemsloop %]
45         [% UNLESS ( loop.odd ) %]
46         <tr class="highlight">
47         [% ELSE %]
48         <tr>
49         [% END %]
50             <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber %]" title="[% itemsloo.itemnotes %]">
51                                                   [% itemsloo.title |html %]
52                                          </a></td>
53             <td>[% itemsloo.author %]</td>
54             <td>[% itemsloo.lib %]</td>
55             <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itemsloo.biblionumber %]" title="[% itemsloo.itemnotes %]">
56                     [% itemsloo.barcode %]
57                 </a></td>
58             <td>[% itemsloo.datelastseen %]</td>
59             <td>[% itemsloo.price %]</td>
60             <td>[% itemsloo.replacementprice %]</td>
61             <td>[% itemsloo.homebranch %]</td>
62             <td>[% IF ( itemsloo.itype_level ) %][% itemsloo.itype %][% ELSE %][% itemsloo.itemtype %][% END %]</td>
63             <td>[% itemsloo.holdingbranch %]</td>
64             <td>[% itemsloo.location %]</td>
65             <td>[% itemsloo.itemnotes %]</td>
66         </tr>
67     [% END %]
68     </table>
69         [% END %] 
70         [% ELSE %]
71         
72         <form name="f" action="/cgi-bin/koha/reports/itemslost.pl" method="post">
73 <fieldset class="rows"><ol>    <li><label for="orderbyfilter">Order by: </label>
74     <select id="orderbyfilter" name="orderbyfilter">
75         <option value=""> --- </option>
76         <option value="title">Title</option>
77         <option value="author">Author</option>
78         <option value="homebranch">Home library</option>
79         <option value="itype">Item types</option>
80         <option value="barcode">Barcode</option>
81         <option value="price">Price</option>
82         <option value="replacementprice">Replacement price</option>
83         <option value="lib">Lost code</option>
84         <option value="datelastseen">Date last seen</option>
85         <option value="location">Location</option>
86     </select></li>
87         
88         <li><label for="barcodefilter">Barcode: </label><input type="text" name="barcodefilter" id="barcodefilter" size="6" /></li>
89         <li><label for="branchfilter">Library: </label><select name="branchfilter" id="branchfilter">
90                 <option value="">All</option>
91             [% FOREACH branchloo IN branchloop %]
92                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
93                                 [% ELSE %]
94                                 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
95                                 [% END %]
96             [% END %]
97             </select></li>
98     <li><label for="itemtypesfilter">Item type: </label><select name="itemtypesfilter" id="itemtypesfilter">
99                 <option value="">All</option>
100                 [% FOREACH itemtypeloo IN itemtypeloop %]
101                 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
102                                 [% ELSE %]
103                                 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
104                                 [% END %]
105                 [% END %]
106             </select></li>
107
108     <li><label for="loststatusfilter">Lost status: </label><select name="loststatusfilter" id="loststatusfilter">
109                 <option value="">All</option>
110                 [% FOREACH loststatusloo IN loststatusloop %]
111                 [% IF ( loststatusloo.selected ) %]<option value="[% loststatusloo.authorised_value %]" selected="selected">[% loststatusloo.lib %]</option>
112                 [% ELSE %]
113                 <option value="[% loststatusloo.authorised_value %]">[% loststatusloo.lib %]</option>
114                 [% END %]
115                 [% END %]
116             </select></li>
117 </ol></fieldset>
118 <fieldset class="action">    <input type="submit" value="Submit" />
119     <input type="hidden" name="get_items" value="1" /></fieldset>
120 </form>
121         
122         [% END %]
123
124 </div>
125 </div>
126 <div class="yui-b">
127 [% INCLUDE 'reports-menu.inc' %]
128 </div>
129 </div>
130 [% INCLUDE 'intranet-bottom.inc' %]