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 function checkForm() {
12 if ( $('#uploadbarcodes').val() ) {
14 $('#branchloop').val() ||
15 $('#locationloop').val() ||
16 $('#minlocation').val() ||
17 $('#maxlocation').val() ||
18 $('#statuses input:checked').length
21 _("You have not selected any catalog filters and are about to compare a file of barcodes to your entire catalog.") + "\n\n" +
22 _("For large catalogs this can result in unexpected behavior") + "\n\n" +
23 _("Are you sure you want to do this?")
31 $(document).ready(function(){
32 inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, {
33 'sPaginationType': 'full_numbers',
34 [% IF compareinv2barcd %]
35 "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 1 ] } ]
37 "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ]
42 $("#continuewithoutmarkingbutton").click(function(){
43 inventorydt.fnPageChange( 'next' );
47 $("#markseenandcontinuebutton").click(function(){
49 $("input:checked").each(function() {
50 param += "|" + $(this).attr('name');
52 $.post('/cgi-bin/koha/tools/ajax-inventory.pl', { seen: param });
53 inventorydt.fnPageChange( 'next' );
57 $("#markseenandquit").click(function(){
59 $("input:checked").each(function() {
60 param += "|" + $(this).attr('name');
64 url: '/cgi-bin/koha/tools/ajax-inventory.pl',
68 document.location.href = '/cgi-bin/koha/tools/inventory.pl';
73 $(".checkall").click(function(){
74 $(".checkboxed").checkCheckboxes();
77 $(".clearall").click(function(){
78 $(".checkboxed").unCheckCheckboxes();
85 <body id="tools_inventory" class="tools">
86 [% INCLUDE 'header.inc' %]
87 [% INCLUDE 'cat-search.inc' %]
89 <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>
91 <div id="doc3" class="yui-t2">
96 <h1>Inventory/Stocktaking</h1>
97 [% IF (moddatecount) %]<div class="dialog message">[% moddatecount %] items modified : datelastseen set to [% date | $KohaDates %]</div>[% END %]
98 [% IF (errorfile) %]<div class="dialog alert">[% errorfile %] can't be opened</div>[% END %]
99 [% FOREACH error IN errorloop %]
100 <div class="dialog alert">
102 [% IF (error.ERR_BARCODE) %]: barcode not found[% END %]
103 [% IF (error.ERR_WTHDRAWN) %]: item withdrawn[% END %]
104 [% IF (error.ERR_ONLOAN_RET) %]: item was on loan. It was returned before marked as seen[% END %]
105 [% IF (error.ERR_ONLOAN_NOT_RET) %]: item was on loan. couldn't be returned.[% END %]
110 <form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data" onsubmit="return checkForm()">
111 <fieldset class="rows">
112 <legend>Use a barcode file</legend>
114 <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
115 <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepickerfrom" />
120 <fieldset class="rows">
121 <legend>Select items you want to check</legend>
123 <label for="branch">Library: </label>
124 <input type="radio" name="branch" value="homebranch"> Home library</input>
125 <input type="radio" name="branch" value="holdingbranch"> Current library</input>
127 <label for="branchloop">Library: </label><select id="branchloop" name="branchcode" style="width:12em;">
128 <option value="">All libraries</option>
129 [% FOREACH branchloo IN branchloop %]
130 [% IF ( branchloo.selected ) %]
131 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
133 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
138 [% IF (authorised_values) %]
140 <label for="locationloop">Shelving location (items.location) is: </label>
141 <select id="locationloop" name="location">
142 <option value="">Filter location</option>
143 [% FOREACH value IN authorised_values %]
144 [% IF (value.selected) %]
145 <option value="[% value.authorised_value %]" selected="selected">[% value.lib %]</option>
147 <option value="[% value.authorised_value %]">[% value.lib %]</option>
153 <label for="minlocation">Item callnumber between: </label>
154 <input type="text" name="minlocation" id="minlocation" value="[% minlocation %]" /> (items.itemcallnumber) </li>
155 <li><label for="maxlocation">...and: </label>
156 <input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" />
161 <fieldset class="rows">
162 <legend>Item statuses</legend>
163 <div id="statuses" style="display: block;">
164 [% FOREACH status IN statuses %]
165 [% IF (status.values) %]
166 <fieldset style="float: left; padding: 5px; margin: 5px;text-align:right">
167 <legend>[% status.fieldname %]</legend>
168 <ul id="statuses-[% fieldname %]" style="display: inline;">
169 [% FOREACH value IN status.values %]
170 [% IF (value.lib) %]<li>
171 <label for="[% value.id %]">
174 <input type="checkbox" name="status-[% status.fieldname %]-[% value.authorised_value %]" id="[% value.authorised_value %]" />
183 <fieldset class="rows">
187 <li><label for="datelastseen">Inventory date:</label>
188 <input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepickerfrom" />
190 <li><label for="ignoreissued">Skip items on loan: </label>
191 [% IF (ignoreissued) %]
192 <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li>
194 <input type="checkbox" id="ignoreissued" name="ignoreissued" /></li>
197 <label for="CSVexport">Export to CSV file: </label>
198 <input type="checkbox" name="CSVexport" id="CSVexport" />
201 <label for="compareinv2barcd">Compare barcodes list to results: </label>
202 <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
206 <input type="hidden" name="op" value="do_it" />
208 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
214 <form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed">
215 <input type="hidden" name="markseen" value="1" />
216 <input type="hidden" name="minlocation" value="[% minlocation %]" />
217 <input type="hidden" name="maxlocation" value="[% maxlocation %]" />
218 <input type="hidden" name="location" value="[% location %]" />
219 <input type="hidden" name="branchcode" value="[% branchcode %]" />
220 <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
222 [% UNLESS compareinv2barcd %]
223 <div><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
226 <table id="inventoryt">
229 [% UNLESS compareinv2barcd %]<th>Seen</th>[% END %]
236 <th>Unseen since</th>
241 [% FOREACH result IN loop %]
243 [% UNLESS compareinv2barcd %]
245 <input type="checkbox" name="SEEN-[% result.itemnumber %]" value="1" />
249 [% result.barcode | html %]
252 [% result.homebranch | html %] [% result.location | html %] [[% result.itemcallnumber | html %]]
255 <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>
258 [% result.notforloan | html %]
261 [% result.itemlost | html %]
264 [% result.damaged | html %]
267 [% result.datelastseen | $KohaDates | html %]
270 [% IF result.problem == 'wrongplace' %]
271 <p>Item should not have been scanned</p>
272 [% ELSIF result.problem == 'missingitem' %]
274 [% ELSIF result.problem == 'changestatus' %]
275 <p>Change item status</p>
276 [% ELSIF result.problem == 'not_scanned' %]
277 <p>Item should have been scanned</p>
284 <div class="spacer"></div>
285 [% UNLESS compareinv2barcd %]
286 <div style="padding : .3em 0"><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
287 <input type="submit" id="markseenandquit" value="Mark seen and quit" />
288 <input type="submit" value="Mark Seen and Continue >>" id="markseenandcontinuebutton" />
289 <input type="submit" value="Continue without Marking >>" id="continuewithoutmarkingbutton" class="submit" />
298 [% INCLUDE 'tools-menu.inc' %]
301 [% INCLUDE 'intranet-bottom.inc' %]