3169100d51
This patch adds the ability to enter items into label batches via barcode scanning Work sponsored by Tamil - http://www.tamil.fr Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
113 lines
6.4 KiB
Cheetah
113 lines
6.4 KiB
Cheetah
<!-- PLEASE MAINTAIN PROPER INDENTATION!!!! -->
|
|
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Tools › Labels › Manage Label Batches</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="greybox.inc" -->
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function dofocus() { // named function req'd for body onload event by some FF and IE7 security models
|
|
$(".focus:last").select();
|
|
}
|
|
function verifyBarcodes(barcodes) {
|
|
if (barcodes.value == '') {
|
|
alert("Please add barcodes using either the direct entry text area or the item search.");
|
|
return false; // not ok
|
|
}
|
|
else {
|
|
return true; // ok
|
|
};
|
|
}
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body onload="dofocus();">
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
|
|
<div id="breadcrumbs">
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
|
|
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
|
|
<a href="/cgi-bin/koha/labels/label-home.pl">Labels Home</a> ›
|
|
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Mange Label Batches</a> ›
|
|
Manage Batch Number <!-- TMPL_VAR NAME="batch_id" -->
|
|
</div>
|
|
<div id="doc3" class="yui-t2">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="labels-batches-toolbar.inc" -->
|
|
<div class="yui-g">
|
|
<div class="yui-u first" id="manage-label-batches">
|
|
<div class="hint">Current Branch: <!-- TMPL_VAR NAME="LoginBranchname" --></div>
|
|
<form name="add_by_barcode" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
|
|
<div>
|
|
<fieldset class="rows" style="border-bottom: 0px; border: 0px;">
|
|
<ol><li>
|
|
<input type="hidden" name="op" value="add" \>
|
|
<input type="hidden" name="batch_id" value="<!-- TMPL_VAR NAME="batch_id" -->" \>
|
|
<label for="barcode">Add by Barcode(s):
|
|
<br \> <span class="hint">One barcode per line.</span>
|
|
<br \> <span class="hint">Leave empty to add via item search.</span>
|
|
</label>
|
|
<textarea rows="5" id="barcode" name="barcode" tabindex="1" class="focus"></textarea>
|
|
</li></ol>
|
|
</fieldset>
|
|
</div>
|
|
</form>
|
|
<!-- TMPL_IF NAME="table_loop" -->
|
|
<form name="items" class="checkboxed">
|
|
<h2>Items in batch number <!-- TMPL_VAR NAME="batch_id" --></h2>
|
|
<table>
|
|
<!-- TMPL_LOOP NAME="table_loop" -->
|
|
<!-- TMPL_IF NAME="header_fields" -->
|
|
<tr>
|
|
<!-- TMPL_LOOP NAME="header_fields" -->
|
|
<th><!-- TMPL_VAR NAME="field_label" --></th>
|
|
<!-- /TMPL_LOOP -->
|
|
</tr>
|
|
<!-- TMPL_ELSE -->
|
|
<tr>
|
|
<!-- TMPL_LOOP NAME="text_fields" -->
|
|
<!-- TMPL_IF NAME="select_field" -->
|
|
<td align="center"><input type="checkbox" name="action" value="<!-- TMPL_VAR NAME="field_value" -->"></td>
|
|
<!-- TMPL_ELSE -->
|
|
<td><!-- TMPL_VAR NAME="field_value" --></td>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</tr>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
<fieldset class="rows" style="border-bottom: 0px; border: 0px;">
|
|
<ol><li>
|
|
<div class="dialog message">
|
|
<h4>There are no items in Batch <!-- TMPL_VAR NAME="batch_id" --> yet</h4>
|
|
<p>Add items by barcode using the text area above or leave empty to add via item search.</p>
|
|
</div>
|
|
</li></ol>
|
|
</fieldset>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
<!-- TMPL_IF NAME="err" -->
|
|
<div class="yui-u">
|
|
<div class="dialog alert">
|
|
<strong>WARNING:</strong> An error was encountered and <!-- TMPL_VAR NAME="errstr" --> Please have your system administrator check the error log for details.
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_ELSIF NAME="duplicate_message" -->
|
|
<div class="yui-u">
|
|
<div class="dialog message">
|
|
<strong><!-- TMPL_VAR NAME="duplicate_count" --> duplicate item(s) found</strong> and removed from batch <!-- TMPL_VAR NAME="batch_id" -->.
|
|
</div>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|