Lines 2-7
Link Here
|
2 |
<title>Koha › Tools › Labels › Manage label batches</title> |
2 |
<title>Koha › Tools › Labels › Manage label batches</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'greybox.inc' %] |
4 |
[% INCLUDE 'greybox.inc' %] |
|
|
5 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
6 |
[% INCLUDE 'datatables.inc' %] |
5 |
<script type="text/javascript"> |
7 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
8 |
//<![CDATA[ |
7 |
function dofocus() { // named function req'd for body onload event by some FF and IE7 security models |
9 |
function dofocus() { // named function req'd for body onload event by some FF and IE7 security models |
Lines 121-126
Link Here
|
121 |
}; |
123 |
}; |
122 |
|
124 |
|
123 |
$(document).ready(function() { |
125 |
$(document).ready(function() { |
|
|
126 |
$("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, { |
127 |
"aoColumnDefs": [ |
128 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
129 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false } |
130 |
], |
131 |
"aaSorting": [[ 1, "asc" ]], |
132 |
"sPaginationType": "four_button" |
133 |
})); |
124 |
$("#additems").click(function(){ |
134 |
$("#additems").click(function(){ |
125 |
Add(); |
135 |
Add(); |
126 |
return false; |
136 |
return false; |
Lines 171-188
Link Here
|
171 |
<a class="btn btn-small" id="exportitems" href="#">Export item(s)</a> |
181 |
<a class="btn btn-small" id="exportitems" href="#">Export item(s)</a> |
172 |
<a class="btn btn-small" id="exportbatch" href="#">Export batch</a>[% END %] |
182 |
<a class="btn btn-small" id="exportbatch" href="#">Export batch</a>[% END %] |
173 |
</div> |
183 |
</div> |
174 |
<div class="yui-g"> |
184 |
|
175 |
<div class="yui-u first" id="manage-label-batches"> |
185 |
[% IF ( err ) %] |
|
|
186 |
<div class="dialog alert"> |
187 |
<strong>WARNING:</strong> An error was encountered and [% errstr %] Please have your system administrator check the error log for details. |
188 |
</div> |
189 |
[% ELSIF ( duplicate_message ) %] |
190 |
<div class="dialog message"> |
191 |
<strong>[% duplicate_count %] duplicate item(s) found</strong> and removed from batch [% batch_id %]. |
192 |
</div> |
193 |
[% END %] |
194 |
|
195 |
<div id="manage-label-batches"> |
176 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
196 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
177 |
<form name="add_by_barcode" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post"> |
197 |
<form name="add_by_barcode" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post"> |
178 |
<div> |
198 |
<div> |
179 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
199 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
180 |
<ol><li> |
200 |
<ol><li> |
181 |
<input type="hidden" name="op" value="add" \> |
201 |
<input type="hidden" name="op" value="add" /> |
182 |
<input type="hidden" name="batch_id" value="[% batch_id %]" \> |
202 |
<input type="hidden" name="batch_id" value="[% batch_id %]" /> |
183 |
<label for="barcode">Add by barcode(s): |
203 |
<label for="barcode">Add by barcode(s): |
184 |
<br \> <span class="hint">One barcode per line.</span> |
204 |
<br /> <span class="hint">One barcode per line.</span> |
185 |
<br \> <span class="hint">Leave empty to add via item search.</span> |
205 |
<br /> <span class="hint">Leave empty to add via item search.</span> |
186 |
</label> |
206 |
</label> |
187 |
<textarea rows="5" id="barcode" name="barcode" tabindex="1" class="focus"></textarea> |
207 |
<textarea rows="5" id="barcode" name="barcode" tabindex="1" class="focus"></textarea> |
188 |
</li></ol> |
208 |
</li></ol> |
Lines 192-230
Link Here
|
192 |
[% IF ( table_loop ) %] |
212 |
[% IF ( table_loop ) %] |
193 |
<form name="items" class="checkboxed"> |
213 |
<form name="items" class="checkboxed"> |
194 |
<h2>Items in batch number [% batch_id %]</h2> |
214 |
<h2>Items in batch number [% batch_id %]</h2> |
195 |
<table> |
215 |
<table id="batcht"> |
196 |
[% FOREACH table_loo IN table_loop %] |
216 |
[% FOREACH table_loo IN table_loop %] |
197 |
[% IF ( table_loo.header_fields ) %] |
217 |
[% IF ( table_loo.header_fields ) %] |
198 |
<tr> |
218 |
<thead> |
199 |
[% FOREACH header_field IN table_loo.header_fields %] |
219 |
<tr> |
200 |
[% SWITCH header_field.field_label -%] |
220 |
[% FOREACH header_field IN table_loo.header_fields %] |
201 |
[% CASE "Label Number" -%] |
221 |
[% SWITCH header_field.field_label -%] |
202 |
<th>Label number</th> |
222 |
[% CASE "Label Number" -%] |
203 |
[% CASE "Summary" -%] |
223 |
<th>Label number</th> |
204 |
<th>Summary</th> |
224 |
[% CASE "Summary" -%] |
205 |
[% CASE "Item Type" %] |
225 |
<th class="anti-the">Summary</th> |
206 |
<th>Item type</th> |
226 |
[% CASE "Item Type" %] |
207 |
[% CASE "Barcode" %] |
227 |
<th>Item type</th> |
208 |
<th>Barcode</th> |
228 |
[% CASE "Barcode" %] |
209 |
[% CASE "Select" -%] |
229 |
<th>Barcode</th> |
210 |
<th>Select</th> |
230 |
[% CASE "Select" -%] |
211 |
[% CASE %] |
231 |
<th>Select</th> |
212 |
<th>[% header_field.field_label %]</th> |
232 |
[% CASE %] |
213 |
[% END -%] |
233 |
<th>[% header_field.field_label %]</th> |
214 |
[% END %] |
234 |
[% END -%] |
215 |
</tr> |
235 |
[% END %] |
216 |
[% ELSE %] |
236 |
</tr> |
217 |
<tr> |
237 |
</thead> |
218 |
[% FOREACH text_field IN table_loo.text_fields %] |
238 |
<tbody> |
219 |
[% IF ( text_field.select_field ) %] |
239 |
[% ELSE %] |
220 |
<td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]"></td> |
240 |
<tr> |
221 |
[% ELSE %] |
241 |
[% FOREACH text_field IN table_loo.text_fields %] |
222 |
<td>[% text_field.field_value %]</td> |
242 |
[% IF ( text_field.select_field ) %] |
223 |
[% END %] |
243 |
<td><input type="checkbox" name="action" value="[% text_field.field_value %]"></td> |
224 |
[% END %] |
244 |
[% ELSE %] |
225 |
</tr> |
245 |
<td>[% text_field.field_value %]</td> |
226 |
[% END %] |
246 |
[% END %] |
|
|
247 |
[% END %] |
248 |
</tr> |
249 |
[% END %] |
227 |
[% END %] |
250 |
[% END %] |
|
|
251 |
</tbody> |
228 |
</table> |
252 |
</table> |
229 |
</form> |
253 |
</form> |
230 |
[% ELSE %] |
254 |
[% ELSE %] |
Lines 238-262
Link Here
|
238 |
</fieldset> |
262 |
</fieldset> |
239 |
[% END %] |
263 |
[% END %] |
240 |
</div> |
264 |
</div> |
241 |
[% IF ( err ) %] |
|
|
242 |
<div class="yui-u"> |
243 |
<div class="dialog alert"> |
244 |
<strong>WARNING:</strong> An error was encountered and [% errstr %] Please have your system administrator check the error log for details. |
245 |
</div> |
246 |
</div> |
247 |
[% ELSIF ( duplicate_message ) %] |
248 |
<div class="yui-u"> |
249 |
<div class="dialog message"> |
250 |
<strong>[% duplicate_count %] duplicate item(s) found</strong> and removed from batch [% batch_id %]. |
251 |
</div> |
252 |
</div> |
253 |
[% END %] |
254 |
</div> |
265 |
</div> |
255 |
</div> |
|
|
256 |
</div> |
266 |
</div> |
257 |
<div class="yui-b"> |
267 |
<div class="yui-b"> |
258 |
[% INCLUDE 'labels-menu.inc' %] |
268 |
[% INCLUDE 'labels-menu.inc' %] |
259 |
</div> |
269 |
</div> |
260 |
</div> |
270 |
</div> |
261 |
</div> |
|
|
262 |
[% INCLUDE 'intranet-bottom.inc' %] |
271 |
[% INCLUDE 'intranet-bottom.inc' %] |
263 |
- |
|
|