Lines 64-77
Link Here
|
64 |
} |
64 |
} |
65 |
}; |
65 |
}; |
66 |
function Add() { |
66 |
function Add() { |
67 |
var barcodes = document.getElementById("barcode"); |
67 |
var number_list = document.getElementById("number_list"); |
68 |
if (barcodes.value == '') { |
68 |
if (number_list.value == '') { |
69 |
window.open("/cgi-bin/koha/labels/label-item-search.pl?batch_id=[% batch_id %]&type=labels",'FindABibIndex','width=875,height=400,toolbar=no,scrollbars=yes'); |
69 |
window.open("/cgi-bin/koha/labels/label-item-search.pl?batch_id=[% batch_id %]&type=labels",'FindABibIndex','width=875,height=400,toolbar=no,scrollbars=yes'); |
70 |
} |
70 |
} |
71 |
else { |
71 |
else { |
72 |
document.forms["add_by_barcode"].submit(); |
72 |
document.forms["add_by_number"].submit(); |
73 |
} |
73 |
} |
74 |
}; |
74 |
}; |
|
|
75 |
|
76 |
function add_item(item_number) { |
77 |
$("#itemnum_enter").prop("checked",true); |
78 |
$("#number_list").val($("#number_list").val()+item_number+"\r\n"); |
79 |
}; |
80 |
|
75 |
function DeDuplicate() { |
81 |
function DeDuplicate() { |
76 |
window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=de_duplicate&batch_id=[% batch_id %]"; |
82 |
window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=de_duplicate&batch_id=[% batch_id %]"; |
77 |
}; |
83 |
}; |
Lines 195-211
Link Here
|
195 |
|
201 |
|
196 |
<div id="manage-label-batches"> |
202 |
<div id="manage-label-batches"> |
197 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
203 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
198 |
<form name="add_by_barcode" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post"> |
204 |
<form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post"> |
199 |
<div> |
205 |
<div> |
200 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
206 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
201 |
<ol><li> |
207 |
<ol><li> |
202 |
<input type="hidden" name="op" value="add" /> |
208 |
<input type="hidden" name="op" value="add" /> |
203 |
<input type="hidden" name="batch_id" value="[% batch_id %]" /> |
209 |
<input type="hidden" name="batch_id" value="[% batch_id %]" /> |
204 |
<label for="barcode">Add by barcode(s): |
210 |
</li> |
205 |
<br /> <span class="hint">One barcode per line.</span> |
211 |
<li> |
206 |
<br /> <span class="hint">Leave empty to add via item search.</span> |
212 |
<input type="radio" name="number_type" id="barcode_enter" value="barcode" checked /> |
207 |
</label> |
213 |
<label for="barcode_enter">Enter by barcode</label><br/> |
208 |
<textarea rows="5" id="barcode" name="barcode" tabindex="1" class="focus"></textarea> |
214 |
<input type="radio" name="number_type" id="itemnum_enter" value="itemnumber" /> |
|
|
215 |
<label for="itemnum_enter">Enter by itemnumber</label> |
216 |
</li> |
217 |
<li> |
218 |
<label for="number_list">Add by barcode(s) or itemnumbers(s): |
219 |
<br /> <span class="hint">One number per line.</span> |
220 |
<br /> <span class="hint">Leave empty to add via item search (itemnunber).</span> |
221 |
</label> |
222 |
<textarea rows="5" id="number_list" name="number_list" tabindex="1" class="focus"></textarea> |
209 |
</li></ol> |
223 |
</li></ol> |
210 |
</fieldset> |
224 |
</fieldset> |
211 |
</div> |
225 |
</div> |
Lines 263-269
Link Here
|
263 |
<ol><li> |
277 |
<ol><li> |
264 |
<div class="dialog message"> |
278 |
<div class="dialog message"> |
265 |
<h4>There are no items in this batch yet</h4> |
279 |
<h4>There are no items in this batch yet</h4> |
266 |
<p>Add items by barcode using the text area above or leave empty to add via item search.</p> |
280 |
<p>Add items by using the text area above or leave empty to add via item search.</p> |
267 |
</div> |
281 |
</div> |
268 |
</li></ol> |
282 |
</li></ol> |
269 |
</fieldset> |
283 |
</fieldset> |