1 [% USE AuthorisedValues %]
3 [% USE ColumnsSettings %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Reports › Lost items</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
12 <body id="rep_itemslost" class="rep">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( get_items ) %] › <a href="/cgi-bin/koha/reports/itemslost.pl">Lost items</a> › Results[% ELSE %] › Lost items[% END %]</div>
18 <div id="doc3" class="yui-t2">
26 [% IF ( get_items ) %]
30 [% items.count %] lost items found
37 <table id="lostitems-table">
45 <th>Date last seen</th>
50 <th>Current location</th>
52 <th>Not for loan status</th>
57 [% FOREACH item IN items %]
60 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.biblio.title |html %]</a>
62 <td>[% item.biblio.author %]</td>
63 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
65 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.barcode %]</a>
67 <td>[% item.itemcallnumber %]</td>
68 <td>[% item.datelastseen | $KohaDates %]</td>
69 <td>[% item.price %]</td>
70 <td>[% item.replacementprice %]</td>
71 <td>[% Branches.GetName(item.homebranch) %]</td>
72 <td>[% item.effective_itemtype %]</td>
73 <td>[% Branches.GetName(item.holdingbranch) %]</td>
74 <td>[% item.location %]</td>
75 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
76 <td>[% item.itemnotes %]</td>
84 <form name="f" action="/cgi-bin/koha/reports/itemslost.pl" method="post">
85 <fieldset class="rows">
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 [% PROCESS options_for_libraries libraries => Branches.all() %]
93 <li><label for="itemtypesfilter">Item type: </label><select name="itemtypesfilter" id="itemtypesfilter">
94 <option value="">All</option>
95 [% FOREACH itemtype IN itemtypes %]
96 <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
101 <label for="loststatusfilter">Lost status: </label>
102 <select name="loststatusfilter" id="loststatusfilter">
103 <option value="">All</option>
104 [% FOREACH l IN AuthorisedValues.GetDescriptionsByKohaField( kohafield => 'items.itemlost') %]
105 [% IF l.authorised_value == lostfilter %]
106 <option value="[% l.authorised_value %]" selected="selected">[% l.lib %]</option>
108 <option value="[% l.authorised_value %]">[% l.lib %]</option>
115 <label for="notforloanfilter">Not for loan: </label>
116 <select name="notforloanfilter" id="notforloanfilter">
117 <option value="">All</option>
118 [% FOREACH n IN AuthorisedValues.GetDescriptionsByKohaField( kohafield => 'items.notforloan') %]
119 [% IF n.authorised_value == notforloanfilter %]
120 <option value="[% n.authorised_value %]" selected="selected">[% n.lib %]</option>
122 <option value="[% n.authorised_value %]">[% n.lib %]</option>
129 <fieldset class="action"> <input type="submit" value="Submit" />
130 <input type="hidden" name="get_items" value="1" /></fieldset>
138 [% INCLUDE 'reports-menu.inc' %]
142 [% MACRO jsinclude BLOCK %]
143 [% INCLUDE 'datatables.inc' %]
144 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
145 [% INCLUDE 'columns_settings.inc' %]
146 <script type="text/javascript" src="[% interface %]/[% theme %]/js/table_filters.js"></script>
147 <script type='text/javascript'>
148 $(document).ready(function() {
149 var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'lostitems', 'lostitems-table', 'json' ) %];
150 var lostitems_table = KohaTable("lostitems-table", {
151 "dom": 'B<"clearfix">t',
154 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
155 { "sType": "title-string", "aTargets" : [ "title-string" ] }
159 }, columns_settings, 'with_filters');
164 [% INCLUDE 'intranet-bottom.inc' %]