From 3169100d513db4638a19bca925bb232159f8f748 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Sat, 25 Sep 2010 17:14:14 +0200 Subject: [PATCH] Bug 5227 [3.4] Enhance the label batch edit interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Galen Charlton --- .../en/includes/labels-batches-toolbar.inc | 8 +++- .../en/modules/labels/label-edit-batch.tmpl | 44 +++++++++++++++++-- labels/label-edit-batch.pl | 13 +++++- 3 files changed, 60 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-batches-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-batches-toolbar.inc index 47a0b8f66a..f3a20060e9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-batches-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-batches-toolbar.inc @@ -46,7 +46,13 @@ } }; function Add() { - window.open("/cgi-bin/koha/labels/label-item-search.pl?batch_id=&type=labels",'FindABibIndex','width=875,height=400,toolbar=no,scrollbars=yes'); + var barcodes = document.getElementById("barcode"); + if (barcodes.value == '') { + window.open("/cgi-bin/koha/labels/label-item-search.pl?batch_id=&type=labels",'FindABibIndex','width=875,height=400,toolbar=no,scrollbars=yes'); + } + else { + document.forms["add_by_barcode"].submit(); + } }; function DeDuplicate() { window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=de_duplicate&batch_id="; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl index df1f5569e1..7ca0d02962 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl @@ -1,9 +1,26 @@ + Koha › Tools › Labels › Manage Label Batches + - +