@@ -, +, @@ properly barcode --- C4/Barcodes/ValueBuilder.pm | 2 +- .../intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/C4/Barcodes/ValueBuilder.pm +++ a/C4/Barcodes/ValueBuilder.pm @@ -89,7 +89,7 @@ sub get_barcode { my $nextnum; my $query = "select max(cast( substring_index(barcode, '-',-1) as signed)) from items where barcode like ?"; my $sth=C4::Context->dbh->prepare($query); - $sth->execute("$args->{year}%"); + $sth->execute($args->{year} . '-%'); while (my ($count)= $sth->fetchrow_array) { warn "Examining Record: $count" if $DEBUG; $nextnum = $count if $count; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -105,8 +105,8 @@ Cataloging: - pref: autoBarcode choices: incremental: generated in the form 1, 2, 3. - annual: generated in the form <year>-0001, <year>-0002. - hbyymmincr: generated in the form <branchcode>yymm0001. + annual: generated in the form -0001, -0002. + hbyymmincr: generated in the form yymm0001. EAN13: incremental EAN-13 barcodes "OFF": not generated automatically. - --