[Koha-bugs] [Bug 8180] cataloguing/additem.pl plack scoping

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 14 16:21:27 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8180

--- Comment #9 from Dobrica Pavlinusic <dpavlin at rot13.org> ---
I probably forgot to say that you SHOULD NOT enter barcode using plugin, but to
leave it empty to trigger code path which this bug fixes. If you already have
barcode or you fill it in using plugin it will not show up.

Jonathan, could you please insert warn inside sub _increment_barcode to verify
which framework gets passed like this:

    my ($tagfield,$tagsubfield) =
&GetMarcFromKohaField("items.barcode",$frameworkcode);
    warn "## $frameworkcode $tagfield $tagsubfield";
    unless ($record->field($tagfield)->subfield($tagsubfield)) {
       # triggers bug
    }

In my case this warn produce "LIB 952 p" which is consistent with our
configuration:

mysql> select variable,value from systempreferences where variable =
'autoBarcode' ;
+-------------+-------------+
| variable    | value       |
+-------------+-------------+
| autoBarcode | incremental |
+-------------+-------------+

mysql> select kohafield, frameworkcode, tagfield, tagsubfield from
marc_subfield_structure where kohafield='items.barcode' and frameworkcode='LIB'
;
+---------------+---------------+----------+-------------+
| kohafield     | frameworkcode | tagfield | tagsubfield |
+---------------+---------------+----------+-------------+
| items.barcode | LIB           | 952      | p           |
+---------------+---------------+----------+-------------+

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list