@@ -, +, @@ new batch per patron added --- .../prog/en/modules/labels/label-edit-batch.tt | 38 +++++++++++++------ .../intranet-tmpl/prog/en/modules/labels/result.tt | 13 ++----- .../prog/en/modules/patroncards/edit-batch.tt | 43 +++++++++++++++++----- labels/label-edit-batch.pl | 22 +++++++---- patroncards/edit-batch.pl | 15 +++++++- 5 files changed, 90 insertions(+), 41 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt @@ -64,14 +64,20 @@ } }; function Add() { - var barcodes = document.getElementById("barcode"); - if (barcodes.value == '') { + var number_list = document.getElementById("number_list"); + if (number_list.value == '') { 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'); } else { - document.forms["add_by_barcode"].submit(); + document.forms["add_by_number"].submit(); } }; + + function add_item(item_number) { + $("#itemnum_enter").prop("checked",true); + $("#number_list").val($("#number_list").val()+item_number+"\r\n"); + }; + function DeDuplicate() { window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=de_duplicate&batch_id=[% batch_id %]"; }; @@ -195,17 +201,25 @@