2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Inventory</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7 [% INCLUDE 'calendar.inc' %]
8 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
9 <script type="text/javascript">
11 $(document).ready(function(){
13 inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, {
14 'sPaginationType': 'full_numbers',
15 [% IF compareinv2barcd %]
16 "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 1 ] } ]
18 "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ]
23 $("#continuewithoutmarkingbutton").click(function(){
24 inventorydt.fnPageChange( 'next' );
28 $("#markseenandcontinuebutton").click(function(){
30 $("input:checked").each(function() {
31 param += "|" + $(this).attr('name');
33 $.post('/cgi-bin/koha/tools/ajax-inventory.pl', { seen: param });
34 inventorydt.fnPageChange( 'next' );
38 $("#markseenandquit").click(function(){
40 $("input:checked").each(function() {
41 param += "|" + $(this).attr('name');
45 url: '/cgi-bin/koha/tools/ajax-inventory.pl',
49 document.location.href = '/cgi-bin/koha/tools/inventory.pl';
54 $(".checkall").click(function(){
55 $(".checkboxed").checkCheckboxes();
58 $(".clearall").click(function(){
59 $(".checkboxed").unCheckCheckboxes();
66 <body id="tools_inventory" class="tools">
67 [% INCLUDE 'header.inc' %]
68 [% INCLUDE 'cat-search.inc' %]
70 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% IF (loop) %]<a href="/cgi-bin/koha/tools/inventory.pl">Inventory</a> › Results[% ELSE %]Inventory[% END %]</div>
72 <div id="doc3" class="yui-t2">
77 <h1>Inventory/Stocktaking</h1>
78 [% IF (moddatecount) %]<div class="dialog message">[% moddatecount %] items modified : datelastseen set to [% date | $KohaDates %]</div>[% END %]
79 [% IF (errorfile) %]<div class="dialog alert">[% errorfile %] can't be opened</div>[% END %]
80 [% FOREACH error IN errorloop %]
81 <div class="dialog alert">
83 [% IF (error.ERR_BARCODE) %]: barcode not found[% END %]
84 [% IF (error.ERR_WTHDRAWN) %]: item withdrawn[% END %]
85 [% IF (error.ERR_ONLOAN_RET) %]: item was on loan. It was returned before marked as seen[% END %]
86 [% IF (error.ERR_ONLOAN_NOT_RET) %]: item was on loan. couldn't be returned.[% END %]
91 <form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data">
92 <fieldset class="rows">
93 <legend>Use a barcode file</legend>
95 <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
96 <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepickerfrom" />
100 <fieldset class="rows">
101 <legend>Select items you want to check</legend>
103 <label for="branch">Library: </label>
104 <input type="radio" name="branch" value="homebranch"> Home library</input>
105 <input type="radio" name="branch" value="holdingbranch"> Current library</input>
107 <label for="branchloop">Library: </label><select id="branchloop" name="branchcode" style="width:12em;">
108 <option value="">All libraries</option>
109 [% FOREACH branchloo IN branchloop %]
110 [% IF ( branchloo.selected ) %]
111 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
113 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
118 [% IF (authorised_values) %]
120 <label for="locationloop">Shelving location (items.location) is: </label>
121 <select id="locationloop" name="location">
122 <option value="">Filter location</option>
123 [% FOREACH value IN authorised_values %]
124 [% IF (value.selected) %]
125 <option value="[% value.authorised_value %]" selected="selected">[% value.lib %]</option>
127 <option value="[% value.authorised_value %]">[% value.lib %]</option>
133 <label for="minlocation">Item callnumber between: </label>
134 <input type="text" name="minlocation" id="minlocation" value="[% minlocation %]" /> (items.itemcallnumber) </li>
135 <li><label for="maxlocation">...and: </label>
136 <input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" />
141 <fieldset class="rows">
142 <legend>Item statuses</legend>
143 <div name="statuses" style="display: block;">
144 [% FOREACH status IN statuses %]
145 [% IF (status.values) %]
146 <fieldset style="float: left; padding: 5px; margin: 5px;text-align:right">
147 <legend>[% status.fieldname %]</legend>
148 <ul id="statuses-[% fieldname %]" style="display: inline;">
149 [% FOREACH value IN status.values %]
150 [% IF (value.lib) %]<li>
151 <label for="[% value.id %]">
154 <input type="checkbox" name="status-[% status.fieldname %]-[% value.authorised_value %]" id="[% value.authorised_value %]" />
163 <fieldset class="rows">
167 <li><label for="datelastseen">Inventory date:</label>
168 <input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepickerfrom" />
170 <li><label for="ignoreissued">Skip copies on loan: </label>
171 [% IF (ignoreissued) %]
172 <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li>
174 <input type="checkbox" id="ignoreissued" name="ignoreissued" /></li>
177 <label for="CSVexport">Export to CSV file: </label>
178 <input type="checkbox" name="CSVexport" id="CSVexport" />
181 <label for="compareinv2barcd">Compare barcodes list to results: </label>
182 <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
186 <input type="hidden" name="op" value="do_it" />
187 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
193 <form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed">
194 <input type="hidden" name="markseen" value="1" />
195 <input type="hidden" name="minlocation" value="[% minlocation %]" />
196 <input type="hidden" name="maxlocation" value="[% maxlocation %]" />
197 <input type="hidden" name="location" value="[% location %]" />
198 <input type="hidden" name="branchcode" value="[% branchcode %]" />
199 <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
201 [% UNLESS compareinv2barcd %]
202 <div><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
205 <table id="inventoryt">
208 [% UNLESS compareinv2barcd %]<th>Seen</th>[% END %]
215 <th>Unseen since</th>
220 [% FOREACH result IN loop %]
222 [% UNLESS compareinv2barcd %]
224 <input type="checkbox" name="SEEN-[% result.itemnumber %]" value="1" />
228 [% result.barcode | html %]
231 [% result.homebranch | html %] [% result.location | html %] [[% result.itemcallnumber | html %]]
234 <p><a href="#" onclick="window.open('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% result.biblionumber %]','marcview','width=800,height=600,toolbar=0,scrollbars=1');">[% result.title | html %]</a></p><p>[% result.author | html %]</p>
237 [% result.notforloan | html %]
240 [% result.itemlost | html %]
243 [% result.damaged | html %]
246 [% result.datelastseen | html | $KohaDates%]
249 [% IF result.problem == 'wrongplace' %]
250 <p>Item should not have been scanned</p>
251 [% ELSIF result.problem == 'missingitem' %]
253 [% ELSIF result.problem == 'changestatus' %]
254 <p>Change item status</p>
255 [% ELSIF result.problem == 'not_scanned' %]
256 <p>Item should have been scanned</p>
263 <div class="spacer"></div>
264 [% UNLESS compareinv2barcd %]
265 <div style="padding : .3em 0"><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
266 <input type="submit" id="markseenandquit" value="Mark seen and quit" />
267 <input type="submit" value="Mark Seen and Continue >>" id="markseenandcontinuebutton" />
268 <input type="submit" value="Continue without Marking >>" id="continuewithoutmarkingbutton" class="submit" />
277 [% INCLUDE 'tools-menu.inc' %]
280 [% INCLUDE 'intranet-bottom.inc' %]