projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
a2c020a
)
thinko with branch handling
author
Jason Etheridge
<jason@equinoxinitiative.org>
Tue, 11 Aug 2020 19:34:45 +0000 (15:34 -0400)
committer
Jason Etheridge
<jason@equinoxinitiative.org>
Tue, 11 Aug 2020 19:34:45 +0000 (15:34 -0400)
Signed-off-by: Jason Etheridge <jason@equinoxinitiative.org>
emig.d/bin/mig-bibstats
patch
|
blob
|
history
diff --git
a/emig.d/bin/mig-bibstats
b/emig.d/bin/mig-bibstats
index
1c7013a
..
a917208
100755
(executable)
--- 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) || '<missing item type subfield>';
- my $branch = $p_branch_subfield || 'default';
+ my $branch = $p_branch_subfield ? $f->subfield($p_branch_subfield) || 'default';
if (! defined $bib_types_by_item_type{ $branch }) {
$bib_types_by_item_type{ $branch } = {};
}