From 1c61b119580d507b820b9d209ac56f7ad297cc7a Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 11 Aug 2020 15:36:20 -0400 Subject: [PATCH] thinko fixing the thinko :D one should test before commiting Signed-off-by: Jason Etheridge --- emig.d/bin/mig-bibstats | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 } = {}; } -- 1.7.2.5