X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=star2016-abstracts.pl;h=25fa196ed1d449be1b5773a67b3d15df516777fe;hb=8fa1433ebf0a5066653fa8edbb25f4ee9b76345f;hp=0c5b82705417834b70fb1bf20c7c6bb124466c73;hpb=010220ad0890e9aec2a1db5e63712cbc7fc050b7;p=star2016 diff --git a/star2016-abstracts.pl b/star2016-abstracts.pl index 0c5b827..25fa196 100755 --- a/star2016-abstracts.pl +++ b/star2016-abstracts.pl @@ -59,6 +59,8 @@ foreach my $abstract ( @$abstracts ) { $id2nr->{ $id } = $nr++; +warn "$nr"; + my $t = $doc->appendParagraph(text => $abstract->{Title}->[0], style => 'Heading 1'); $doc->setPageBreak( $t, position => 'before', style => 'Heading 1'); @@ -66,15 +68,24 @@ foreach my $abstract ( @$abstracts ) { $doc->appendParagraph(text => join(' ', map { $a->{$_}->[0] } qw( FirstName FamilyName Email Affiliation ) ), style => 'Heading 2'); + push @{ $stat->{_Affiliation}->{ $a->{Affiliation}->[0] } }, $id; } $doc->appendParagraph(text => $abstract->{Content}->[0], style => 'Abstract'); - $doc->appendParagraph(text => "Theme: " . $f->{2}->{'content'}, style => 'Theme'); + $doc->appendParagraph(text => "\nTheme: " . $f->{2}->{'content'}, style => 'Theme'); + + $doc->appendParagraph(text => "\nID: " . $abstract->{Id}->[0], style => 'Abstract'); } warn "# stat = ",dump($stat); $doc->save; + +open(my $fh, '>', 'affiliation.csv'); +foreach my $a ( sort keys %{ $stat->{_Affiliation} } ) { + print $fh '"',$a,'","',dump( $stat->{_Affiliation}->{$a} ), '"', "\n"; +} +