X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fincludes%2Flabels-batches-toolbar.inc;h=f3a20060e9b2febfd9ab1eaed73cdeddbebaaad7;hb=3169100d513db4638a19bca925bb232159f8f748;hp=47a0b8f66a3d8afa620db6b74fe9b227773ead9a;hpb=65b5bdf8e1022b0f5d3dec2a03a0e147d298e62e;p=koha-ffzg.git 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=";