Failure to pass the $framework parameter by barcode.pl causes
GetMarcFromKohaField to return 0,0 which breaks the value builder. The
patch
submitted corrects this.
This patch is build against the current 3.1.x HEAD, however, this bug
also
affects the 3.0.x codebase and should be applied there as well.
fbcbug 4
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
my $date = "$year";
- my ($tag,$subfield) = GetMarcFromKohaField("items.barcode");
- my ($loctag,$locsubfield) = GetMarcFromKohaField("items.homebranch");
+ my ($tag,$subfield) = GetMarcFromKohaField("items.barcode","");
+ my ($loctag,$locsubfield) = GetMarcFromKohaField("items.homebranch","");
my $nextnum;
my $query;