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="[% interface %]/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" />
101 <!-- submit button for uploaded file -->
102 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
104 <fieldset class="rows">
105 <legend>Select items you want to check</legend>
107 <label for="branch">Library: </label>
108 <input type="radio" name="branch" value="homebranch"> Home library</input>
109 <input type="radio" name="branch" value="holdingbranch"> Current library</input>
111 <label for="branchloop">Library: </label><select id="branchloop" name="branchcode" style="width:12em;">
112 <option value="">All libraries</option>
113 [% FOREACH branchloo IN branchloop %]
114 [% IF ( branchloo.selected ) %]
115 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
117 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
122 [% IF (authorised_values) %]
124 <label for="locationloop">Shelving location (items.location) is: </label>
125 <select id="locationloop" name="location">
126 <option value="">Filter location</option>
127 [% FOREACH value IN authorised_values %]
128 [% IF (value.selected) %]
129 <option value="[% value.authorised_value %]" selected="selected">[% value.lib %]</option>
131 <option value="[% value.authorised_value %]">[% value.lib %]</option>
137 <label for="minlocation">Item callnumber between: </label>
138 <input type="text" name="minlocation" id="minlocation" value="[% minlocation %]" /> (items.itemcallnumber) </li>
139 <li><label for="maxlocation">...and: </label>
140 <input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" />
145 <fieldset class="rows">
146 <legend>Item statuses</legend>
147 <div name="statuses" style="display: block;">
148 [% FOREACH status IN statuses %]
149 [% IF (status.values) %]
150 <fieldset style="float: left; padding: 5px; margin: 5px;text-align:right">
151 <legend>[% status.fieldname %]</legend>
152 <ul id="statuses-[% fieldname %]" style="display: inline;">
153 [% FOREACH value IN status.values %]
154 [% IF (value.lib) %]<li>
155 <label for="[% value.id %]">
158 <input type="checkbox" name="status-[% status.fieldname %]-[% value.authorised_value %]" id="[% value.authorised_value %]" />
167 <fieldset class="rows">
171 <li><label for="datelastseen">Inventory date:</label>
172 <input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepickerfrom" />
174 <li><label for="ignoreissued">Skip items on loan: </label>
175 [% IF (ignoreissued) %]
176 <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li>
178 <input type="checkbox" id="ignoreissued" name="ignoreissued" /></li>
181 <label for="CSVexport">Export to CSV file: </label>
182 <input type="checkbox" name="CSVexport" id="CSVexport" />
185 <label for="compareinv2barcd">Compare barcodes list to results: </label>
186 <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
190 <input type="hidden" name="op" value="do_it" />
192 <!-- repeat submit button for generating shelf list -->
193 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
199 <form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed">
200 <input type="hidden" name="markseen" value="1" />
201 <input type="hidden" name="minlocation" value="[% minlocation %]" />
202 <input type="hidden" name="maxlocation" value="[% maxlocation %]" />
203 <input type="hidden" name="location" value="[% location %]" />
204 <input type="hidden" name="branchcode" value="[% branchcode %]" />
205 <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
207 [% UNLESS compareinv2barcd %]
208 <div><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
211 <table id="inventoryt">
214 [% UNLESS compareinv2barcd %]<th>Seen</th>[% END %]
221 <th>Unseen since</th>
226 [% FOREACH result IN loop %]
228 [% UNLESS compareinv2barcd %]
230 <input type="checkbox" name="SEEN-[% result.itemnumber %]" value="1" />
234 [% result.barcode | html %]
237 [% result.homebranch | html %] [% result.location | html %] [[% result.itemcallnumber | html %]]
240 <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>
243 [% result.notforloan | html %]
246 [% result.itemlost | html %]
249 [% result.damaged | html %]
252 [% result.datelastseen | $KohaDates | html %]
255 [% IF result.problem == 'wrongplace' %]
256 <p>Item should not have been scanned</p>
257 [% ELSIF result.problem == 'missingitem' %]
259 [% ELSIF result.problem == 'changestatus' %]
260 <p>Change item status</p>
261 [% ELSIF result.problem == 'not_scanned' %]
262 <p>Item should have been scanned</p>
269 <div class="spacer"></div>
270 [% UNLESS compareinv2barcd %]
271 <div style="padding : .3em 0"><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
272 <input type="submit" id="markseenandquit" value="Mark seen and quit" />
273 <input type="submit" value="Mark Seen and Continue >>" id="markseenandcontinuebutton" />
274 <input type="submit" value="Continue without Marking >>" id="continuewithoutmarkingbutton" class="submit" />
283 [% INCLUDE 'tools-menu.inc' %]
286 [% INCLUDE 'intranet-bottom.inc' %]