Lines 89-94
$(document).ready(function(){
Link Here
|
89 |
$("#inventory_form").on("submit",function(){ |
89 |
$("#inventory_form").on("submit",function(){ |
90 |
return checkForm(); |
90 |
return checkForm(); |
91 |
}); |
91 |
}); |
|
|
92 |
|
93 |
// #uploadbarcodes and #compareinv2barcd determine the behavior of |
94 |
// the controls within the barcode fieldset and the optional filters |
95 |
$("#uploadbarcodes").change(function() { |
96 |
if( $("#uploadbarcodes").val() ) { |
97 |
$("#setdate").prop('disabled',false); |
98 |
$("#compareinv2barcd").prop('disabled',false); |
99 |
$("#dont_checkin").prop('disabled',false); |
100 |
if( $("#compareinv2barcd").attr('checked') ) { |
101 |
$("fieldset#optionalfilters").show(); |
102 |
} else { |
103 |
$("fieldset#optionalfilters").hide(); |
104 |
} |
105 |
} else { |
106 |
$("#setdate").prop('disabled',true); |
107 |
$("#compareinv2barcd").prop('disabled',true); |
108 |
$("#compareinv2barcd").attr('checked',false); |
109 |
$("#dont_checkin").prop('disabled',true); |
110 |
$("#dont_checkin").attr('checked',false); |
111 |
$("fieldset#optionalfilters").show(); |
112 |
} |
113 |
}); |
114 |
$("#compareinv2barcd").click(function() { |
115 |
if( $("#compareinv2barcd").attr('checked') ) { |
116 |
$("fieldset#optionalfilters").show(); |
117 |
} else { |
118 |
$("fieldset#optionalfilters").hide(); |
119 |
} |
120 |
}); |
92 |
}); |
121 |
}); |
93 |
//]]> |
122 |
//]]> |
94 |
</script> |
123 |
</script> |
Lines 125-140
$(document).ready(function(){
Link Here
|
125 |
<div class="yui-g"> |
154 |
<div class="yui-g"> |
126 |
<form method="post" id="inventory_form" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data"> |
155 |
<form method="post" id="inventory_form" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data"> |
127 |
<fieldset class="rows"> |
156 |
<fieldset class="rows"> |
128 |
<legend>Use a barcode file</legend> |
157 |
<legend>Use a barcode file</legend> |
129 |
<ol> |
158 |
<ol> |
130 |
<li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li> |
159 |
<li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li> |
131 |
<li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepicker" /> |
160 |
<li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepicker" disabled /></li> |
132 |
</li> |
161 |
<li><label for="compareinv2barcd">Compare barcodes list to results: </label><input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" disabled /></li> |
|
|
162 |
<li><label for="dont_checkin">Do not check in items scanned during inventory: </label><input type="checkbox" name="dont_checkin" id="dont_checkin" disabled /></li> |
133 |
</ol> |
163 |
</ol> |
134 |
</fieldset> |
164 |
</fieldset> |
135 |
|
165 |
|
136 |
<fieldset class="rows"> |
166 |
<fieldset class="rows"> |
137 |
<legend>Select items you want to check</legend> |
167 |
<legend>Item location filters</legend> |
138 |
<ol><li> |
168 |
<ol><li> |
139 |
<label for="branch">Library: </label> |
169 |
<label for="branch">Library: </label> |
140 |
<input type="radio" name="branch" value="homebranch"> Home library</input> |
170 |
<input type="radio" name="branch" value="homebranch"> Home library</input> |
Lines 165-175
$(document).ready(function(){
Link Here
|
165 |
<li><label for="maxlocation">...and: </label> |
195 |
<li><label for="maxlocation">...and: </label> |
166 |
<input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" /> |
196 |
<input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" /> |
167 |
</li> |
197 |
</li> |
168 |
[% IF (statuses) %] |
|
|
169 |
</ol> |
198 |
</ol> |
170 |
</fieldset> |
199 |
</fieldset> |
171 |
<fieldset class="rows"> |
200 |
|
172 |
<legend>Item statuses</legend> |
201 |
<fieldset class="rows" id="optionalfilters"> |
|
|
202 |
<legend>Optional filters for inventory list or comparing barcodes</legend> |
203 |
<br/> |
173 |
<div id="statuses" style="display: block;"> |
204 |
<div id="statuses" style="display: block;"> |
174 |
[% FOREACH status IN statuses %] |
205 |
[% FOREACH status IN statuses %] |
175 |
[% IF (status.values) %] |
206 |
[% IF (status.values) %] |
Lines 195-227
$(document).ready(function(){
Link Here
|
195 |
[% END %] |
226 |
[% END %] |
196 |
[% END %] |
227 |
[% END %] |
197 |
</div> |
228 |
</div> |
198 |
</fieldset> |
229 |
<ol> |
199 |
<fieldset class="rows"> |
230 |
<li> |
200 |
<ol> |
231 |
<br/> |
201 |
[% END %] |
232 |
<label for="datelastseen">Last inventory date:</label> |
202 |
|
|
|
203 |
<li><label for="datelastseen">Last inventory date:</label> |
204 |
<input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepicker" /> |
233 |
<input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepicker" /> |
205 |
(Skip records marked as seen on or after this date.) |
234 |
(Skip records marked as seen on or after this date.) |
206 |
</li> |
235 |
</li> |
207 |
<li><label for="ignoreissued">Skip items on loan: </label> |
236 |
<li> |
|
|
237 |
<label for="ignoreissued">Skip items on loan: </label> |
208 |
[% IF (ignoreissued) %] |
238 |
[% IF (ignoreissued) %] |
209 |
<input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li> |
239 |
<input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /> |
210 |
[% ELSE %] |
240 |
[% ELSE %] |
211 |
<input type="checkbox" id="ignoreissued" name="ignoreissued" /></li> |
241 |
<input type="checkbox" id="ignoreissued" name="ignoreissued" /> |
212 |
[% END %] |
242 |
[% END %] |
|
|
243 |
</li> |
244 |
</ol> |
245 |
</fieldset> |
246 |
|
247 |
<fieldset class="rows"> |
248 |
<legend>Additional options</legend> |
249 |
<ol> |
250 |
|
213 |
<li> |
251 |
<li> |
214 |
<label for="CSVexport">Export to CSV file: </label> |
252 |
<label for="CSVexport">Export to CSV file: </label> |
215 |
<input type="checkbox" name="CSVexport" id="CSVexport" /> |
253 |
<input type="checkbox" name="CSVexport" id="CSVexport" /> |
216 |
</li> |
254 |
</li> |
217 |
<li> |
|
|
218 |
<label for="compareinv2barcd">Compare barcodes list to results: </label> |
219 |
<input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" /> |
220 |
</li> |
221 |
<li> |
222 |
<label for="dont_checkin">Do not check in items scanned during inventory: </label> |
223 |
<input type="checkbox" name="dont_checkin" id="dont_checkin" /> |
224 |
</li> |
225 |
</ol> |
255 |
</ol> |
226 |
</fieldset> |
256 |
</fieldset> |
227 |
<input type="hidden" name="op" value="do_it" /> |
257 |
<input type="hidden" name="op" value="do_it" /> |
228 |
- |
|
|