Lines 1-11
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Tools › Inventory</title> |
2 |
<title>Koha › Tools › Inventory</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
6 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
4 |
[% INCLUDE 'calendar.inc' %] |
7 |
[% INCLUDE 'calendar.inc' %] |
5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
8 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
6 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
7 |
//<![CDATA[ |
10 |
//<![CDATA[ |
8 |
$(document).ready(function(){ |
11 |
$(document).ready(function(){ |
|
|
12 |
|
13 |
inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { |
14 |
'sPaginationType': 'full_numbers', |
15 |
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ] |
16 |
} )); |
17 |
|
18 |
|
19 |
$("#continuewithoutmarkingbutton").click(function(){ |
20 |
inventorydt.fnPageChange( 'next' ); |
21 |
return false; |
22 |
}); |
23 |
|
24 |
$("#markseenandcontinuebutton").click(function(){ |
25 |
var param = ''; |
26 |
$("input:checked").each(function() { |
27 |
param += "|" + $(this).attr('name'); |
28 |
}); |
29 |
$.post('/cgi-bin/koha/tools/ajax-inventory.pl', { seen: param }); |
30 |
inventorydt.fnPageChange( 'next' ); |
31 |
return false; |
32 |
}); |
33 |
|
34 |
$("#markseenandquit").click(function(){ |
35 |
var param = ''; |
36 |
$("input:checked").each(function() { |
37 |
param += "|" + $(this).attr('name'); |
38 |
}); |
39 |
$.ajax({ |
40 |
type: 'POST', |
41 |
url: '/cgi-bin/koha/tools/ajax-inventory.pl', |
42 |
data: { seen: param}, |
43 |
async: false |
44 |
}); |
45 |
document.location.href = '/cgi-bin/koha/tools/inventory.pl'; |
46 |
return false; |
47 |
}); |
48 |
|
49 |
|
50 |
|
9 |
$(".checkall").click(function(){ |
51 |
$(".checkall").click(function(){ |
10 |
$(".checkboxed").checkCheckboxes(); |
52 |
$(".checkboxed").checkCheckboxes(); |
11 |
return false; |
53 |
return false; |
Lines 28-38
$(document).ready(function(){
Link Here
|
28 |
//]]> |
70 |
//]]> |
29 |
</script> |
71 |
</script> |
30 |
</head> |
72 |
</head> |
31 |
<body id="tools_inventory" class="tools"> |
73 |
<body> |
32 |
[% INCLUDE 'header.inc' %] |
74 |
[% INCLUDE 'header.inc' %] |
33 |
[% INCLUDE 'cat-search.inc' %] |
75 |
[% INCLUDE 'cat-search.inc' %] |
34 |
|
76 |
|
35 |
<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> |
77 |
<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> |
36 |
|
78 |
|
37 |
<div id="doc3" class="yui-t2"> |
79 |
<div id="doc3" class="yui-t2"> |
38 |
|
80 |
|
Lines 40-123
$(document).ready(function(){
Link Here
|
40 |
<div id="yui-main"> |
82 |
<div id="yui-main"> |
41 |
<div class="yui-b"> |
83 |
<div class="yui-b"> |
42 |
<h1>Inventory/Stocktaking</h1> |
84 |
<h1>Inventory/Stocktaking</h1> |
43 |
[% IF ( Number ) %]<div class="dialog message">[% Number %] items modified : datelastseen set to [% date %]</div>[% END %] |
85 |
[% IF (moddatecount) %]<div class="dialog message">[% moddatecount %] items modified : datelastseen set to [% date %]</div>[% END %] |
44 |
[% IF ( errorfile ) %]<div class="dialog alert">[% errorfile %] can't be opened</div>[% END %] |
86 |
[% IF (errorfile) %]<div class="dialog alert">[% errorfile %] can't be opened</div>[% END %] |
45 |
[% FOREACH errorloo IN errorloop %] |
87 |
[% FOREACH error IN errorloop %] |
46 |
<div class="dialog alert"> |
88 |
<div class="dialog alert"> |
47 |
[% errorloo.barcode %] |
89 |
[% error.barcode %] |
48 |
[% IF ( errorloo.ERR_BARCODE ) %]: barcode not found[% END %] |
90 |
[% IF (error.ERR_BARCODE) %]: barcode not found[% END %] |
49 |
[% IF ( errorloo.ERR_WTHDRAWN ) %]: item withdrawn[% END %] |
91 |
[% IF (error.ERR_WTHDRAWN) %]: item withdrawn[% END %] |
50 |
[% IF ( errorloo.ERR_ONLOAN_RET ) %]: item was on loan. It was returned before marked as seen[% END %] |
92 |
[% IF (error.ERR_ONLOAN_RET) %]: item was on loan. It was returned before marked as seen[% END %] |
51 |
[% IF ( errorloo.ERR_ONLOAN_NOT_RET ) %]: item was on loan. couldn't be returned.[% END %] |
93 |
[% IF (error.ERR_ONLOAN_NOT_RET) %]: item was on loan. couldn't be returned.[% END %] |
52 |
</div> |
94 |
</div> |
53 |
[% END %] |
95 |
[% END %] |
54 |
[% UNLESS ( loop ) %] |
96 |
[% UNLESS op %] |
55 |
<div class="yui-g"> |
97 |
<div class="yui-g"> |
56 |
<form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data"> |
98 |
<form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data"> |
57 |
<fieldset class="rows"> |
99 |
<fieldset class="rows"> |
58 |
<legend>Use a barcode file</legend> |
100 |
<legend>Use a barcode file</legend> |
59 |
<ol> |
101 |
<ol> |
60 |
<li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li> |
102 |
<li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li> |
61 |
<li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today %]" class="datepicker" /> |
103 |
<li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today %]" class="datepickerfrom" /> |
62 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
|
|
63 |
</li> |
104 |
</li> |
64 |
</ol> |
105 |
</ol> |
65 |
</fieldset> |
106 |
</fieldset> |
66 |
<fieldset class="rows"> |
107 |
<fieldset class="rows"> |
67 |
<legend>Select items you want to check</legend> |
108 |
<legend>Select items you want to check</legend> |
68 |
<ol><li> |
109 |
<ol><li> |
69 |
<label for="branch">Library</label> |
110 |
<label for="branch">Branch</label> |
70 |
<input type="radio" name="branch" value="homebranch"> Home library</input> |
111 |
<input type="radio" name="branch" value="homebranch">Home Branch</input> |
71 |
<input type="radio" name="branch" value="holdingbranch"> Current location</input> |
112 |
<input type="radio" name="branch" value="holdingbranch">Holding Branch</input> |
72 |
</li><li> |
113 |
</li><li> |
73 |
<label for="branchloop">Library</label><select id="branchloop" name="branchcode" style="width:12em;"> |
114 |
<label for="branchloop">Library</label><select id="branchloop" name="branchcode" style="width:12em;"> |
74 |
<option value="">All locations</option> |
115 |
<option value="">All Locations</option> |
75 |
[% FOREACH branchloo IN branchloop %] |
116 |
[% FOREACH branch IN branchloop %] |
76 |
[% IF ( branchloo.selected ) %] |
117 |
[% IF (branch.selected) %] |
77 |
<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option> |
118 |
<option value="[% branch.value %]" selected="selected">[% branch.branchname %]</option> |
78 |
[% ELSE %] |
119 |
[% ELSE %] |
79 |
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option> |
120 |
<option value="[% branch.value %]">[% branch.branchname %]</option> |
80 |
[% END %] |
121 |
[% END %] |
81 |
[% END %] |
122 |
[% END %] |
82 |
</select> |
123 |
</select> |
83 |
</li> |
124 |
</li> |
84 |
[% IF ( authorised_values ) %] |
125 |
[% IF (authorised_values) %] |
85 |
<li> |
126 |
<li> |
86 |
<label for="locationloop">Shelving location (items.location) is</label> |
127 |
<label for="locationloop">Item Location (items.location) is</label> |
87 |
<select id="locationloop" name="location"> |
128 |
<select id="locationloop" name="location"> |
88 |
<option value="">Filter location</option> |
129 |
<option value="">Filter location</option> |
89 |
[% FOREACH authorised_value IN authorised_values %] |
130 |
[% FOREACH value IN authorised_values %] |
90 |
[% IF ( authorised_value.selected ) %] |
131 |
[% IF (value.selected) %] |
91 |
<option value="[% authorised_value.authorised_value %]" selected="selected">[% authorised_value.lib %]</option> |
132 |
<option value="[% value.authorised_value %]" selected="selected">[% value.lib %]</option> |
92 |
[% ELSE %] |
133 |
[% ELSE %] |
93 |
<option value="[% authorised_value.authorised_value %]">[% authorised_value.lib %]</option> |
134 |
<option value="[% value.authorised_value %]">[% value.lib %]</option> |
94 |
[% END %] |
135 |
[% END %] |
95 |
[% END %] |
136 |
[% END %] |
96 |
</select> </li> |
137 |
</select> </li> |
97 |
[% END %] |
138 |
[% END %] |
98 |
<li> |
139 |
<li> |
99 |
<label for="minlocation">Item call number between: </label> |
140 |
<label for="minlocation">Item callnumber between: </label> |
100 |
<input type="text" name="minlocation" id="minlocation" value="[% minlocation %]" /> (items.itemcallnumber) </li> |
141 |
<input type="text" name="minlocation" id="minlocation" value="[% minlocation %]" /> (items.itemcallnumber) </li> |
101 |
<li><label for="maxlocation">...and: </label> |
142 |
<li><label for="maxlocation">...and: </label> |
102 |
<input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" /> |
143 |
<input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" /> |
103 |
</li> |
144 |
</li> |
104 |
[% IF ( statuses ) %] |
145 |
[% IF (statuses) %] |
105 |
</ol> |
146 |
</ol> |
106 |
</fieldset> |
147 |
</fieldset> |
107 |
<fieldset class="rows"> |
148 |
<fieldset class="rows"> |
108 |
<legend>Item statuses:</legend> |
149 |
<legend>Item statuses:</legend> |
109 |
<div name="statuses" style="display: block;"> |
150 |
<div name="statuses" style="display: block;"> |
110 |
[% FOREACH statuse IN statuses %] |
151 |
[% FOREACH status IN statuses %] |
111 |
[% IF ( statuse.values ) %] |
152 |
[% IF (status.values) %] |
112 |
<fieldset style="float: left; padding: 5px; margin: 5px;text-align:right"> |
153 |
<fieldset style="float: left; padding: 5px; margin: 5px;text-align:right"> |
113 |
<legend>[% statuse.fieldname %]</legend> |
154 |
<legend>[% status.fieldname %]</legend> |
114 |
<ul id="statuses-[% statuse.fieldname %]" style="display: inline;"> |
155 |
<ul id="statuses-[% fieldname %]" style="display: inline;"> |
115 |
[% FOREACH value IN statuse.values %] |
156 |
[% FOREACH value IN status.values %] |
116 |
[% IF ( value.lib ) %]<li> |
157 |
[% IF (value.lib) %]<li> |
117 |
<label for="[% value.id %]"> |
158 |
<label for="[% value.id %]"> |
118 |
[% value.lib %] |
159 |
[% value.lib %] |
119 |
</label> |
160 |
</label> |
120 |
<input type="checkbox" name="status-[% value.fieldname %]-[% value.id %]" id="[% value.id %]" /> |
161 |
<input type="checkbox" name="status-[% value.fieldname %]-[% value.authorised_value %]" id="[% value.authorised_value %]" /> |
121 |
</li>[% END %] |
162 |
</li>[% END %] |
122 |
[% END %] |
163 |
[% END %] |
123 |
</ul> |
164 |
</ul> |
Lines 131-152
$(document).ready(function(){
Link Here
|
131 |
[% END %] |
172 |
[% END %] |
132 |
|
173 |
|
133 |
<li><label for="datelastseen">Inventory date:</label> |
174 |
<li><label for="datelastseen">Inventory date:</label> |
134 |
<input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen %]" class="datepicker"/> |
175 |
<input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen %]" class="datepickerfrom" /> |
135 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
|
|
136 |
</li> |
176 |
</li> |
137 |
<li><label for="ignoreissued">Skip copies on loan: </label> |
177 |
<li><label for="ignoreissued">Skip copies on loan: </label> |
138 |
[% IF ( ignoreissued ) %] |
178 |
[% IF (ignoreissued) %] |
139 |
<input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li> |
179 |
<input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li> |
140 |
[% ELSE %] |
180 |
[% ELSE %] |
141 |
<input type="checkbox" id="ignoreissued" name="ignoreissued" /></li> |
181 |
<input type="checkbox" id="ignoreissued" name="ignoreissued" /></li> |
142 |
[% END %] |
182 |
[% END %] |
143 |
<li><label for="pagesize">Show: </label> |
|
|
144 |
<input type="text" id="pagesize" name="pagesize" value="[% pagesize %]" maxlength="5" size="5" /> items</li> |
145 |
<li><label for="offset">Beginning at offset: </label> |
146 |
<input type="text" id="offset" name="offset" value="[% offset %]" size="5" maxlength="5" /> |
147 |
</li> |
148 |
<li> |
183 |
<li> |
149 |
<label for="CSVexport">Export to CSV file</label> |
184 |
<label for="CSVexport">Export to csv file</label> |
150 |
<input type="checkbox" name="CSVexport" id="CSVexport" /> |
185 |
<input type="checkbox" name="CSVexport" id="CSVexport" /> |
151 |
</li> |
186 |
</li> |
152 |
<li> |
187 |
<li> |
Lines 161-167
$(document).ready(function(){
Link Here
|
161 |
</div> |
196 |
</div> |
162 |
</div> |
197 |
</div> |
163 |
[% END %] |
198 |
[% END %] |
164 |
[% IF ( loop ) %] |
199 |
[% IF (op) %] |
165 |
<form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed"> |
200 |
<form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed"> |
166 |
<input type="hidden" name="markseen" value="1" /> |
201 |
<input type="hidden" name="markseen" value="1" /> |
167 |
<input type="hidden" name="minlocation" value="[% minlocation %]" /> |
202 |
<input type="hidden" name="minlocation" value="[% minlocation %]" /> |
Lines 171-244
$(document).ready(function(){
Link Here
|
171 |
<input type="hidden" name="datelastseen" value="[% datelastseen %]" /> |
206 |
<input type="hidden" name="datelastseen" value="[% datelastseen %]" /> |
172 |
<input type="hidden" name="pagesize" value="[% pagesize %]" /> |
207 |
<input type="hidden" name="pagesize" value="[% pagesize %]" /> |
173 |
<input type="hidden" name="offset" value="[% offset %]" /> |
208 |
<input type="hidden" name="offset" value="[% offset %]" /> |
174 |
<div style="padding : .3em 0"><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div> |
209 |
<div><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div> |
175 |
<table> |
210 |
<table id="inventoryt"> |
|
|
211 |
<thead> |
176 |
<tr> |
212 |
<tr> |
177 |
<th>Seen</th> |
213 |
<th>Seen</th> |
178 |
<th>Barcode</th> |
214 |
<th>Barcode</th> |
|
|
215 |
<th>Location</th> |
179 |
<th>Title</th> |
216 |
<th>Title</th> |
|
|
217 |
<th>Status</th> |
218 |
<th>Lost</th> |
219 |
<th>Damaged</th> |
180 |
<th>Unseen since</th> |
220 |
<th>Unseen since</th> |
181 |
<th>Problems</th> |
221 |
<th>Problems</th> |
182 |
</tr> |
222 |
</tr> |
183 |
[% FOREACH loo IN loop %] |
223 |
</thead> |
|
|
224 |
<tbody> |
225 |
[% FOREACH result IN loop %] |
184 |
<tr> |
226 |
<tr> |
185 |
<td> |
227 |
<td> |
186 |
<input type="checkbox" name="SEEN-[% loo.itemnumber %]" value="1" /> |
228 |
<input type="checkbox" name="SEEN-[% result.itemnumber %]" value="1" /> |
|
|
229 |
</td> |
230 |
<td> |
231 |
[% result.barcode | html %] |
187 |
</td> |
232 |
</td> |
188 |
<td> |
233 |
<td> |
189 |
[% loo.barcode %] |
234 |
[% result.homebranch | html %] [% result.location | html %] [[% result.itemcallnumber | html %]] |
190 |
</td> |
235 |
</td> |
191 |
<td> |
236 |
<td> |
192 |
<p><b>[% loo.itemcallnumber %]</b> - <a href="#" onclick="window.open('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% loo.biblionumber %]','marcview','width=800,height=600,toolbar=0,scrollbars=1');">[% loo.title |html %]</a></p> |
237 |
<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> |
193 |
<p>[% loo.author %]</p> |
|
|
194 |
</td> |
238 |
</td> |
195 |
<td> |
239 |
<td> |
196 |
<p>[% loo.datelastseen %]</p> |
240 |
[% result.notforloan | html %] |
197 |
</td> |
241 |
</td> |
198 |
<td> |
242 |
<td> |
199 |
[% IF ( loo.notfoundbarcode ) %] |
243 |
[% result.itemlost | html %] |
200 |
<p style="background: red;">Not found among barcodes in barcodes file.</p> |
244 |
</td> |
201 |
[% ELSIF ( loo.notfoundkoha ) %] |
245 |
<td> |
202 |
<p style="background: red;">Not found in Koha.</p> |
246 |
[% result.damaged | html %] |
203 |
[% ELSE %] |
247 |
</td> |
204 |
<p style="background: green;">None</p> |
248 |
<td> |
205 |
[% END %] |
249 |
[% result.datelastseen | html %] |
|
|
250 |
</td> |
251 |
<td> |
252 |
[% IF (result.wrongplace) %]<p>Item should not have been scanned</p>[% ELSIF (result.missingitem) %]<p>Item missing</p>[% ELSIF (result.changestatus) %]<p>Change item status</p>[% END %] |
206 |
</td> |
253 |
</td> |
207 |
</tr> |
254 |
</tr> |
208 |
[% END %] |
255 |
[% END %] |
|
|
256 |
</tbody> |
209 |
</table> |
257 |
</table> |
210 |
<div style="padding : .3em 0"><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div> |
258 |
<div class="spacer"></div> |
211 |
<input type="submit" id="markseen" value="Mark seen" /> |
259 |
<p style="display:block;"><span class="exportSelected"></span></p> |
212 |
</form> |
260 |
<div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div> |
213 |
[% IF ( offset ) %] |
261 |
<input type="submit" id="markseenandquit" value="Mark seen and quit" /> |
214 |
<form method="post" action="/cgi-bin/koha/tools/inventory.pl"> |
262 |
<input type="submit" value="Mark Seen and Continue >>" id="markseenandcontinuebutton" /> |
215 |
<input type="hidden" name="branch" value="[% branch %]" /> |
263 |
<input type="submit" value="Continue without Marking >>" id="continuewithoutmarkingbutton" class="submit" /> |
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 %]" /> |
221 |
<input type="hidden" name="pagesize" value="[% pagesize %]" /> |
222 |
<input type="hidden" name="offset" value="[% prevoffset %]" /> |
223 |
<input type="hidden" name="op" value="do_it" /> |
224 |
<input type="submit" value="<< Continue without marking" class="submit" /> |
225 |
</form> |
226 |
[% END %] |
227 |
[% IF ( nextoffset ) %] |
228 |
<form method="post"> |
229 |
<input type="hidden" name="branch" value="[% branch %]" /> |
230 |
<input type="hidden" name="location" value="[% location %]" /> |
231 |
<input type="hidden" name="branchcode" value="[% branchcode %]" /> |
232 |
<input type="hidden" name="minlocation" value="[% minlocation %]" /> |
233 |
<input type="hidden" name="maxlocation" value="[% maxlocation %]" /> |
234 |
<input type="hidden" name="datelastseen" value="[% datelastseen %]" /> |
235 |
<input type="hidden" name="pagesize" value="[% pagesize %]" /> |
236 |
<input type="hidden" name="offset" value="[% nextoffset %]" /> |
237 |
<input type="hidden" name="op" value="do_it" /> |
238 |
<input type="submit" value="Continue without marking >>" class="submit" /> |
239 |
</form> |
264 |
</form> |
|
|
265 |
|
240 |
</div> |
266 |
</div> |
241 |
[% END %] |
267 |
|
242 |
[% END %] |
268 |
[% END %] |
243 |
</div> |
269 |
</div> |
244 |
<div class="yui-b"> |
270 |
<div class="yui-b"> |