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 <div class="lostitems-table_table_controls">
38 | <a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> |
39 <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a>
40 <span class="itemselection_actions">
42 <a class="itemselection_action_export"><i class="fa fa-trash"></i> Export selected items</a>
46 <table id="lostitems-table">
49 <th class="NoSort"></th>
53 <th class="title-string">Lost on</th>
56 <th class="title-string">Date last seen</th>
61 <th>Current location</th>
63 <th>Not for loan status</th>
68 [% FOREACH item IN items %]
70 <td style="text-align:center;vertical-align:middle">
71 <input type="checkbox" value="[% item.itemnumber %]" name="itemnumber" />
74 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.biblio.title |html %]</a>
76 <td>[% item.biblio.author %]</td>
77 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
78 <td><span title="[% item.itemlost_on %]"</span>[% item.itemlost_on | $KohaDates %]</span></td>
80 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.barcode %]</a>
82 <td>[% item.itemcallnumber %]</td>
83 <td><span title="[% item.datelastseen %]">[% item.datelastseen | $KohaDates %]</span></td>
84 <td>[% item.price %]</td>
85 <td>[% item.replacementprice %]</td>
86 <td>[% Branches.GetName(item.homebranch) %]</td>
87 <td>[% item.effective_itemtype %]</td>
88 <td>[% Branches.GetName(item.holdingbranch) %]</td>
89 <td>[% item.location %]</td>
90 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
91 <td>[% item.itemnotes %]</td>
99 <form name="f" action="/cgi-bin/koha/reports/itemslost.pl" method="post">
100 <fieldset class="rows">
103 <li><label for="barcodefilter">Barcode: </label><input type="text" name="barcodefilter" id="barcodefilter" size="6" /></li>
104 <li><label for="branchfilter">Library: </label><select name="branchfilter" id="branchfilter">
105 <option value="">All</option>
106 [% PROCESS options_for_libraries libraries => Branches.all() %]
108 <li><label for="itemtypesfilter">Item type: </label><select name="itemtypesfilter" id="itemtypesfilter">
109 <option value="">All</option>
110 [% FOREACH itemtype IN itemtypes %]
111 <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
116 <label for="loststatusfilter">Lost status: </label>
117 <select name="loststatusfilter" id="loststatusfilter">
118 <option value="">All</option>
119 [% FOREACH l IN AuthorisedValues.GetDescriptionsByKohaField( kohafield => 'items.itemlost') %]
120 [% IF l.authorised_value == lostfilter %]
121 <option value="[% l.authorised_value %]" selected="selected">[% l.lib %]</option>
123 <option value="[% l.authorised_value %]">[% l.lib %]</option>
130 <label for="notforloanfilter">Not for loan: </label>
131 <select name="notforloanfilter" id="notforloanfilter">
132 <option value="">All</option>
133 [% FOREACH n IN AuthorisedValues.GetDescriptionsByKohaField( kohafield => 'items.notforloan') %]
134 [% IF n.authorised_value == notforloanfilter %]
135 <option value="[% n.authorised_value %]" selected="selected">[% n.lib %]</option>
137 <option value="[% n.authorised_value %]">[% n.lib %]</option>
144 <fieldset class="action"> <input type="submit" value="Submit" />
145 <input type="hidden" name="get_items" value="1" /></fieldset>
153 [% INCLUDE 'reports-menu.inc' %]
157 [% MACRO jsinclude BLOCK %]
158 [% INCLUDE 'datatables.inc' %]
159 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
160 [% INCLUDE 'columns_settings.inc' %]
161 <script type="text/javascript" src="[% interface %]/[% theme %]/js/table_filters.js"></script>
162 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
163 <script type='text/javascript'>
164 $(document).ready(function() {
165 var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'lostitems', 'lostitems-table', 'json' ) %];
166 var lostitems_table = KohaTable("lostitems-table", {
167 "dom": 'B<"clearfix">t',
170 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
171 { "sType": "title-string", "aTargets" : [ "title-string" ] }
175 }, columns_settings, 'with_filters');
177 function itemSelectionBuildExportLink() {
178 var itemnumbers = new Array();
179 $("input[name='itemnumber'][type='checkbox']:checked").each(function() {
180 itemnumbers.push($(this).val());
182 if (itemnumbers.length > 0) {
183 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
184 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
185 $('a.itemselection_action_export').attr('href', url);
192 function itemSelectionBuildActionLinks() {
193 var export_link_ok = itemSelectionBuildExportLink();
194 if (export_link_ok) {
195 $('.itemselection_actions').show();
197 $('.itemselection_actions').hide();
201 itemSelectionBuildActionLinks();
203 $("input[name='itemnumber'][type='checkbox']").change(function() {
204 itemSelectionBuildActionLinks();
207 $(".SelectAll").on("click",function(e){
209 $("#lostitems-table").checkCheckboxes();
210 itemSelectionBuildActionLinks();
213 $(".ClearAll").on("click",function(e){
215 $("#lostitems-table").unCheckCheckboxes();
216 itemSelectionBuildActionLinks();
222 [% INCLUDE 'intranet-bottom.inc' %]