From: Jason Etheridge Date: Tue, 11 Aug 2020 19:36:20 +0000 (-0400) Subject: thinko fixing the thinko :D one should test before commiting X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=1c61b119580d507b820b9d209ac56f7ad297cc7a thinko fixing the thinko :D one should test before commiting Signed-off-by: Jason Etheridge --- diff --git a/emig.d/bin/mig-bibstats b/emig.d/bin/mig-bibstats index a917208..0161176 100755 --- a/emig.d/bin/mig-bibstats +++ b/emig.d/bin/mig-bibstats @@ -187,7 +187,7 @@ while ( my $record = $batch->next() ) { my @holding_fields = $record->field($p_holding_code); foreach my $hf (@holding_fields) { my $item_type = $hf->subfield($p_item_type_subfield) || ''; - my $branch = $p_branch_subfield ? $f->subfield($p_branch_subfield) || 'default'; + my $branch = $p_branch_subfield ? $hf->subfield($p_branch_subfield) : 'default'; if (! defined $bib_types_by_item_type{ $branch }) { $bib_types_by_item_type{ $branch } = {}; }