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 168-174
Link Here
|
168 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
174 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
169 |
<a href="/cgi-bin/koha/labels/label-home.pl">Labels home</a> › |
175 |
<a href="/cgi-bin/koha/labels/label-home.pl">Labels home</a> › |
170 |
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Manage label batches</a> › |
176 |
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Manage label batches</a> › |
171 |
Manage batch number [% batch_id %] |
177 |
[% IF batch_id %] |
|
|
178 |
Manage batch number [% batch_id %] |
179 |
[% ELSE %] |
180 |
Create new batch |
181 |
[% END %] |
172 |
</div> |
182 |
</div> |
173 |
<div id="doc3" class="yui-t2"> |
183 |
<div id="doc3" class="yui-t2"> |
174 |
<div id="bd"> |
184 |
<div id="bd"> |
Lines 195-211
Link Here
|
195 |
|
205 |
|
196 |
<div id="manage-label-batches"> |
206 |
<div id="manage-label-batches"> |
197 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
207 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
198 |
<form name="add_by_barcode" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post"> |
208 |
<form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post"> |
199 |
<div> |
209 |
<div> |
200 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
210 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
201 |
<ol><li> |
211 |
<ol><li> |
202 |
<input type="hidden" name="op" value="add" /> |
212 |
<input type="hidden" name="op" value="add" /> |
203 |
<input type="hidden" name="batch_id" value="[% batch_id %]" /> |
213 |
<input type="hidden" name="batch_id" value="[% batch_id %]" /> |
204 |
<label for="barcode">Add by barcode(s): |
214 |
</li> |
205 |
<br /> <span class="hint">One barcode per line.</span> |
215 |
<li> |
206 |
<br /> <span class="hint">Leave empty to add via item search.</span> |
216 |
<input type="radio" name="number_type" id="barcode_enter" value="barcode" checked /> |
207 |
</label> |
217 |
<label for="barcode_enter">Enter by barcode</label><br/> |
208 |
<textarea rows="5" id="barcode" name="barcode" tabindex="1" class="focus"></textarea> |
218 |
<input type="radio" name="number_type" id="itemnum_enter" value="itemnumber" /> |
|
|
219 |
<label for="itemnum_enter">Enter by itemnumber</label> |
220 |
</li> |
221 |
<li> |
222 |
<label for="number_list">Add by barcode(s) or itemnumbers(s): |
223 |
<br /> <span class="hint">One number per line.</span> |
224 |
<br /> <span class="hint">Leave empty to add via item search (itemnunber).</span> |
225 |
</label> |
226 |
<textarea rows="5" id="number_list" name="number_list" tabindex="1" class="focus"></textarea> |
209 |
</li></ol> |
227 |
</li></ol> |
210 |
</fieldset> |
228 |
</fieldset> |
211 |
</div> |
229 |
</div> |
Lines 263-269
Link Here
|
263 |
<ol><li> |
281 |
<ol><li> |
264 |
<div class="dialog message"> |
282 |
<div class="dialog message"> |
265 |
<h4>There are no items in this batch yet</h4> |
283 |
<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> |
284 |
<p>Add items by using the text area above or leave empty to add via item search.</p> |
267 |
</div> |
285 |
</div> |
268 |
</li></ol> |
286 |
</li></ol> |
269 |
</fieldset> |
287 |
</fieldset> |