=cut
my $biblio_year;
+my $type_stats;
my $parser = XML::LibXML->new();
$parser->recover_silently(0); # don't die when you find &, >, etc
foreach my $auth ( @{ $data->{700} } ) {
my $authid = $auth->{9} || next;
my $type = $auth->{4} || next; #die "no 4 in ",dump($data);
-
+
+ $type_stats->{$type}++;
+
push @{ $authors->{$authid}->{ $category } }, $row->{biblionumber};
if ( $type =~ m/aut/ ) {
$author_count->{aut}->{ $authid }++;
debug 'authors' => $authors;
debug 'author_count' => $author_count;
+debug 'type_stats' => $type_stats;
my $category_label;
my $sth_categories = $dbh->prepare(q{