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 --- cataloguing/value_builder/barcode.pl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cataloguing/value_builder/barcode.pl b/cataloguing/value_builder/barcode.pl index cfa3b15..13bb571 100755 --- a/cataloguing/value_builder/barcode.pl +++ b/cataloguing/value_builder/barcode.pl @@ -75,8 +75,8 @@ sub plugin_javascript { 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; -- 1.5.6.5 _______________________________________________ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches